Skip to content

Commit

Permalink
fixed sbms issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sdobbs committed Sep 4, 2024
1 parent 1a44948 commit ce9369b
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/SBMS/sbms.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,32 @@ def executable(env, exename=''):
# Install targets
env.Install(bindir, myexe)

##################################
# script
##################################
def script(env, scriptname, installname=None):

# Only thing to do for script is to install it.

# Cleaning and installation are restricted to the directory
# scons was launched from or its descendents
CurrentDir = env.Dir('.').srcnode().abspath
if not CurrentDir.startswith(env.GetLaunchDir()):
# Not in launch directory. Tell scons not to clean these targets
env.NoClean([scriptname])
else:
# We're in launch directory (or descendent) schedule installation

# Installation directories for executable and headers
installdir = env.subst('$INSTALLDIR')
bindir = env.subst('$BINDIR')

# Install targets
if installname==None:
env.Install(bindir, scriptname)
else:
env.InstallAs(bindir+'/'+installname, scriptname)


##################################
# python_so_module
Expand Down Expand Up @@ -600,7 +626,7 @@ def AddDANA(env):
AddET(env)
AddMySQL(env) # needed for EventStore
DANA_LIBS = "DANA ANALYSIS KINFITTER PID TAGGER TRACKING START_COUNTER"
DANA_LIBS += " CERE DIRC CDC TRIGGER PAIR_SPECTROMETER RF"
DANA_LIBS += " CERE DIRC CDC TRIGGER PAIR_SPECTROMETER RF TRD"
DANA_LIBS += " FDC TOF BCAL FCAL CCAL TPOL HDGEOMETRY TTAB FMWPC TAC"
DANA_LIBS += " DAQ JANA EVENTSTORE"
DANA_LIBS += " expat gfortran"
Expand Down

0 comments on commit ce9369b

Please sign in to comment.