python adjustments
parent
73dfd56677
commit
4a5435f8c7
|
@ -34,8 +34,6 @@ build('src/librender/SConscript')
|
||||||
build('src/libhw/SConscript')
|
build('src/libhw/SConscript')
|
||||||
# Bidirectional support library
|
# Bidirectional support library
|
||||||
build('src/libbidir/SConscript')
|
build('src/libbidir/SConscript')
|
||||||
# Python binding library
|
|
||||||
build('src/mtspy/SConscript')
|
|
||||||
|
|
||||||
# ===== Build the applications =====
|
# ===== Build the applications =====
|
||||||
env = env.Clone()
|
env = env.Clone()
|
||||||
|
@ -49,9 +47,13 @@ converter_objects = build('src/converter/SConscript', ['mainEnv'])
|
||||||
# Build the Qt-based GUI binaries
|
# Build the Qt-based GUI binaries
|
||||||
build('src/mtsgui/SConscript', ['mainEnv', 'converter_objects'], duplicate=True)
|
build('src/mtsgui/SConscript', ['mainEnv', 'converter_objects'], duplicate=True)
|
||||||
|
|
||||||
|
env['SHLIBPREFIX']=''
|
||||||
|
|
||||||
|
# Python binding library
|
||||||
|
build('src/mtspy/SConscript')
|
||||||
|
|
||||||
# ===== Build the plugins =====
|
# ===== Build the plugins =====
|
||||||
|
|
||||||
env['SHLIBPREFIX']=''
|
|
||||||
Export('env')
|
Export('env')
|
||||||
|
|
||||||
# Utilities
|
# Utilities
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
Import('env', 'sys', 'os')
|
Import('env', 'sys', 'os', 'hasPython')
|
||||||
|
|
||||||
pythonEnv = env.Clone()
|
pythonEnv = env.Clone()
|
||||||
pythonEnv.Append(CPPDEFINES = [['MTS_BUILD_MODULE', 'MTS_MODULE_PYTHON']])
|
pythonEnv.Append(CPPDEFINES = [['MTS_BUILD_MODULE', 'MTS_MODULE_PYTHON']])
|
||||||
|
pythonEnv['SHLIBPREFIX']=''
|
||||||
|
|
||||||
|
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
pythonEnv.Append(CXXFLAGS = ['-framework', 'Python'],
|
pythonEnv.Append(CXXFLAGS = ['-framework', 'Python'],
|
||||||
CPPPATH=['/System/Library/Frameworks/Python.framework/Versions/2.5/Headers'],
|
CPPPATH=['/System/Library/Frameworks/Python.framework/Versions/2.5/Headers'],
|
||||||
LIBS=['boost_python', 'boost_system', 'Python'])
|
LIBS=['boost_python', 'boost_system', 'Python'])
|
||||||
|
|
||||||
mtspy = pythonEnv.SharedLibrary('mtspy', ['base.cpp']);
|
if hasPython:
|
||||||
|
mtspy = pythonEnv.SharedLibrary('mtspy', ['base.cpp']);
|
||||||
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
pythonEnv.AddPostAction(mtspy, 'install_name_tool -id @executable_path/../Frameworks/mtspy.dylib $TARGET')
|
pythonEnv.AddPostAction(mtspy, 'install_name_tool -id @executable_path/../Frameworks/mtspy.dylib $TARGET')
|
||||||
|
|
Loading…
Reference in New Issue