updated scons script
This commit is contained in:
parent
d42cb2a606
commit
c79a7f469f
19
SConstruct
19
SConstruct
@ -74,15 +74,20 @@ else:
|
|||||||
|
|
||||||
if sys.platform == 'darwin': #Mac OS X
|
if sys.platform == 'darwin': #Mac OS X
|
||||||
env.Append(CPPPATH = ['/usr/include/libxml2'] ) #comes with os x
|
env.Append(CPPPATH = ['/usr/include/libxml2'] ) #comes with os x
|
||||||
#assume stxxl and boost are installed via homebrew.
|
#assume dependencies are installed with homebrew, and call out get folder locations
|
||||||
#call out to brew to get the folder locations
|
|
||||||
import subprocess
|
import subprocess
|
||||||
stxxl_prefix = subprocess.check_output(["brew", "--prefix", "libstxxl"]).strip()
|
stxxl_prefix = subprocess.check_output(["brew", "--prefix", "libstxxl"]).strip()
|
||||||
boost_prefix = subprocess.check_output(["brew", "--prefix", "boost"]).strip()
|
|
||||||
env.Append(CPPPATH = [stxxl_prefix+"/include"] )
|
env.Append(CPPPATH = [stxxl_prefix+"/include"] )
|
||||||
env.Append(LIBPATH = [stxxl_prefix+"/lib"] )
|
env.Append(LIBPATH = [stxxl_prefix+"/lib"] )
|
||||||
|
|
||||||
|
boost_prefix = subprocess.check_output(["brew", "--prefix", "boost"]).strip()
|
||||||
env.Append(CPPPATH = [boost_prefix+"/include"] )
|
env.Append(CPPPATH = [boost_prefix+"/include"] )
|
||||||
env.Append(LIBPATH = [boost_prefix+"/lib"] )
|
env.Append(LIBPATH = [boost_prefix+"/lib"] )
|
||||||
|
|
||||||
|
#libxml2_prefix = subprocess.check_output(["brew", "--prefix", "libxml2"]).strip()
|
||||||
|
#env.Append(CPPPATH = [libxml2_prefix+"/include"] )
|
||||||
|
#env.Append(LIBPATH = [libxml2_prefix+"/lib"] )
|
||||||
|
|
||||||
elif sys.platform.startswith("freebsd"):
|
elif sys.platform.startswith("freebsd"):
|
||||||
env.ParseConfig('pkg-config --cflags --libs protobuf')
|
env.ParseConfig('pkg-config --cflags --libs protobuf')
|
||||||
env.Append(CPPPATH = ['/usr/local/include', '/usr/local/include/libxml2'])
|
env.Append(CPPPATH = ['/usr/local/include', '/usr/local/include/libxml2'])
|
||||||
@ -105,9 +110,11 @@ else:
|
|||||||
env.Append(CPPPATH = ['/usr/include', '/usr/include/include', '/usr/include/libxml2/'])
|
env.Append(CPPPATH = ['/usr/include', '/usr/include/include', '/usr/include/libxml2/'])
|
||||||
|
|
||||||
|
|
||||||
if not conf.CheckHeader('omp.h'):
|
if sys.platform != 'darwin':
|
||||||
print "Compiler does not support OpenMP. Exiting"
|
if not conf.CheckHeader('omp.h'):
|
||||||
Exit(-1)
|
print "Compiler does not support OpenMP. Exiting"
|
||||||
|
Exit(-1)
|
||||||
|
|
||||||
if not conf.CheckLibWithHeader('xml2', 'libxml/xmlreader.h', 'CXX'):
|
if not conf.CheckLibWithHeader('xml2', 'libxml/xmlreader.h', 'CXX'):
|
||||||
print "libxml2 library or header not found. Exiting"
|
print "libxml2 library or header not found. Exiting"
|
||||||
Exit(-1)
|
Exit(-1)
|
||||||
|
Loading…
Reference in New Issue
Block a user