import os def loaddana(env) : OSENV = os.environ if(OSENV.has_key('HALLD_HOME') and os.path.exists(OSENV['HALLD_HOME'])==True): rootDir = OSENV['HALLD_HOME'] else: print "?HALLD_HOME env variable not set...using -DNO_HALLD_HOME" env.Append(CPPDEFINES = {'NO_HALLD_HOME':None}) return if env['SHOWENV'] == "1": print "Loading DANA software from ", rootDir # include files danaincs = [] danaincs.append(rootDir + "/" + OSENV['BMS_OSNAME'] + '/include') env.AppendUnique(CPPPATH=danaincs) # library directories danaldir = [] danaldir.append(rootDir + "/" + OSENV['BMS_OSNAME'] + '/lib') env.AppendUnique(LIBPATH = danaldir) # libraries danalibs = [] # danalibs.append('AMPTOOLS_AMPS') # danalibs.append('AMPTOOLS_DATAIO') # danalibs.append('AMPTOOLS_MCGEN') danalibs.append('DANA') danalibs.append('ANALYSIS') danalibs.append('BCAL') danalibs.append('CCAL') danalibs.append('CDC') danalibs.append('CERE') danalibs.append('FCAL') danalibs.append('FDC') danalibs.append('HDDM') danalibs.append('PID') danalibs.append('RICH') danalibs.append('START_COUNTER') danalibs.append('TAGGER') danalibs.append('TOF') danalibs.append('TRACKING') danalibs.append('TRIGGER') danalibs.append('HDGEOMETRY') danalibs.append('xstream') danalibs.append('bz2') danalibs.append('z') env.AppendUnique(LIBS = danalibs) # dependencies on other packages from loadjana import loadjana loadjana(env) from loadroot import loadroot loadroot(env)