-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript
43 lines (37 loc) · 1.9 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
41
42
43
# -*- python -*-
# $Id$
# Authors: James Peachey <[email protected]>, Joe Asercion <[email protected]>
# Version: st_graph-01-07-11
Import('baseEnv')
Import('listFiles')
progEnv = baseEnv.Clone()
libEnv = baseEnv.Clone()
if baseEnv['PLATFORM'] == "posix":
libEnv.Append(CPPDEFINES = 'TRAP_FPE')
includeFiles = listFiles(["st_graph/*"], recursive=True)
if libEnv.get('CONTAINERNAME', '') == 'ScienceTools_User':
st_graphRootcint = libEnv.Rootcint('st_graph/st_graph_rootcint',
['st_graph/RootFrame.h',
'st_graph/LinkDef.h'],
includes = ['.', 'src'],
localIncludes=includeFiles,
packageName='st_graph')
st_graphLib = libEnv.StaticLibrary('st_graph', listFiles(['src/*.cxx']) + ['st_graph/st_graph_rootcint.cxx'] + ['src/EmbedPython.cpp'])
else:
st_graphLib = libEnv.StaticLibrary('st_graph',
listFiles(['src/Axis.cxx',
'src/EmbedPython.cpp',
'src/Engine.cxx',
'src/IPlot.cxx',
'src/MP*.cxx',
'src/StGui.cxx']))
progEnv.Tool('st_graphLib')
if baseEnv['PLATFORM'] == "posix":
progEnv.Append(CPPDEFINES = 'TRAP_FPE')
test_st_graphBin = progEnv.Program('test_st_graph', listFiles(['src/test/*.cxx']))
progEnv.Tool('registerTargets', package = 'st_graph',
staticLibraryCxts = [[st_graphLib,libEnv]],
includes = listFiles(['st_graph/*.h']),
testAppCxts = [[test_st_graphBin, progEnv]],
pfiles = listFiles(['pfiles/*.par']),
python=listFiles(['src/*.py']))