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:
authorNathan Letwory <nathan@letworyinteractive.com>2011-11-09 00:40:02 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2011-11-09 00:40:02 +0400
commitc9bca51e7646510913bace5374e0a948ddb7dfb7 (patch)
tree3862a0cc49bbe3ab3f9310d4cbd9adecbd8236af /intern
parent33814e0093f0d8d5d8dca46dfc3a13a39a256227 (diff)
Add compiles support for Cycles.
No CUDA compiling yet, will be added later.
Diffstat (limited to 'intern')
-rw-r--r--intern/SConscript3
-rw-r--r--intern/cycles/SConscript33
2 files changed, 36 insertions, 0 deletions
diff --git a/intern/SConscript b/intern/SConscript
index da245c78776..c13714543cb 100644
--- a/intern/SConscript
+++ b/intern/SConscript
@@ -24,6 +24,9 @@ NEW_CSG='false'
if env['WITH_BF_FLUID']:
SConscript(['elbeem/SConscript'])
+
+if env['WITH_BF_CYCLES']:
+ SConscript(['cycles/SConscript'])
if NEW_CSG=='false':
SConscript(['bsp/SConscript'])
diff --git a/intern/cycles/SConscript b/intern/cycles/SConscript
new file mode 100644
index 00000000000..dbaf52ff175
--- /dev/null
+++ b/intern/cycles/SConscript
@@ -0,0 +1,33 @@
+#!/usr/bin/python
+from os import path
+Import('env')
+
+cycles = env.Clone()
+
+cycles.Depends('../../source/blender/makesrna/intern/RNA_blender_cpp.h', 'makesrna')
+
+sources = cycles.Glob('bvh/*.cpp') + cycles.Glob('device/*.cpp') + cycles.Glob('kernel/*.cpp') + cycles.Glob('render/*.cpp') + cycles.Glob('subd/*.cpp') + cycles.Glob('util/*.cpp') + cycles.Glob('util/*.c') + cycles.Glob('blender/*.cpp')
+
+sources.remove(path.join('util', 'util_view.cpp'))
+sources.remove(path.join('render', 'film_response.cpp'))
+
+incs = []
+defs = []
+
+defs.append('CCL_NAMESPACE_BEGIN=namespace ccl {')
+defs.append('CCL_NAMESPACE_END=}')
+
+defs.append('WITH_OPENCL')
+defs.append('WITH_MULTI')
+defs.append('WITH_CUDA')
+
+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())
+incs.extend('#extern/glew/include'.split())
+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] )
+