blob: e25a27e60c88f81f567b83a7c01e35039f7387af [file] [log] [blame]
/*
* ======== package.bld ========
*
*! Revision History
*! ================
*! 31-Oct-2012 sasha Removed Solaris support
*! 18-Jan-2006 sasha Created
*/
if (xdc.findFile("xdc/release/filters/libvers.xdt") != null) {
Pkg.libTemplate = "xdc/release/filters/libvers.xdt";
}
else {
print("warning: can't find 'xdc/release/filters/libvers.xdt': can't version stamp " + Pkg.name + " libraries");
}
var LIB_SOURCES = ["xutl.c", "lst.c", "gld.c", "gs.c"];
//var LIB_SOURCES = ["xutl.c", "lst.c", "gt.c", "_gt_para.c", "gld.c", "gs.c"];
for (var i = 0; i < Build.targets.length; i++) {
var targ = Build.targets[i];
if (targ.os == "Windows") {
var lib = Pkg.addLibrary("lib/xutils", targ, {profile: "release"});
lib.addObjects(LIB_SOURCES);
}
else if (targ.os == "Linux" || targ.os == "MacOS") {
var lib = Pkg.addLibrary("lib/xutils", targ, {profile: "release"});
lib.addObjects(LIB_SOURCES);
}
/* dll for use by IAR C-SPY plug-in to call ROV scripts */
if (targ.os == "Windows") {
targ.$orig.profiles['release'].compileOpts.copts = " -Oti -Gy -GF -MD ";
var dll = Pkg.addLibrary("lib/dlls/xutils", targ,
{profile: "release", suffix: ".dll"});
dll.addObjects(LIB_SOURCES);
}
}
Pkg.makeEpilogue = "clean::\n\t-$(RM) -f debug/*.pdb\n";
Pkg.otherSrcs = [
"xutl.h"
];
Pkg.otherFiles = Pkg.otherSrcs;