33 lines
628 B
Python
33 lines
628 B
Python
#!/usr/bin/python
|
|
|
|
Import("OTest", "TestList")
|
|
|
|
|
|
core = []
|
|
for f in Glob("../../core/*.cpp"):
|
|
src = str(f).rsplit("/", 1)[1]
|
|
core += [ OTest.Env.Object("%s-core" % src, str(f)) ]
|
|
|
|
|
|
class LibTest(OTest):
|
|
Objs = core
|
|
|
|
def __init__(self, src, pkg = None):
|
|
OTest.__init__(self, src, pkg = pkg)
|
|
|
|
def get_program(self):
|
|
path = "../../lib/%s" % self.Src
|
|
LibTest.Objs += [ LibTest.Env.Object("%s-lib" % self.Src, path) ]
|
|
return OTest.Env.Program(self.Name, [ self.Src ] + LibTest.Objs)
|
|
|
|
|
|
res = TestList("lib", [
|
|
|
|
LibTest("lib.cpp", "gtkmm-3.0"),
|
|
LibTest("colmgr.cpp"),
|
|
LibTest("model.cpp"),
|
|
|
|
]).prepare()
|
|
|
|
Return("res")
|