merge
commit
b768f94933
|
@ -21,8 +21,11 @@ if not os.path.exists(configFile):
|
||||||
print 'A configuration file must be selected! Have a look at http://www.mitsuba-renderer.org/docs.html'
|
print 'A configuration file must be selected! Have a look at http://www.mitsuba-renderer.org/docs.html'
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
if (sys.platform == 'win32' or sys.platform == 'darwin') and not os.path.exists(GetBuildPath('#dependencies')):
|
versionFilename = GetBuildPath('#dependencies/version')
|
||||||
print 'The dependencies are missing -- see http://www.mitsuba-renderer.org/devblog/archives/11-Build-system-changes.html'
|
|
||||||
|
if not os.path.exists(versionFilename):
|
||||||
|
print 'The dependencies are missing -- please check out https://www.mitsuba-renderer.org/hg/dependencies'
|
||||||
|
print 'and ensure that the newly created directory is a subdirectory of the main Mitsuba folder'
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
|
||||||
# Parse configuration options
|
# Parse configuration options
|
||||||
|
@ -224,6 +227,18 @@ else:
|
||||||
print MTS_VERSION
|
print MTS_VERSION
|
||||||
Export('MTS_VERSION')
|
Export('MTS_VERSION')
|
||||||
|
|
||||||
|
with open(versionFilename) as f:
|
||||||
|
depVersion = f.readline().strip()
|
||||||
|
if MTS_VERSION != depVersion:
|
||||||
|
print '\nThe dependency directory and your Mitsuba codebase have different version numbers!'
|
||||||
|
print 'Mitsuba has version %s, and the dependencies have version %s. Please bring them ' % (MTS_VERSION, depVersion)
|
||||||
|
print 'into sync, either by running \n'
|
||||||
|
print '$ hg update -r v%s\n' % depVersion
|
||||||
|
print 'in the Mitsuba directory, or by running\n'
|
||||||
|
print '$ cd dependencies'
|
||||||
|
print '$ hg update -r v%s\n' % MTS_VERSION
|
||||||
|
Exit(1)
|
||||||
|
|
||||||
env = conf.Finish()
|
env = conf.Finish()
|
||||||
|
|
||||||
dist = GetOption('dist') != None
|
dist = GetOption('dist') != None
|
||||||
|
@ -232,10 +247,17 @@ Export('dist')
|
||||||
def osxlibinst_build_function(self, target, source, pkgname = None, use_own = None):
|
def osxlibinst_build_function(self, target, source, pkgname = None, use_own = None):
|
||||||
inst = self.Install(target, source)
|
inst = self.Install(target, source)
|
||||||
prefix, name = os.path.split(source)
|
prefix, name = os.path.split(source)
|
||||||
self.AddPostAction(inst, 'install_name_tool -id @executable_path/../Frameworks/' + name + ' $TARGET')
|
self.AddPostAction(inst, 'install_name_tool -id @loader_path/../Frameworks/' + name + ' $TARGET')
|
||||||
|
return inst
|
||||||
|
|
||||||
|
def osxlibinst_as_build_function(self, target, source, pkgname = None, use_own = None):
|
||||||
|
inst = self.InstallAs(target, source)
|
||||||
|
prefix, name = os.path.split(source)
|
||||||
|
self.AddPostAction(inst, 'install_name_tool -id @loader_path/../Frameworks/' + name + ' $TARGET')
|
||||||
return inst
|
return inst
|
||||||
|
|
||||||
env.__class__.OSXLibInst = osxlibinst_build_function
|
env.__class__.OSXLibInst = osxlibinst_build_function
|
||||||
|
env.__class__.OSXLibInstAs = osxlibinst_as_build_function
|
||||||
|
|
||||||
if hasCollada:
|
if hasCollada:
|
||||||
env.Append(CPPDEFINES = [['MTS_HAS_COLLADA', 1]] )
|
env.Append(CPPDEFINES = [['MTS_HAS_COLLADA', 1]] )
|
||||||
|
|
|
@ -15,6 +15,15 @@ def install(target, paths, prefix = None):
|
||||||
else:
|
else:
|
||||||
installTargets += env.Install(target, prefix + '/' + path)
|
installTargets += env.Install(target, prefix + '/' + path)
|
||||||
|
|
||||||
|
def installAs(target, path, prefix = None):
|
||||||
|
global installTargets
|
||||||
|
if prefix == None:
|
||||||
|
prefix = env['BUILDDIR']
|
||||||
|
if os.path.splitext(path)[1] == '.dylib':
|
||||||
|
installTargets += env.OSXLibInstAs(target, prefix + '/' + path)
|
||||||
|
else:
|
||||||
|
installTargets += env.InstallAs(target, prefix + '/' + path)
|
||||||
|
|
||||||
if not 'DISTDIR' in env:
|
if not 'DISTDIR' in env:
|
||||||
print 'The \"DISTDIR\" variable is missing. Please update your configuration file!'
|
print 'The \"DISTDIR\" variable is missing. Please update your configuration file!'
|
||||||
Exit(1)
|
Exit(1)
|
||||||
|
@ -61,7 +70,7 @@ if sys.platform == 'win32':
|
||||||
install(distDir, ['libcore/libmitsuba-core.dll', 'libhw/libmitsuba-hw.dll',
|
install(distDir, ['libcore/libmitsuba-core.dll', 'libhw/libmitsuba-hw.dll',
|
||||||
'librender/libmitsuba-render.dll', 'libbidir/libmitsuba-bidir.dll'])
|
'librender/libmitsuba-render.dll', 'libbidir/libmitsuba-bidir.dll'])
|
||||||
if hasPython:
|
if hasPython:
|
||||||
install(distDir, ['mtspy/mtspy.dll'])
|
installAs(os.path.join(distDir, 'mtspy.pyd'), 'mtspy/mtspy.dylib')
|
||||||
install(distDir, ['Iex.dll', 'Half.dll','IlmThread.dll', 'Imath.dll','IlmImf.dll','zlib1.dll',
|
install(distDir, ['Iex.dll', 'Half.dll','IlmThread.dll', 'Imath.dll','IlmImf.dll','zlib1.dll',
|
||||||
'libpng13.dll', 'jpeg62.dll', 'pthreadVCE2.dll', 'xerces-c_3_0.dll', 'glew32mx.dll'],
|
'libpng13.dll', 'jpeg62.dll', 'pthreadVCE2.dll', 'xerces-c_3_0.dll', 'glew32mx.dll'],
|
||||||
prefix=dllprefix)
|
prefix=dllprefix)
|
||||||
|
@ -83,7 +92,16 @@ if sys.platform == 'win32':
|
||||||
'QtNetwork4.dll', 'QtOpenGL4.dll', 'QtXmlPatterns4.dll'], prefix = env['QT4_BINPATH'])
|
'QtNetwork4.dll', 'QtOpenGL4.dll', 'QtXmlPatterns4.dll'], prefix = env['QT4_BINPATH'])
|
||||||
elif sys.platform == 'darwin':
|
elif sys.platform == 'darwin':
|
||||||
for i in plugins:
|
for i in plugins:
|
||||||
installTargets += env.Install(os.path.join(distDir, 'plugins'), i)
|
plugin = env.Install(os.path.join(distDir, 'plugins'), i)
|
||||||
|
plugin = env.AddPostAction(plugin,
|
||||||
|
'install_name_tool -change @loader_path/../Frameworks/libmitsuba-core.dylib @loader_path/../Contents/Frameworks/libmitsuba-core.dylib ${TARGET}; ' +
|
||||||
|
'install_name_tool -change @loader_path/../Frameworks/libmitsuba-render.dylib @loader_path/../Contents/Frameworks/libmitsuba-render.dylib ${TARGET}; ' +
|
||||||
|
'install_name_tool -change @loader_path/../Frameworks/libmitsuba-hw.dylib @loader_path/../Contents/Frameworks/libmitsuba-hw.dylib ${TARGET}; ' +
|
||||||
|
'install_name_tool -change @loader_path/../Frameworks/libmitsuba-bidir.dylib @loader_path/../Contents/Frameworks/libmitsuba-bidir.dylib ${TARGET}; ' +
|
||||||
|
'install_name_tool -change @loader_path/../Frameworks/libboost_system.dylib @loader_path/../Contents/Frameworks/libboost_system.dylib ${TARGET}; ' +
|
||||||
|
'install_name_tool -change @loader_path/../Frameworks/libboost_filesystem.dylib @loader_path/../Contents/Frameworks/libboost_filesystem.dylib ${TARGET}'
|
||||||
|
);
|
||||||
|
installTargets += plugin
|
||||||
install(os.path.join(distDir, 'Contents/MacOS'), ['mitsuba/mitsuba', 'mitsuba/mtssrv', 'mitsuba/mtsutil'])
|
install(os.path.join(distDir, 'Contents/MacOS'), ['mitsuba/mitsuba', 'mitsuba/mtssrv', 'mitsuba/mtsutil'])
|
||||||
if hasCollada:
|
if hasCollada:
|
||||||
install(os.path.join(distDir, 'Contents/MacOS'), ['converter/mtsimport'])
|
install(os.path.join(distDir, 'Contents/MacOS'), ['converter/mtsimport'])
|
||||||
|
@ -97,13 +115,14 @@ elif sys.platform == 'darwin':
|
||||||
install(frameworkDir, ['libcore/libmitsuba-core.dylib', 'libhw/libmitsuba-hw.dylib',
|
install(frameworkDir, ['libcore/libmitsuba-core.dylib', 'libhw/libmitsuba-hw.dylib',
|
||||||
'librender/libmitsuba-render.dylib', 'libbidir/libmitsuba-bidir.dylib'])
|
'librender/libmitsuba-render.dylib', 'libbidir/libmitsuba-bidir.dylib'])
|
||||||
if hasPython:
|
if hasPython:
|
||||||
install(frameworkDir, ['mtspy/mtspy.dylib'])
|
installAs(os.path.join(frameworkDir, 'mtspy.so'), 'mtspy/mtspy.dylib')
|
||||||
install(frameworkDir, [
|
install(frameworkDir, [
|
||||||
'GLEW.framework/Resources/libs/libGLEW.dylib', 'OpenEXR.framework/Resources/lib/libHalf.6.dylib',
|
'GLEW.framework/Resources/libs/libGLEW.dylib', 'OpenEXR.framework/Resources/lib/libHalf.6.dylib',
|
||||||
'OpenEXR.framework/Resources/lib/libIex.6.dylib', 'OpenEXR.framework/Resources/lib/libImath.6.dylib',
|
'OpenEXR.framework/Resources/lib/libIex.6.dylib', 'OpenEXR.framework/Resources/lib/libImath.6.dylib',
|
||||||
'OpenEXR.framework/Resources/lib/libIlmThread.6.dylib', 'OpenEXR.framework/Resources/lib/libIlmImf.6.dylib',
|
'OpenEXR.framework/Resources/lib/libIlmThread.6.dylib', 'OpenEXR.framework/Resources/lib/libIlmImf.6.dylib',
|
||||||
'Xerces-C.framework/Resources/lib/libxerces-c-3.0.dylib', 'libpng.framework/Resources/lib/libpng.dylib',
|
'Xerces-C.framework/Resources/lib/libxerces-c-3.0.dylib', 'libpng.framework/Resources/lib/libpng.dylib',
|
||||||
'libjpeg.framework/Resources/lib/libjpeg.dylib', 'libboost.framework/Resources/lib/libboost_system.dylib',
|
'libjpeg.framework/Resources/lib/libjpeg.dylib', 'libboost.framework/Resources/lib/libboost_python.dylib',
|
||||||
|
'libboost.framework/Resources/lib/libboost_system.dylib',
|
||||||
'libboost.framework/Resources/lib/libboost_filesystem.dylib'], '#dependencies/darwin')
|
'libboost.framework/Resources/lib/libboost_filesystem.dylib'], '#dependencies/darwin')
|
||||||
if hasCollada:
|
if hasCollada:
|
||||||
install(frameworkDir, [
|
install(frameworkDir, [
|
||||||
|
@ -116,13 +135,13 @@ elif sys.platform == 'darwin':
|
||||||
xmlpatterns = env.OSXLibInst(frameworkDir, '/Library/Frameworks/QtXmlPatterns.framework/Versions/4/QtXmlPatterns')
|
xmlpatterns = env.OSXLibInst(frameworkDir, '/Library/Frameworks/QtXmlPatterns.framework/Versions/4/QtXmlPatterns')
|
||||||
network = env.OSXLibInst(frameworkDir, '/Library/Frameworks/QtNetwork.framework/Versions/4/QtNetwork')
|
network = env.OSXLibInst(frameworkDir, '/Library/Frameworks/QtNetwork.framework/Versions/4/QtNetwork')
|
||||||
gui = env.OSXLibInst(frameworkDir, '/Library/Frameworks/QtGui.framework/Versions/4/QtGui')
|
gui = env.OSXLibInst(frameworkDir, '/Library/Frameworks/QtGui.framework/Versions/4/QtGui')
|
||||||
installTargets += env.AddPostAction(xml, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore $TARGET')
|
installTargets += env.AddPostAction(xml, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../Frameworks/QtCore $TARGET')
|
||||||
installTargets += env.AddPostAction(xmlpatterns, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore $TARGET')
|
installTargets += env.AddPostAction(xmlpatterns, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../Frameworks/QtCore $TARGET')
|
||||||
installTargets += env.AddPostAction(xmlpatterns, 'install_name_tool -change QtNetwork.framework/Versions/4/QtNetwork @executable_path/../Frameworks/QtNetwork $TARGET')
|
installTargets += env.AddPostAction(xmlpatterns, 'install_name_tool -change QtNetwork.framework/Versions/4/QtNetwork @loader_path/../Frameworks/QtNetwork $TARGET')
|
||||||
installTargets += env.AddPostAction(network, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore $TARGET')
|
installTargets += env.AddPostAction(network, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../Frameworks/QtCore $TARGET')
|
||||||
installTargets += env.AddPostAction(gui, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore $TARGET')
|
installTargets += env.AddPostAction(gui, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../Frameworks/QtCore $TARGET')
|
||||||
installTargets += env.AddPostAction(opengl, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore $TARGET')
|
installTargets += env.AddPostAction(opengl, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../Frameworks/QtCore $TARGET')
|
||||||
installTargets += env.AddPostAction(opengl, 'install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui $TARGET')
|
installTargets += env.AddPostAction(opengl, 'install_name_tool -change QtGui.framework/Versions/4/QtGui @loader_path/../Frameworks/QtGui $TARGET')
|
||||||
installTargets += env.Install(os.path.join(distDir, 'Contents/Resources'), '/Library/Frameworks//QtGui.framework/Versions/4/Resources/qt_menu.nib')
|
installTargets += env.Install(os.path.join(distDir, 'Contents/Resources'), '/Library/Frameworks//QtGui.framework/Versions/4/Resources/qt_menu.nib')
|
||||||
installTargets += env.Install(os.path.join(distDir, 'Contents/Resources/PreviewSettings.nib'), '#data/darwin/PreviewSettings.nib/designable.nib')
|
installTargets += env.Install(os.path.join(distDir, 'Contents/Resources/PreviewSettings.nib'), '#data/darwin/PreviewSettings.nib/designable.nib')
|
||||||
installTargets += env.Install(os.path.join(distDir, 'Contents/Resources/PreviewSettings.nib'), '#data/darwin/PreviewSettings.nib/keyedobjects.nib')
|
installTargets += env.Install(os.path.join(distDir, 'Contents/Resources/PreviewSettings.nib'), '#data/darwin/PreviewSettings.nib/keyedobjects.nib')
|
||||||
|
|
|
@ -2,8 +2,8 @@ BUILDDIR = '#build/release'
|
||||||
DISTDIR = '#Mitsuba.app'
|
DISTDIR = '#Mitsuba.app'
|
||||||
CXX = 'g++'
|
CXX = 'g++'
|
||||||
CC = 'gcc'
|
CC = 'gcc'
|
||||||
CXXFLAGS = ['-arch', 'i386', '-arch', 'x86_64', '-mmacosx-version-min=10.5', '-march=nocona', '-msse2', '-mfpmath=sse', '-ftree-vectorize', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fomit-frame-pointer', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk', '-O3', '-Wall', '-g', '-pipe', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fstrict-aliasing', '-fsched-interblock', '-freorder-blocks']
|
CXXFLAGS = ['-arch', 'i386', '-arch', 'x86_64', '-mmacosx-version-min=10.6', '-march=nocona', '-msse2', '-mfpmath=sse', '-ftree-vectorize', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fomit-frame-pointer', '-isysroot', '/Developer/SDKs/MacOSX10.6.sdk', '-O3', '-Wall', '-g', '-pipe', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fstrict-aliasing', '-fsched-interblock', '-freorder-blocks']
|
||||||
LINKFLAGS = ['-framework', 'OpenGL', '-framework', 'Cocoa', '-arch', 'i386', '-arch', 'x86_64', '-mmacosx-version-min=10.5', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk']
|
LINKFLAGS = ['-framework', 'OpenGL', '-framework', 'Cocoa', '-arch', 'i386', '-arch', 'x86_64', '-mmacosx-version-min=10.6', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk']
|
||||||
BASEINCLUDE = ['#include']
|
BASEINCLUDE = ['#include']
|
||||||
BASELIB = ['m', 'pthread', 'gomp']
|
BASELIB = ['m', 'pthread', 'gomp']
|
||||||
OEXRINCLUDE = ['#dependencies/darwin/OpenEXR.framework/Headers/OpenEXR']
|
OEXRINCLUDE = ['#dependencies/darwin/OpenEXR.framework/Headers/OpenEXR']
|
||||||
|
@ -25,8 +25,8 @@ GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTINCLUDE = ['#dependencies']
|
BOOSTINCLUDE = ['#dependencies']
|
||||||
BOOSTLIB = ['boost_filesystem', 'boost_system']
|
BOOSTLIB = ['boost_filesystem', 'boost_system']
|
||||||
BOOSTLIBDIR = ['#dependencies/darwin/libboost.framework/Resources/lib']
|
BOOSTLIBDIR = ['#dependencies/darwin/libboost.framework/Resources/lib']
|
||||||
PYTHONINCLUDE = ['/System/Library/Frameworks/Python.framework/Versions/2.5/Headers']
|
PYTHONINCLUDE = ['/System/Library/Frameworks/Python.framework/Versions/2.6/Headers']
|
||||||
PYTHONLIBS = ['boost_python', 'boost_system', 'Python']
|
PYTHONLIB = ['boost_python', 'boost_system', 'Python']
|
||||||
COLLADAINCLUDE = ['#dependencies/windows/include/colladadom', '#dependencies/windows/include/colladadom/1.4']
|
COLLADAINCLUDE = ['#dependencies/windows/include/colladadom', '#dependencies/windows/include/colladadom/1.4']
|
||||||
COLLADALIB = ['libCollada14Dom']
|
COLLADALIB = ['libCollada14Dom']
|
||||||
COLLADALIBDIR = ['#dependencies/darwin/Collada14Dom.framework/Resources/lib']
|
COLLADALIBDIR = ['#dependencies/darwin/Collada14Dom.framework/Resources/lib']
|
||||||
|
|
|
@ -2,8 +2,8 @@ BUILDDIR = '#build/release'
|
||||||
DISTDIR = '#Mitsuba.app'
|
DISTDIR = '#Mitsuba.app'
|
||||||
CXX = 'g++'
|
CXX = 'g++'
|
||||||
CC = 'gcc'
|
CC = 'gcc'
|
||||||
CXXFLAGS = ['-arch', 'i386', '-mmacosx-version-min=10.5', '-march=nocona', '-msse2', '-mfpmath=sse', '-ftree-vectorize', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fomit-frame-pointer', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk', '-O3', '-Wall', '-g', '-pipe', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fstrict-aliasing', '-fsched-interblock', '-freorder-blocks']
|
CXXFLAGS = ['-arch', 'i386', '-mmacosx-version-min=10.6', '-march=nocona', '-msse2', '-mfpmath=sse', '-ftree-vectorize', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fomit-frame-pointer', '-isysroot', '/Developer/SDKs/MacOSX10.6.sdk', '-O3', '-Wall', '-g', '-pipe', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fstrict-aliasing', '-fsched-interblock', '-freorder-blocks']
|
||||||
LINKFLAGS = ['-framework', 'OpenGL', '-framework', 'Cocoa', '-arch', 'i386', '-mmacosx-version-min=10.5', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk']
|
LINKFLAGS = ['-framework', 'OpenGL', '-framework', 'Cocoa', '-arch', 'i386', '-mmacosx-version-min=10.6', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk']
|
||||||
BASEINCLUDE = ['#include']
|
BASEINCLUDE = ['#include']
|
||||||
BASELIB = ['m', 'pthread', 'gomp']
|
BASELIB = ['m', 'pthread', 'gomp']
|
||||||
OEXRINCLUDE = ['#dependencies/darwin/OpenEXR.framework/Headers/OpenEXR']
|
OEXRINCLUDE = ['#dependencies/darwin/OpenEXR.framework/Headers/OpenEXR']
|
||||||
|
@ -25,8 +25,8 @@ GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTINCLUDE = ['#dependencies']
|
BOOSTINCLUDE = ['#dependencies']
|
||||||
BOOSTLIB = ['boost_filesystem', 'boost_system']
|
BOOSTLIB = ['boost_filesystem', 'boost_system']
|
||||||
BOOSTLIBDIR = ['#dependencies/darwin/libboost.framework/Resources/lib']
|
BOOSTLIBDIR = ['#dependencies/darwin/libboost.framework/Resources/lib']
|
||||||
PYTHONINCLUDE = ['/System/Library/Frameworks/Python.framework/Versions/2.5/Headers']
|
PYTHONINCLUDE = ['/System/Library/Frameworks/Python.framework/Versions/2.6/Headers']
|
||||||
PYTHONLIBS = ['boost_python', 'boost_system', 'Python']
|
PYTHONLIB = ['boost_python', 'boost_system', 'Python']
|
||||||
COLLADAINCLUDE = ['#dependencies/windows/include/colladadom', '#dependencies/windows/include/colladadom/1.4']
|
COLLADAINCLUDE = ['#dependencies/windows/include/colladadom', '#dependencies/windows/include/colladadom/1.4']
|
||||||
COLLADALIB = ['libCollada14Dom']
|
COLLADALIB = ['libCollada14Dom']
|
||||||
COLLADALIBDIR = ['#dependencies/darwin/Collada14Dom.framework/Resources/lib']
|
COLLADALIBDIR = ['#dependencies/darwin/Collada14Dom.framework/Resources/lib']
|
||||||
|
|
|
@ -2,8 +2,8 @@ BUILDDIR = '#build/release'
|
||||||
DISTDIR = '#Mitsuba.app'
|
DISTDIR = '#Mitsuba.app'
|
||||||
CXX = 'g++'
|
CXX = 'g++'
|
||||||
CC = 'gcc'
|
CC = 'gcc'
|
||||||
CXXFLAGS = ['-arch', 'x86_64', '-mmacosx-version-min=10.5', '-march=nocona', '-msse2', '-mfpmath=sse', '-ftree-vectorize', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-isysroot', '/Developer/SDKs/MacOSX10.5.sdk', '-O3', '-Wall', '-g', '-pipe', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fstrict-aliasing', '-fsched-interblock', '-freorder-blocks']
|
CXXFLAGS = ['-arch', 'x86_64', '-mmacosx-version-min=10.6', '-march=nocona', '-msse2', '-mfpmath=sse', '-ftree-vectorize', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-isysroot', '/Developer/SDKs/MacOSX10.6.sdk', '-O3', '-Wall', '-g', '-pipe', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fstrict-aliasing', '-fsched-interblock', '-freorder-blocks']
|
||||||
LINKFLAGS = ['-framework', 'OpenGL', '-framework', 'Cocoa', '-arch', 'x86_64', '-mmacosx-version-min=10.5', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk']
|
LINKFLAGS = ['-framework', 'OpenGL', '-framework', 'Cocoa', '-arch', 'x86_64', '-mmacosx-version-min=10.6', '-Wl,-syslibroot,/Developer/SDKs/MacOSX10.6.sdk']
|
||||||
BASEINCLUDE = ['#include']
|
BASEINCLUDE = ['#include']
|
||||||
BASELIB = ['m', 'pthread', 'gomp']
|
BASELIB = ['m', 'pthread', 'gomp']
|
||||||
OEXRINCLUDE = ['#dependencies/darwin/OpenEXR.framework/Headers/OpenEXR']
|
OEXRINCLUDE = ['#dependencies/darwin/OpenEXR.framework/Headers/OpenEXR']
|
||||||
|
@ -25,8 +25,8 @@ GLFLAGS = ['-DGLEW_MX']
|
||||||
BOOSTINCLUDE = ['#dependencies']
|
BOOSTINCLUDE = ['#dependencies']
|
||||||
BOOSTLIB = ['boost_filesystem', 'boost_system']
|
BOOSTLIB = ['boost_filesystem', 'boost_system']
|
||||||
BOOSTLIBDIR = ['#dependencies/darwin/libboost.framework/Resources/lib']
|
BOOSTLIBDIR = ['#dependencies/darwin/libboost.framework/Resources/lib']
|
||||||
PYTHONINCLUDE = ['/System/Library/Frameworks/Python.framework/Versions/2.5/Headers']
|
PYTHONINCLUDE = ['/System/Library/Frameworks/Python.framework/Versions/2.6/Headers']
|
||||||
PYTHONLIBS = ['boost_python', 'boost_system', 'Python']
|
PYTHONLIB = ['boost_python', 'boost_system', 'Python']
|
||||||
COLLADAINCLUDE = ['#dependencies/windows/include/colladadom', '#dependencies/windows/include/colladadom/1.4']
|
COLLADAINCLUDE = ['#dependencies/windows/include/colladadom', '#dependencies/windows/include/colladadom/1.4']
|
||||||
COLLADALIB = ['libCollada14Dom']
|
COLLADALIB = ['libCollada14Dom']
|
||||||
COLLADALIBDIR = ['#dependencies/darwin/Collada14Dom.framework/Resources/lib']
|
COLLADALIBDIR = ['#dependencies/darwin/Collada14Dom.framework/Resources/lib']
|
||||||
|
|
|
@ -6,7 +6,7 @@ bidirEnv.Append(CPPDEFINES = [['MTS_BUILD_MODULE', 'MTS_MODULE_BIDIR']] )
|
||||||
libbidir = bidirEnv.SharedLibrary('mitsuba-bidir', ['rsampler.cpp'])
|
libbidir = bidirEnv.SharedLibrary('mitsuba-bidir', ['rsampler.cpp'])
|
||||||
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
bidirEnv.AddPostAction(libbidir, 'install_name_tool -id @executable_path/../Frameworks/libmitsuba-bidir.dylib $TARGET')
|
bidirEnv.AddPostAction(libbidir, 'install_name_tool -id @loader_path/../Frameworks/libmitsuba-bidir.dylib $TARGET')
|
||||||
|
|
||||||
env.Append(LIBS=['mitsuba-bidir'])
|
env.Append(LIBS=['mitsuba-bidir'])
|
||||||
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'libbidir')])
|
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'libbidir')])
|
||||||
|
|
|
@ -50,7 +50,7 @@ elif sys.platform == 'win32':
|
||||||
libcore = coreEnv.SharedLibrary('mitsuba-core', libcore_objects)
|
libcore = coreEnv.SharedLibrary('mitsuba-core', libcore_objects)
|
||||||
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
coreEnv.AddPostAction(libcore, 'install_name_tool -id @executable_path/../Frameworks/libmitsuba-core.dylib $TARGET')
|
coreEnv.AddPostAction(libcore, 'install_name_tool -id @loader_path/../Frameworks/libmitsuba-core.dylib $TARGET')
|
||||||
|
|
||||||
env.Append(LIBS=['mitsuba-core'])
|
env.Append(LIBS=['mitsuba-core'])
|
||||||
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'libcore')])
|
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'libcore')])
|
||||||
|
|
|
@ -38,7 +38,7 @@ if sys.platform == 'darwin':
|
||||||
|
|
||||||
libhw = glEnv.SharedLibrary('mitsuba-hw', libhw_objects)
|
libhw = glEnv.SharedLibrary('mitsuba-hw', libhw_objects)
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
glEnv.AddPostAction(libhw, 'install_name_tool -id @executable_path/../Frameworks/libmitsuba-hw.dylib $TARGET')
|
glEnv.AddPostAction(libhw, 'install_name_tool -id @loader_path/../Frameworks/libmitsuba-hw.dylib $TARGET')
|
||||||
|
|
||||||
env.Append(LIBS=['mitsuba-hw'])
|
env.Append(LIBS=['mitsuba-hw'])
|
||||||
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'libhw')])
|
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'libhw')])
|
||||||
|
|
|
@ -23,7 +23,7 @@ librender = renderEnv.SharedLibrary('mitsuba-render', [
|
||||||
])
|
])
|
||||||
|
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
renderEnv.AddPostAction(librender, 'install_name_tool -id @executable_path/../Frameworks/libmitsuba-render.dylib $TARGET')
|
renderEnv.AddPostAction(librender, 'install_name_tool -id @loader_path/../Frameworks/libmitsuba-render.dylib $TARGET')
|
||||||
|
|
||||||
env.Append(LIBS=['mitsuba-render'])
|
env.Append(LIBS=['mitsuba-render'])
|
||||||
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'librender')])
|
env.Append(LIBPATH=[os.path.join(env['BUILDDIR'], 'librender')])
|
||||||
|
|
|
@ -59,10 +59,10 @@ if hasQt:
|
||||||
qtSources = [x for x in qtSources if (not isinstance(x, str) or 'cocoa' not in x)]
|
qtSources = [x for x in qtSources if (not isinstance(x, str) or 'cocoa' not in x)]
|
||||||
mtsgui = qtEnv.Program('mtsgui', qtSources)
|
mtsgui = qtEnv.Program('mtsgui', qtSources)
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtGui.framework/Versions/4/QtGui @executable_path/../Frameworks/QtGui $TARGET')
|
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtGui.framework/Versions/4/QtGui @loader_path/../Frameworks/QtGui $TARGET')
|
||||||
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @executable_path/../Frameworks/QtCore $TARGET')
|
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtCore.framework/Versions/4/QtCore @loader_path/../Frameworks/QtCore $TARGET')
|
||||||
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtOpenGL.framework/Versions/4/QtOpenGL @executable_path/../Frameworks/QtOpenGL $TARGET')
|
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtOpenGL.framework/Versions/4/QtOpenGL @loader_path/../Frameworks/QtOpenGL $TARGET')
|
||||||
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtXml.framework/Versions/4/QtXml @executable_path/../Frameworks/QtXml $TARGET')
|
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtXml.framework/Versions/4/QtXml @loader_path/../Frameworks/QtXml $TARGET')
|
||||||
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtNetwork.framework/Versions/4/QtNetwork @executable_path/../Frameworks/QtNetwork $TARGET')
|
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtNetwork.framework/Versions/4/QtNetwork @loader_path/../Frameworks/QtNetwork $TARGET')
|
||||||
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtXmlPatterns.framework/Versions/4/QtXmlPatterns @executable_path/../Frameworks/QtXmlPatterns $TARGET')
|
qtEnv.AddPostAction(mtsgui, 'install_name_tool -change QtXmlPatterns.framework/Versions/4/QtXmlPatterns @loader_path/../Frameworks/QtXmlPatterns $TARGET')
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@ if pythonEnv.has_key('PYTHONLIB'):
|
||||||
pythonEnv.Prepend(LIBS=pythonEnv['PYTHONLIB'])
|
pythonEnv.Prepend(LIBS=pythonEnv['PYTHONLIB'])
|
||||||
|
|
||||||
if hasPython:
|
if hasPython:
|
||||||
mtspy = pythonEnv.SharedLibrary('mtspy', ['base.cpp']);
|
mtspy_plugin = pythonEnv.SharedLibrary('mtspy', ['base.cpp']);
|
||||||
|
#mtspy_app = 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_plugin, 'install_name_tool -id @loader_path/mtspy.dylib $TARGET')
|
||||||
|
|
Loading…
Reference in New Issue