mitsuba/build/config-msvc2010-win64.py

36 lines
2.0 KiB
Python
Raw Normal View History

2011-08-14 09:56:51 +08:00
import sys, os
2011-06-01 08:20:53 +08:00
BUILDDIR = '#build/release'
DISTDIR = '#dist'
2010-10-21 03:37:34 +08:00
CXX = 'cl'
2011-06-02 00:32:55 +08:00
CC = 'cl'
2011-08-17 02:01:40 +08:00
# /O2=optimize for speed, global optimizations, intrinsic functions, favor fast code, frame pointer omission
2010-10-21 03:37:34 +08:00
# /EHsc=C++ exceptions, /fp:fast=Enable reasonable FP optimizations, /GS-=No buffer security checks, /GL=whole program optimizations
# To include debug information add '/Z7' to CXXFLAGS and '/DEBUG' to LINKFLAGS
2011-08-17 02:01:40 +08:00
CXXFLAGS = ['/nologo', '/O2', '/fp:fast', '/D', 'WIN32', '/D', 'WIN64', '/W3', '/EHsc', '/GS-', '/GL', '/MD', '/D', 'MTS_DEBUG', '/D', 'SINGLE_PRECISION', '/D', 'SPECTRUM_SAMPLES=3', '/D', 'MTS_SSE', '/D', 'MTS_HAS_COHERENT_RT', '/D', '_CONSOLE', '/D', 'NDEBUG', '/openmp']
2010-10-21 03:37:34 +08:00
SHCXXFLAGS = CXXFLAGS
TARGET_ARCH = 'x86_64'
MSVC_VERSION = '10.0'
LINKFLAGS = ['/nologo', '/SUBSYSTEM:CONSOLE', '/MACHINE:X64', '/FIXED:NO', '/OPT:REF', '/OPT:ICF', '/LTCG', '/NODEFAULTLIB:LIBCMT', '/MANIFEST']
BASEINCLUDE = ['#include', '#dependencies/windows/include']
2010-10-21 03:37:34 +08:00
BASELIB = ['pthreadVCE2', 'msvcrt', 'ws2_32']
OEXRINCLUDE = ['#dependencies/windows/include/OpenEXR']
2010-10-21 03:37:34 +08:00
OEXRFLAGS = ['/D', 'OPENEXR_DLL']
2011-04-25 06:07:46 +08:00
OEXRLIB = ['IlmImf', 'IlmThread', 'zlib1', 'Half']
BOOSTINCLUDE = ['#dependencies']
BOOSTLIB = ['boost_system-vc100-mt-1_44', 'boost_filesystem-vc100-mt-1_44']
COLLADAINCLUDE = ['#dependencies/windows/include/colladadom', '#dependencies/windows/include/colladadom/1.4']
COLLADALIB = ['libcollada14dom23']
2010-10-21 03:37:34 +08:00
XERCESLIB = ['xerces-c_3']
PNGLIB = ['libpng13']
JPEGLIB = ['jpeg62']
GLLIB = ['opengl32', 'glu32', 'glew32mx', 'gdi32', 'user32']
GLFLAGS = ['/D', 'GLEW_MX']
BASELIBDIR = ['#dependencies/windows/lib64', '#dependencies/windows/lib64/vc100']
2011-08-14 09:56:51 +08:00
PYTHONINCLUDE = [os.path.join(os.path.split(sys.executable)[0], 'include')]
PYTHONLIBDIR = [os.path.join(os.path.split(sys.executable)[0], 'libs')]
PYTHONLIB = ['boost_python-vc100-mt-1_44']
2010-10-21 03:37:34 +08:00
SHLIBPREFIX = 'lib'
SHLIBSUFFIX = '.dll'
PROGSUFFIX = '.exe'