48 |
options_dir = str(esysroot) + '/scons' |
options_dir = str(esysroot) + '/scons' |
49 |
sys.path.append(options_dir) |
sys.path.append(options_dir) |
50 |
|
|
51 |
|
from default_options import * |
52 |
|
|
53 |
if hostname=='ess': |
if hostname=='ess': |
54 |
from ess_options import * |
from ess_options import * |
55 |
|
|
64 |
# |
# |
65 |
# print out build configuration for this module |
# print out build configuration for this module |
66 |
|
|
|
print "####################################################" |
|
67 |
print "Build configuration for module: EsysException unit tests" |
print "Build configuration for module: EsysException unit tests" |
68 |
print " dodebug: 1" |
print " dodebug: 1" |
69 |
print " usegcc: ", usegcc |
print " usegcc: ", usegcc |
70 |
print " cxx: ", cxx |
print " cxx: ", cxx |
71 |
print " platform: ", platform |
print " platform: ", platform |
72 |
print " hostname: ", hostname |
print " hostname: ", hostname |
|
print "####################################################" |
|
73 |
|
|
74 |
# |
# |
75 |
# do the actual build |
# do the actual build |
81 |
esysUtils_lib_path = str(esysroot) + '/esysUtils/lib' |
esysUtils_lib_path = str(esysroot) + '/esysUtils/lib' |
82 |
CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib' |
CppUnitTest_lib_path = str(esysroot) + '/tools/CppUnitTest/lib' |
83 |
|
|
84 |
|
esysUtils_lib = str(esysUtils_lib_path) + '/libesysUtils.a' |
85 |
|
|
86 |
|
install_dir = str(esysroot) + '/esysUtils/test' |
87 |
|
|
88 |
cpp_path = [esysexception_test_path, |
cpp_path = [esysexception_test_path, |
89 |
esysUtils_path, |
esysUtils_path, |
90 |
CppUnitTest_path] |
CppUnitTest_path] |
111 |
esysexception_env.Replace(LIBS = libs) |
esysexception_env.Replace(LIBS = libs) |
112 |
|
|
113 |
esysexception_test_exe = esysexception_env.Program(target, sources) |
esysexception_test_exe = esysexception_env.Program(target, sources) |
114 |
|
|
115 |
|
Depends(esysexception_test_exe, esysUtils_lib) |
116 |
|
|
117 |
|
esysexception_env.Install(install_dir, esysexception_test_exe) |