Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2011-11-09 15:33:10 +0400
committerAntony Riakiotakis <kalast@gmail.com>2011-11-09 15:33:10 +0400
commit83b16687b99817697e36e7117e4ff54ff9198704 (patch)
tree7189672d1c5a9fc04654518e9b1ab32d2ec56298 /intern
parentf9e3aa3da5aaec6d967336b60956fa44038d844a (diff)
Make scons work MinGW. This commit resolves several issues such as enable OpenEXR, Game Engine and Player, enable latest features, and solve link order for gcc. So MinGW is right now fully supported as a build system for release type builds. Debug builds not tested.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/SConscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/intern/cycles/SConscript b/intern/cycles/SConscript
index dbaf52ff175..725553e6d5b 100644
--- a/intern/cycles/SConscript
+++ b/intern/cycles/SConscript
@@ -13,6 +13,8 @@ sources.remove(path.join('render', 'film_response.cpp'))
incs = []
defs = []
+ccflags = []
+cxxflags = []
defs.append('CCL_NAMESPACE_BEGIN=namespace ccl {')
defs.append('CCL_NAMESPACE_END=}')
@@ -21,6 +23,11 @@ defs.append('WITH_OPENCL')
defs.append('WITH_MULTI')
defs.append('WITH_CUDA')
+if env['OURPLATFORM'] in ('win32-mingw'):
+ cxxflags.append('-fno-rtti -ffast-math -msse -msse2 -msse3 -mtune=native'.split())
+ ccflags.append('-ffast-math -msse -msse2 -msse3 -mtune=native'.split())
+ defs.append('BOOST_NO_RTTI BOOST_NO_TYPEID'.split())
+
incs.extend('. bvh render device kernel kernel/osl kernel/svm util subd'.split())
incs.extend('#intern/guardedalloc #source/blender/makesrna #source/blender/makesdna'.split())
incs.extend('#source/blender/blenloader ../../source/blender/makesrna/intern'.split())
@@ -29,5 +36,5 @@ incs.append(cycles['BF_OIIO_INC'])
incs.append(cycles['BF_BOOST_INC'])
incs.append(cycles['BF_PYTHON_INC'])
-cycles.BlenderLib('bf_intern_cycles', sources, incs, defs, libtype=['intern'], priority=[0] )
+cycles.BlenderLib('bf_intern_cycles', sources, incs, defs, libtype=['intern'], priority=[0], compileflags=[None], cc_compileflags=ccflags, cxx_compileflags=cxxflags)