-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
executable file
·67 lines (57 loc) · 1.34 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
66
67
import os
env = Environment(ENV = {'PATH' : os.environ['PATH']})
importPath = []
libPath = []
libs = []
source = [
# 'windows.def',
'main.d',
'Log.d',
'Graphics.d',
'Game.d',
'Scene.d',
'Vector.d',
'MainMenu.d',
'Misc.d',
'ImageResource.d',
'Image.d',
'Layer.d',
'Entity.d',
'SofuResource.d',
'Brick.d',
'GameScene.d',
'Button.d',
'Lemming.d',
'Actor.d',
'BrickLayer.d',
'EnemyLayer.d',
'BulletLayer.d',
'Animation.d',
'EditScene.d',
'Sprite.d',
'BrickObject.d',
'Music.d',
'IntroScene.d',
'Player.d',
'OutroScene.d'
]
flags = ''
if env['PLATFORM'] == 'win32' or env['PLATFORM'] == 'cygwin':
importPath.append('c:/dmd/src/phobos')
importPath.append('c:/dmd/src/derelict')
importPath.append('c:/dmd/src/Sofud')
flags += '-L c:/dmd/lib/derelictSDL.lib -L c:/dmd/lib/sofu.lib -g'
env['OBJSUFFIX']='.obj'
elif env['PLATFORM'] == 'posix':
importPath.append('/opt/dmd/src/phobos')
importPath.append('/opt/dmd/src/derelict')
libPath.append('/opt/dmd/lib')
libs = ['derelictSDL']
env.Program(
target = "aufsie",
source = source,
DPATH = importPath,
LIBPATH = libPath,
LIBS = libs,
DFLAGS = flags
)