2018-02-21 19:36:38 +08:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2018-04-27 11:23:09 +08:00
|
|
|
TK_ROOT=os.environ['TK_ROOT'];
|
2018-02-21 19:36:38 +08:00
|
|
|
GTEST_ROOT=os.environ['GTEST_ROOT'];
|
2018-03-18 11:29:31 +08:00
|
|
|
BIN_DIR=os.environ['BIN_DIR'];
|
2018-02-21 19:36:38 +08:00
|
|
|
|
|
|
|
env=DefaultEnvironment().Clone();
|
|
|
|
|
2018-04-27 11:23:09 +08:00
|
|
|
INCLUDE_PATH = [TK_ROOT,
|
2018-02-21 19:36:38 +08:00
|
|
|
GTEST_ROOT,
|
2018-04-27 11:23:09 +08:00
|
|
|
os.path.join(TK_ROOT, 'src'),
|
2018-02-21 19:36:38 +08:00
|
|
|
os.path.join(GTEST_ROOT, 'src'),
|
|
|
|
os.path.join(GTEST_ROOT, 'include'),
|
|
|
|
os.path.join(GTEST_ROOT, 'make')]
|
|
|
|
|
|
|
|
env['CPPPATH'] = INCLUDE_PATH
|
2018-05-04 14:52:15 +08:00
|
|
|
env['LIBS'] = ['resource', 'image_gen', 'theme_gen', 'font_gen', 'str_gen', 'common'] + env['LIBS']
|
2018-02-21 19:36:38 +08:00
|
|
|
|
|
|
|
SOURCES = [
|
|
|
|
os.path.join(GTEST_ROOT, 'src/gtest-all.cc'),
|
|
|
|
] + Glob('*.cc') + Glob('*.c')
|
|
|
|
|
2018-03-18 11:29:31 +08:00
|
|
|
env.Program(os.path.join(BIN_DIR, 'runTest'), SOURCES);
|
2018-05-24 13:49:17 +08:00
|
|
|
env.Program(os.path.join(BIN_DIR, 'mem_test'), ["mem_test.cpp"])
|
2018-02-21 19:36:38 +08:00
|
|
|
|
|
|
|
|