LP-89 - Port OP_15.05.01 fixes. Release notes:
[librepilot.git] / flight / libraries / PyMite / vm / SConscript
bloba4e4acb0c153c312573680d70ee0d59a19016c2a
1 import sys
4 Import("env", "vars")
6 SOURCES = Glob("*.c")
7 PMSTDLIB_SOURCES = ["../lib/list.py",
8                     "../lib/dict.py",
9                     "../lib/__bi.py",
10                     "../lib/sys.py",
11                     "../lib/string.py",]
12 if env["IPM"] == True:
13     PMSTDLIB_SOURCES.append("../lib/ipm.py")
16 img_sources = Command(["pmstdlib_img.c", "pmstdlib_nat.c"], [PMSTDLIB_SOURCES],
17     "%s src/tools/pmImgCreator.py -f src/platform/%s/pmfeatures.py -c -s " \
18     "-o src/vm/pmstdlib_img.c --native-file=src/vm/pmstdlib_nat.c $SOURCES" \
19     % (sys.executable, vars.args["PLATFORM"]))
20 if sys.platform != "win32":
21     env['ARFLAGS'] = "rcs"
22 lib = env.Library("pmvm_%s" % vars.args["PLATFORM"], SOURCES + img_sources)
23 env.Precious(lib)
26 Return("lib")