-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSConstruct
More file actions
62 lines (53 loc) · 1.68 KB
/
SConstruct
File metadata and controls
62 lines (53 loc) · 1.68 KB
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
52
53
54
55
56
57
58
59
60
61
# SConstruct - root SCons script for SuperSpaceShipsShootingStuff
from scons_common import *
import os
import glob
###### Sconstruct ######
env = createEnvironment(generate_help=True) # generate the help
if os.name == 'posix':
env['LINK'] = 'g++' # We got some problem of gcc being used instead of g++ when using VariantDir()...
#env['ENV']['PKG_CONFIG_PATH'] = os.path.join(qtdir, 'lib/pkgconfig')
env.Append(LFLAGS=['-Wl'])
### Libs
# opengl
if env['PLATFORM'] == 'win32':
env.Append(LIBPATH=['dep/glew/lib-win32'])
env.Append(CPPPATH = ['dep/glew/include'])
env.Append(LIBS=['-lopengl32','-lglew32','-lglu32'])
else:
env.Append(LIBS=['-lGL','-lGLU','-lGLEW'])
# openal
if env['PLATFORM'] == 'win32':
env.Append(CPPPATH=['dep/openal/include'])
env.Append(LIBPATH=['dep/openal/lib-win32'])
env.Append(LIBS=['-lOpenAL32','-lalut'])
else:
env.Append(LIBS=['-lopenal','-lalut'])
# lua
if env['PLATFORM'] == 'win32':
env.Append(CPPPATH=['dep/lua/src'])
env.Append(LIBPATH=['dep/lua/lib-win32'])
env.Append(LIBS=['-llua'])
#env.Append(LIBS=['-llua-5.2','-ldl'])
else:
env.ParseConfig('pkg-config lua --cflags --libs')
# assimp
if env['PLATFORM'] == 'win32':
env.Append(LIBPATH=['dep/assimp/lib-win32'])
#else:
# env.Append(LIBPATH=['dep/assimp/lib'])
env.Append(CPPPATH = ['dep/assimp/include'])
env.Append(LIBS=['-lassimp'])
# bullet
env.Append(LIBS=
['BulletSoftBody',
'BulletDynamics',
'BulletCollision',
'LinearMath'])
if env['PLATFORM'] == 'win32':
env.Append(CPPPATH=['dep/bullet/src'])
env.Append(LIBPATH=['dep/bullet/lib-win32'])
else:
env.ParseConfig('pkg-config bullet --cflags --libs')
#env.ParseConfig('pkg-config uuid --cflags --libs')
SConscript('SConscript_engine','env')