[darwinbuild-changes] [187] trunk/darwinxref/plugins/dependencies.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:55:41 PDT 2006
Revision: 187
http://trac.macosforge.org/projects/darwinbuild/changeset/187
Author: ssen
Date: 2006-10-04 01:55:40 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
Declare DBPluginSetSubDictDataType as a CFArray. When you
"loadIndex" and then "exportIndex", this makes sure that even singleton
dependencies are printed array style, for legibility.
Also, print out "staticlib" dependencies when you as for -build,
since you want things like Csu to be loaded into the build root.
Modified Paths:
--------------
trunk/darwinxref/plugins/dependencies.c
Modified: trunk/darwinxref/plugins/dependencies.c
===================================================================
--- trunk/darwinxref/plugins/dependencies.c 2005-08-24 02:13:52 UTC (rev 186)
+++ trunk/darwinxref/plugins/dependencies.c 2006-10-04 08:55:40 UTC (rev 187)
@@ -35,6 +35,7 @@
void printDependencies(CFStringRef* types, CFStringRef* recursiveTypes, CFMutableSetRef visited, CFStringRef build, CFStringRef project, int indentLevel);
+
static int run(CFArrayRef argv) {
CFIndex count = CFArrayGetCount(argv);
if (count != 2) return -1;
@@ -46,7 +47,7 @@
CFStringRef types[] = { CFSTR("lib"), CFSTR("run"), NULL };
printDependencies(types, types, NULL, DBGetCurrentBuild(), project, 0);
} else if (CFEqual(type, CFSTR("-build"))) {
- CFStringRef types[] = { CFSTR("lib"), CFSTR("run"), CFSTR("build"), NULL };
+ CFStringRef types[] = { CFSTR("staticlib"), CFSTR("lib"), CFSTR("run"), CFSTR("build"), NULL };
CFStringRef recursive[] = { CFSTR("lib"), CFSTR("run"), NULL };
printDependencies(types, recursive, NULL, DBGetCurrentBuild(), project, 0);
} else if (CFEqual(type, CFSTR("-header"))) {
@@ -79,6 +80,7 @@
DBPluginSetRunFunc(&run);
DBPluginSetUsageFunc(&usage);
DBPluginSetDataType(CFDictionaryGetTypeID());
+ DBPluginSetSubDictDataType(CFArrayGetTypeID());
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/9e2cf09d/attachment-0001.html
More information about the darwinbuild-changes
mailing list