forked from Mu2e/Stntuple
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConscript
More file actions
27 lines (22 loc) · 1.15 KB
/
Copy pathSConscript
File metadata and controls
27 lines (22 loc) · 1.15 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
#!/usr/bin/env python
import os, re, string, subprocess
Import('env')
# Import('mu2e_helper')
#------------------------------------------------------------------------------
# last two components of the path. Ex: /not/this/but/THIS/AND_THIS
# "AND_THIS" is usually "src"
#------------------------------------------------------------------------------
# x = subprocess.call('scripts/build_config',shell=True)
if (os.environ.get("MU2E_SATELLITE_RELEASE")) :
env['CPPPATH' ].append('-I'+os.environ['MU2E_SATELLITE_RELEASE']+'/include');
env['CXXFLAGS'].append('-I'+os.environ['MU2E_SATELLITE_RELEASE']+'/include');
else :
env['CPPPATH' ].append('-I'+os.environ['MU2E_BASE_RELEASE']+'/include');
env['CXXFLAGS'].append('-I'+os.environ['MU2E_BASE_RELEASE']+'/include');
#------------------------------------------------------------------------------
# done
#------------------------------------------------------------------------------
from stntuple_helper import *
env.Append(BUILDERS = {'StntupleCodegen' : stntuple_codegen })
env.Append(BUILDERS = {'StntupleRootCint' : stntuple_rootcint})
Export('stntuple_helper')