-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSConscript
More file actions
43 lines (38 loc) · 1.68 KB
/
SConscript
File metadata and controls
43 lines (38 loc) · 1.68 KB
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
#--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# SConscript file for package PSXtcInput
#------------------------------------------------------------------------
# Do not delete following line, it must be present in
# SConscript file for any SIT project
Import('*')
#
# For the standard SIT packages which build libraries, applications,
# and Python modules it is usually sufficient to call
# standardSConscript() function which defines rules for all
# above targets. Many standard packages do not need any special options,
# but those which need can modify standardSConscript() behavior using
# a number of arguments, here is a complete list:
#
# LIBS - list of additional libraries needed by this package
# BINS - dictionary of executables and their corresponding source files
# TESTS - dictionary of test applications and their corresponding source files
# SCRIPTS - list of scripts in app/ directory
# UTESTS - names of the unit tests to run, if not given then all tests are unit tests
# PYEXTMOD - name of the Python extension module, package name used by default
#
#
import os
DOCGEN="doxy-all psana-doxy"
if "PSANA_LEGION_DIR" in os.environ:
psana_legion_dir = os.environ["PSANA_LEGION_DIR"]
legion_runtime_dir = os.environ["LG_RT_DIR"]
legion_header_dirs = ["", "legion", "mappers", "realm"]
extra_ccflags = " ".join(["-I%s" % os.path.join(legion_runtime_dir, d) for d in legion_header_dirs])
extra_ccflags += " -std=c++98 -fabi-version=2 -D_GLIBCXX_USE_CXX11_ABI=0 -DPSANA_USE_LEGION"
LIBS="-lpsana_legion"
LIBPATH=psana_legion_dir
CCFLAGS=extra_ccflags
standardSConscript(**locals())