[darwinbuild-changes] [146] trunk/darwinxref/plugins/dependencies.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 01:51:57 PDT 2006


Revision: 146
          http://trac.macosforge.org/projects/darwinbuild/changeset/146
Author:   ssen
Date:     2006-10-04 01:51:57 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
Add a -lib to print out just the dylib dependencies.
This isn't useful for building chroots, but is useful
for doing build ordering relationships

Modified Paths:
--------------
    trunk/darwinxref/plugins/dependencies.c

Modified: trunk/darwinxref/plugins/dependencies.c
===================================================================
--- trunk/darwinxref/plugins/dependencies.c	2005-08-04 06:24:59 UTC (rev 145)
+++ trunk/darwinxref/plugins/dependencies.c	2006-10-04 08:51:57 UTC (rev 146)
@@ -53,6 +53,9 @@
 		CFStringRef types[] = { CFSTR("header"), NULL };
 		CFStringRef recursive[] = { NULL };
 		printDependencies(types, recursive, NULL, DBGetCurrentBuild(), project, 0);
+	} else if (CFEqual(type, CFSTR("-lib"))) {
+		CFStringRef types[] = { CFSTR("lib"), NULL };
+		printDependencies(types, types, NULL, DBGetCurrentBuild(), project, 0);
 	} else {
 		return -1;
 	}
@@ -60,7 +63,7 @@
 }
 
 static CFStringRef usage() {
-	return CFRetain(CFSTR("-run | -build | -header <project>"));
+	return CFRetain(CFSTR("-run | -build | -header | -lib <project>"));
 }
 
 int initialize(int version) {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/034fbdd1/attachment.html


More information about the darwinbuild-changes mailing list