Commit c0b13e0d authored by Laurent Belcour's avatar Laurent Belcour
Browse files

Merge.

Updating the python script to avoid compiling if the library is not present.
parent 9eb9cfa6
env = Environment()
env.Append(CPPPATH=['../../external/build/include'])
conf = Configure(env)
env.Append(CPPPATH=['../../external/build/include'])
env.Append(CPPPATH=['../', '/usr/include/python2.7'])
env.Append(CPPPATH=['/opt/local/include'])
env.Append(LIBPATH=['../build'])
env.Append(LIBPATH=['/usr/lib/x86_64-gnu-linux'])
env.Append(LIBPATH=['/opt/local/lib'])
env.Append(LIBS=['python2.7', 'boost_python-py27', 'core'])
#env.Append(LIBS=['python2.7', 'boost_python-mt', 'core'])
build_lib = False
if conf.CheckLibWithHeader('boost_python-py27', 'boost/python.hpp', 'c++'):
env.Append(LIBS=['python2.7', 'boost_python-py27', 'core'])
#env.Append(LIBS=['python2.7', 'boost_python-mt', 'core'])
env['SHLIBPREFIX']=''
#end
env['SHLIBPREFIX']=''
env = conf.Finish()
env.SharedLibrary('alta', ['alta.cpp'])
if build_lib:
env.SharedLibrary('alta', ['alta.cpp'])
#end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment