Skip to content
Snippets Groups Projects
Commit 5c888333 authored by Will Hawkins's avatar Will Hawkins
Browse files

Update scons files in the base repo to accommodate Python v3.

parent a00273c5
No related branches found
No related tags found
2 merge requests!10Version update,!9Version update
......@@ -29,7 +29,7 @@ libsmpsa= SConscript("SMPStaticAnalyzer/SConscript")
libirdbdeep=SConscript("irdb-libs/SConscript.deep")
Depends(libirdbdeep,libsmpsa)
print "Zipr install is "+env['ZIPR_INSTALL']
print("Zipr install is "+env['ZIPR_INSTALL'])
Export('env')
......@@ -69,7 +69,7 @@ if env.GetOption('clean') and os.path.isfile("manifest.txt.config"):
# if [[ $(head -1 manifest.txt.config) == $PS_INSTALL ]] ; then
if str(first_line) == str(os.environ['PS_INSTALL']):
print "Doing pedi clean as I'm the pedi root"
print("Doing pedi clean as I'm the pedi root")
os.system( "pwd; $PEDI_HOME/pedi -c -m manifest.txt " )
shutil.rmtree(os.environ['PS_INSTALL'])
......
......@@ -22,13 +22,13 @@ env.Replace(ZIPR_INSTALL=os.environ['ZIPR_INSTALL'])
if int(env['debug']) == 1:
print "Setting debug mode"
print("Setting debug mode")
env.Append(CFLAGS=" -g ")
env.Append(CXXFLAGS=" -g ")
env.Append(LINKFLAGS=" -g ")
env.Append(SHLINKFLAGS=" -g ")
env.Append(LINKFLAGS=" -g ")
env.Append(SHLINKFLAGS=" -g ")
else:
print "Setting release mode"
print("Setting release mode")
env.Append(CFLAGS=" -O ")
env.Append(CXXFLAGS=" -O ")
env.Append(LINKFLAGS=" -O ")
......
......@@ -7,8 +7,8 @@ Import('env')
if env.GetOption('clean'):
if os.path.exists(os.environ['SECURITY_TRANSFORMS_HOME']+"/include/targ-config.h"):
print 'Removing include/targ-config.h'
os.remove(os.environ['SECURITY_TRANSFORMS_HOME']+"/include/targ-config.h")
print('Removing include/targ-config.h')
os.remove(os.environ['SECURITY_TRANSFORMS_HOME']+"/include/targ-config.h")
os.chdir(os.environ['SECURITY_TRANSFORMS_HOME']+"/third_party/capstone")
os.system("make clean")
os.chdir(os.environ['SECURITY_TRANSFORMS_HOME'])
......@@ -20,11 +20,11 @@ if env.GetOption('clean'):
else:
os.chdir(os.environ['SECURITY_TRANSFORMS_HOME']+"/third_party/capstone")
print "Rebuilding libcapstone."
print("Rebuilding libcapstone.")
jobs=env.GetOption('num_jobs')
os.system("make -j "+str(jobs))
os.chdir(os.environ['SECURITY_TRANSFORMS_HOME']+"/third_party/keystone")
print "Rebuilding libkeystone."
print("Rebuilding libkeystone.")
os.chdir(os.environ['SECURITY_TRANSFORMS_HOME']+"/third_party/keystone")
os.system("mkdir -p ./build")
os.chdir("build")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment