Mercurial > projects > dstep
diff dsss.conf @ 25:b9de51448c6b
Added an id constructor. Changed the string mixin to a template mixin. Added support for building as a dynamic library
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Tue, 06 Apr 2010 11:37:27 +0200 |
parents | 420969b22201 |
children | 57371c29ef73 |
line wrap: on
line diff
--- a/dsss.conf Wed Feb 10 19:24:32 2010 +0100 +++ b/dsss.conf Tue Apr 06 11:37:27 2010 +0200 @@ -1,18 +1,19 @@ -[main.d] -target=cocoa-d-test +[dstep] +#target = cocoa-d-test version (GNU){ buildflags += -framework Foundation -framework ApplicationServices -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework Security -framework QuartzCore -framework QTKit -framework AppKit -framework CoreData version (dylib) { postbuild = cd dsss_objs/G ; \ - gcc *.o -dynamiclib -o ../../libDG-dstep.dylib + gcc *.o -dynamiclib -o libDG-dstep.dylib version (Tango) { postbuild += -lgtango } - postbuild += -lgphobos -lgcc_eh -install_name ../Frameworks -framework Foundation -framework ApplicationServices -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework Security -framework QuartzCore -framework QTKit -framework AppKit -framework CoreData + postbuild += -lgphobos -lgcc_eh -framework Foundation -framework ApplicationServices -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework Security -framework QuartzCore -framework QTKit -framework AppKit -framework CoreData; + postbuild += mv libDG-dstep.dylib ../../; } version (framework) { @@ -23,9 +24,9 @@ postbuild += -lgtango } - postbuild += -install_name ../Frameworks -o ../../DStep.framework/Versions/Current/DStep -framework Cocoa -framework QTKit -framework QuartzCore -framework Security -framework DiskArbitration -framework CoreServices -framework CoreFoundation -framework ApplicationServices; + postbuild += -o ../../DStep.framework/Versions/Current/DStep -install_name @loader_path/../Frameworks/DStep.framework/Versions/A/DStep -framework Cocoa -framework QTKit -framework QuartzCore -framework Security -framework DiskArbitration -framework CoreServices -framework CoreFoundation -framework ApplicationServices; postbuild += cd ../../; - postbuild += cp -R dstep DStep.framework/Headers/ + postbuild += cp -R dstep DStep.framework/Headers/; } } @@ -35,6 +36,12 @@ version (DigitalMars) { buildflags += -L-framework -LFoundation -L-framework -LApplicationServices -L-framework -LCoreFoundation -L-framework -LCoreServices -L-framework -LDiskArbitration -L-framework -LSecurity -L-framework -LQuartzCore -L-framework -LQTKit -L-framework -LAppKit -L-framework -LCoreData + + version (dylib) { + postbuild = cd dsss_objs/D ; \ + gcc -framework Foundation -framework ApplicationServices -framework CoreFoundation -framework CoreServices -framework DiskArbitration -framework Security -framework QuartzCore -framework QTKit -framework AppKit -framework CoreData \ + -dynamiclib *.o /usr/local/dmd/lib/libtango.dylib -o ../../libDD-dstep.dylib -install_name ~/d/lib/libDD-dstep.dylib + } } #-L-dead_strip -L-x -L-S \ No newline at end of file