2012-09-28 00:43:51 +08:00
|
|
|
import os, sys
|
|
|
|
|
|
|
|
BUILDDIR = '#build/release'
|
|
|
|
DISTDIR = '#dist'
|
|
|
|
CXX = 'g++'
|
|
|
|
CC = 'gcc'
|
2014-07-02 04:35:30 +08:00
|
|
|
CXXFLAGS = ['-O3', '-Wall', '-g', '-pipe', '-march=nocona', '-msse2', '-ftree-vectorize', '-mfpmath=sse', '-funsafe-math-optimizations', '-fno-rounding-math', '-fno-signaling-nans', '-fno-math-errno', '-fomit-frame-pointer', '-DMTS_DEBUG', '-DSINGLE_PRECISION', '-DSPECTRUM_SAMPLES=3', '-DMTS_SSE', '-DMTS_HAS_COHERENT_RT', '-fopenmp', '-fvisibility=hidden', '-mtls-dialect=gnu2']
|
2012-09-28 00:43:51 +08:00
|
|
|
LINKFLAGS = []
|
|
|
|
SHLINKFLAGS = ['-rdynamic', '-shared', '-fPIC', '-lstdc++']
|
|
|
|
BASEINCLUDE = ['#include']
|
|
|
|
BASELIB = ['dl', 'm', 'pthread', 'gomp']
|
|
|
|
EIGENINCLUDE = ['/usr/include/eigen3']
|
|
|
|
OEXRINCLUDE = ['/usr/include/OpenEXR']
|
|
|
|
OEXRLIB = ['Half', 'IlmImf', 'z']
|
|
|
|
PNGLIB = ['png']
|
|
|
|
JPEGLIB = ['jpeg']
|
|
|
|
XERCESINCLUDE = []
|
|
|
|
XERCESLIB = ['xerces-c']
|
|
|
|
GLLIB = ['GL', 'GLU', 'GLEWmx', 'Xxf86vm', 'X11']
|
|
|
|
GLFLAGS = ['-DGLEW_MX']
|
|
|
|
BOOSTLIB = ['boost_system', 'boost_filesystem', 'boost_thread']
|
|
|
|
COLLADAINCLUDE = ['/usr/include/collada-dom', '/usr/include/collada-dom/1.4']
|
2013-02-07 05:15:18 +08:00
|
|
|
COLLADALIB = ['collada14dom', 'xml2']
|
2013-11-05 02:09:24 +08:00
|
|
|
FFTWLIB = ['fftw3_threads', 'fftw3']
|
2012-09-28 00:43:51 +08:00
|
|
|
|
2013-11-11 05:59:07 +08:00
|
|
|
# The following runs a helper script to search for installed Python
|
|
|
|
# packages that have a Boost Python library of matching version.
|
|
|
|
# A Mitsuba binding library will be compiled for each such pair.
|
|
|
|
# Alternatively, you could also specify the paths and libraries manually
|
|
|
|
# using the variables PYTHON27INCLUDE, PYTHON27LIB, PYTHON27LIBDIR etc.
|
2012-09-28 00:43:51 +08:00
|
|
|
|
2013-11-11 05:59:07 +08:00
|
|
|
import sys, os
|
|
|
|
sys.path.append(os.path.abspath('../data/scons'))
|
|
|
|
from detect_python import detect_python
|
|
|
|
locals().update(detect_python())
|
2012-09-28 00:43:51 +08:00
|
|
|
|