import os def loadet(env) : OSENV = os.environ if(OSENV.has_key('ETROOT') and os.path.exists(OSENV['ETROOT'])==True): rootDir = OSENV['ETROOT'] elif(OSENV.has_key('ET') and os.path.exists(OSENV['ET'])==True): rootDir = OSENV['ET'] elif(OSENV.has_key('CODA') and os.path.exists(OSENV['CODA'])==True): rootDir = OSENV['CODA'] + '/Linux' else: print "?Neither ETROOT nor ET env variables are set...using -DNO_ETROOT" env.Append(CPPDEFINES = {'NO_ETROOT':None}) return if env['SHOWENV'] == "1": print "Loading ET software from ", rootDir # include files etincs = [] etincs.append(rootDir + '/include') env.AppendUnique(CPPPATH=etincs) # library directories etldir = [] etldir.append(rootDir + '/lib') etldir.append(rootDir + '/lib64') env.AppendUnique(LIBPATH = etldir) # libraries etlibs = [] etlibs.append('et') etlibs.append('et_remote') etlibs.append('et_jni') etlibs.append('pthread') etlibs.append('dl') etlibs.append('rt') etlibs.append('m') env.AppendUnique(LIBS = etlibs)