mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 02:58:26 +08:00
28 lines
687 B
Python
28 lines
687 B
Python
import os
|
|
import sys
|
|
|
|
TK_ROOT=os.environ['TK_ROOT'];
|
|
GTEST_ROOT=os.environ['GTEST_ROOT'];
|
|
BIN_DIR=os.environ['BIN_DIR'];
|
|
|
|
env=DefaultEnvironment().Clone();
|
|
|
|
INCLUDE_PATH = [TK_ROOT,
|
|
GTEST_ROOT,
|
|
os.path.join(TK_ROOT, 'src'),
|
|
os.path.join(GTEST_ROOT, 'src'),
|
|
os.path.join(GTEST_ROOT, 'include'),
|
|
os.path.join(GTEST_ROOT, 'make')]
|
|
|
|
env['CPPPATH'] = INCLUDE_PATH
|
|
env['LIBS'] = ['resource', 'image_gen', 'theme_gen', 'font_gen', 'str_gen', 'common'] + env['LIBS']
|
|
|
|
SOURCES = [
|
|
os.path.join(GTEST_ROOT, 'src/gtest-all.cc'),
|
|
] + Glob('*.cc') + Glob('*.c')
|
|
|
|
env.Program(os.path.join(BIN_DIR, 'runTest'), SOURCES);
|
|
env.Program(os.path.join(BIN_DIR, 'mem_test'), ["mem_test.cpp"])
|
|
|
|
|