1 |
Import('*') |
2 |
|
3 |
import os |
4 |
import string |
5 |
|
6 |
CppUnitTest_path = str(esysroot) + '/tools/CppUnitTest/inc' |
7 |
|
8 |
cpp_path = [CppUnitTest_path] |
9 |
|
10 |
lib = 'CppUnitTest' |
11 |
sources = ['TestCase.cpp', |
12 |
'TestFailure.cpp', |
13 |
'TestRunner.cpp', |
14 |
'TestSuite.cpp', |
15 |
'TestResult.cpp', |
16 |
'TextTestResult.cpp'] |
17 |
|
18 |
cppunit_env = Environment(ENV = os.environ) |
19 |
|
20 |
cppunit_env.Replace(CXX = cxx) |
21 |
cppunit_env.Replace(CXXFLAGS = cxx_flags) |
22 |
cppunit_env.Replace(ARFLAGS = ar_flags) |
23 |
cppunit_env.Replace(CPPPATH = cpp_path) |
24 |
|
25 |
cppunit_lib = cppunit_env.StaticLibrary(lib, sources) |
26 |
cppunit_env.Install(libdir, cppunit_lib) |