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

SConscript « Ketsji « gameengine « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f08990df65c7ea4bdb777957b33d66943fae9a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/python
import sys

Import ('env')

sources = env.Glob('*.cpp')

# Mathutils C files.
sources.extend([\
	'#source/blender/python/api2_2x/Mathutils.c',\
	'#source/blender/python/api2_2x/constant.c',\
	'#source/blender/python/api2_2x/euler.c',\
	'#source/blender/python/api2_2x/gen_utils.c',\
	'#source/blender/python/api2_2x/matrix.c',\
	'#source/blender/python/api2_2x/point.c',\
	'#source/blender/python/api2_2x/quat.c',\
	'#source/blender/python/api2_2x/vector.c',\
])

incs = '. #source/blender/python/api2_2x' # Only for Mathutils! - no other deps

incs += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #intern/bmfont'
incs += ' #intern/SoundSystem #intern/SoundSystem/include #intern/SoundSystem/openal'
incs += ' #intern/SoundSystem/dummy #intern/SoundSystem/intern #source/gameengine/Converter'
incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib'
incs += ' #source/blender/blenkernel #source/blender #source/blender/include'
incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Rasterizer'
incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
incs += ' #source/gameengine/Physics/BlOde #source/gameengine/Physics/Dummy'
incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include #source/blender/gpu'

cflags = []
if env['OURPLATFORM'] == 'win32-vc':
	cflags.append('/GR')
	cflags.append('/Ox')

if env['WITH_BF_GLEXT'] == 1:
        env['CPPFLAGS'].append('-DWITH_GLEXT')

incs += ' ' + env['BF_SOLID_INC']
incs += ' ' + env['BF_PYTHON_INC']
incs += ' ' + env['BF_SDL_INC']
incs += ' ' + env['BF_BULLET_INC']
incs += ' ' + env['BF_OPENGL_INC']

env.BlenderLib ( 'bf_ketsji', sources, Split(incs), [], libtype=['game','player'], priority=[25, 72], compileflags = cflags )