-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConstruct
43 lines (38 loc) · 921 Bytes
/
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
import os
import platform
# Initialize environment
if platform.system() == 'Linux':
env = Environment()
elif platform.system() == 'Windows':
env = Environment(ENV = os.environ, tools = ['mingw'])
else:
print('Error: Unsupported platform (' + platform.system() + ')')
Exit(1)
env.Append(
BINDIR = '#build/bin',
LIBDIR = '#build/bin',
OBJDIR = '#build/obj',
CPPPATH = [
Glob('include'),
Glob('external/include')
],
CPPFLAGS = [
'-g',
'-std=c++11',
'-Wall',
'-Wextra'
]
)
# Build projects
projects = [
'source/gdl/oal',
'source/gdl/ces',
'source/gdl/ogl',
#'source/gdl/net',
'source/gdl/sys',
'source/gdl/gui'
]
if ARGUMENTS.get('examples', 0):
projects.append('example')
for project in projects:
SConscript(os.path.join(project, 'SConscript'), exports = ['env'])