-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
43 lines (36 loc) · 1.92 KB
/
SConscript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- python -*-
# $Id: SConscript,v 1.46 2016/01/13 19:12:16 jchiang Exp $
# Authors: James Peachey <[email protected]>, Joe Asercion <[email protected]>
# Version: tip-02-18-06
Import('baseEnv')
Import('listFiles')
progEnv = baseEnv.Clone()
libEnv = baseEnv.Clone()
test2Env = baseEnv.Clone()
libEnv.Tool('addLinkDeps', package = 'tip', toBuild='static')
tipLib = libEnv.StaticLibrary('tip', listFiles(['src/*.cxx']))
progEnv.Tool('tipLib')
sampleProg = progEnv.Program('sample',[ 'src/sample/sample.cxx'])
testEnv = progEnv.Clone()
testEnv.Tool('facilitiesLib')
if baseEnv['PLATFORM'] != 'win32':
test2Env.AppendUnique(CCFLAGS=['-O0'])
test_tip_main_obj = test2Env.StaticObject(target = 'test_tip_main_obj.o',source = ['src/test/test_tip_main.cxx'])
test_tipBin = testEnv.Program('test_tip', ['src/test/TestColumn.cxx','src/test/TestExtensionData.cxx',
'src/test/TestFileManager.cxx',
'src/test/TestFileSummary.cxx',
'src/test/TestFilter.cxx',
'src/test/TestHarness.cxx',
'src/test/TestImage.cxx',
'src/test/TestInterpolation.cxx',
'src/test/TestKeyRecord.cxx',
'src/test/TestTable.cxx'] +
test_tip_main_obj)
else:
test_tipBin = testEnv.Program('test_tip', listFiles(['src/test/*.cxx']))
progEnv.Tool('registerTargets', package = 'tip',
staticLibraryCxts = [[tipLib, libEnv]],
binaryCxts = [[sampleProg, progEnv]],
testAppCxts = [[test_tipBin, testEnv]],
includes = listFiles(['tip/*.h']),
data = listFiles(['data/*'], recursive = True))