-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
66 lines (58 loc) · 1.95 KB
/
SConstruct
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
62
63
64
65
import os
import sys
OBJ_DIR = os.path.join(os.getcwd(), 'obj/');
env = Environment(ENV=os.environ,
CCFLAGS=['-O3','-Wall'],
OBJPREFIX = OBJ_DIR)
code = ["src/mainer.cpp",
"src/Xml.cpp",
"src/gui/Text.cpp",
"src/LevelMap.cpp",
"src/TextureLoader.cpp",
"src/Image.cpp",
"src/Vectors.cpp",
"src/gui/Button.cpp",
"src/Utils.cpp",
"src/Robot.cpp",
"src/RobotArmy.cpp",
"src/Extensions.cpp",
"src/Particles2D.cpp",
"src/Matrix.cpp",
"src/FindPath.cpp",
"src/gui/MenuStruct.cpp",
"src/gui/SelectMenu.cpp",
"src/gui/YesNoDialog.cpp",
"src/CppSingleton.cpp",
"src/LevelList.cpp",
"src/audio/OggStream.cpp",
"src/audio/SoundSystem.cpp",
"src/gui/Scrollbar.cpp",
"src/externals.cpp",
"src/HighScore.cpp",
"src/Player.cpp",
"src/SysConfig.cpp",
"src/SDLVideo.cpp",
"src/gui/OnScreenBoard.cpp",
"src/Threads.cpp",
"src/VertexObject.cpp"
]
#Windblows
if sys.platform == 'win32':
Tool('mingw')(env)
env.Append(LIBS = ['mingw32','SDLmain', 'SDL', 'OpenGL32',
'openal32', 'vorbisfile', 'ogg'])
else: #Mac OS X
if sys.platform == 'darwin':
env['FRAMEWORKS'] = ['Cocoa', 'SDL', 'OPENGL', 'OpenAL','vorbis', 'Ogg', 'libcurl']
env.Append(LIBS = ['iconv', 'pthread'])
env.Append(CCFLAGS = ['-arch', 'i386'])
env.Object('src/osx/SDLMain.m', OBJPREFIX = OBJ_DIR,
CCFLAGS = ['-arch', 'i386', '-I/Library/Frameworks/SDL.framework/Headers/'])
code.append('obj/SDLMain.o')
env.Append(LINKFLAGS = ['-arch', 'i386'])
else: #Linux
env.Append(LIBS = ['SDL','GL', 'openal', 'vorbisfile',
'ogg', 'pthread', 'libcurl'])
env.Program(target = "BumpyDroids",
source = code
)