-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
27 lines (22 loc) · 1.01 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
# -*- python -*-
# $Id: SConscript,v 1.15 2013/05/17 19:28:13 glastrm Exp $
# Authors: James Peachey <peachey@lheamail.gsfc.nasa.gov>, Joe Asercion <joseph.a.asercion@nasa.gov
# Version: st_app-02-00-08
Import('baseEnv')
Import('listFiles')
progEnv = baseEnv.Clone()
libEnv = baseEnv.Clone()
if baseEnv['PLATFORM'] == 'posix':
libEnv.Append(CPPDEFINES = 'TRAP_FPE')
st_appLib = libEnv.StaticLibrary('st_app', listFiles(['src/*.cxx']))
progEnv.Tool('st_appLib')
if baseEnv['PLATFORM'] == 'posix':
progEnv.Append(CPPDEFINES = 'TRAP_FPE')
st_app_mainBin = progEnv.Program('st_app_main', listFiles(['src/st_app_main/*.cxx']))
test_st_appBin = progEnv.Program('test_st_app', listFiles(['src/test/*.cxx']))
progEnv.Tool('registerTargets', package = 'st_app',
staticLibraryCxts = [[st_appLib, libEnv]],
binaryCxts = [[st_app_mainBin, progEnv]],
testAppCxts = [[test_st_appBin, progEnv]],
includes = listFiles(['st_app/*.h']),
pfiles = listFiles(['pfiles/*.par']))