Skip to content
Snippets Groups Projects
SConscript 1.02 KiB
Newer Older
import os



Import('env')
jdh8d's avatar
jdh8d committed
myenv=env.Clone()
myenv.Replace(SECURITY_TRANSFORMS_HOME=os.environ['SECURITY_TRANSFORMS_HOME'])

cpppath=''' 
	 $SECURITY_TRANSFORMS_HOME/include 
	 $SECURITY_TRANSFORMS_HOME/libIRDB/include 
	 $SECURITY_TRANSFORMS_HOME/libMEDSannotation/include 
	 $SECURITY_TRANSFORMS_HOME/beaengine/include 
	 $SECURITY_TRANSFORMS_HOME/tools/transforms 
	 $SECURITY_TRANSFORMS_HOME/libEXEIO/include 
jdh8d's avatar
jdh8d committed
files=Glob( Dir('.').srcnode().abspath+"/*.cpp")

myenv.Append(CXXFLAGS = " -std=c++11 -Wall ")

pgm="selective_cfi.exe"

LIBPATH="$SECURITY_TRANSFORMS_HOME/lib"
LIBS=Split( env.subst('$BASE_IRDB_LIBS')+ "  IRDB-core IRDB-cfg IRDB-util transform rewrite MEDSannotation pqxx pq") 
jdh8d's avatar
jdh8d committed
myenv=myenv.Clone(CPPPATH=Split(cpppath))
pgm=myenv.Program(pgm,  files,  LIBPATH=LIBPATH, LIBS=LIBS)
jdh8d's avatar
jdh8d committed
install=myenv.Install("$SECURITY_TRANSFORMS_HOME/plugins_install/", pgm)
Default(install)

	
	
#lib32=SConscript("zest_cfi_runtime/SConscript", variant_dir="build32")
SConscript("zest_cfi_runtime/SConscript") # , variant_dir="build64")