ocarina/tests/Sconscript
Bryan Schumaker 7c67d062df build: Make it easier to change command line macros
I store release and debug options in a list so that env.Replace() can be
used to set, modify, and restore values.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2014-04-06 19:56:51 -04:00

22 lines
513 B
Python

#!/usr/bin/python
Import("release", "debug")
def make_test(group, src, name, env):
obj = env.StaticObject(name, src)
prog = env.Program("%s.test" % name, obj)
Alias("tests", [obj, prog])
Alias("tests/%s" % group, [obj, prog])
Alias("tests/%s/%s" % (group, name), [obj, prog])
def Test(group, src):
name, extension = src.rsplit(".", 1)
make_test(group, src, name, release)
make_test(group, src, "%s-debug" % name, debug)
Export("Test")
# Read SConscript files
basic = SConscript("basic/Sconscript")