-
Notifications
You must be signed in to change notification settings - Fork 16
/
SConstruct
62 lines (55 loc) · 1.03 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
env = Environment(CXX='clang++')
env.Append(CPPPATH=[
'src/ext',
'src',
'lib/include/LuaBridge',
'lib/include/lua',
'lib/include/stb',
'lib/include/stdex',
'lib/include'
])
IsDebug = ARGUMENTS.get('release', 0)
DisableMP3 = ARGUMENTS.get('nomp3', 0)
env.Append(CPPDEFINES=['LINUX'], CXXFLAGS="-std=c++14")
if int(IsDebug):
env.Append(CCFLAGS=["-g"])
else:
env.Append(CCFLAGS=["-O2", "-DNDEBUG", "-fpermissive"])
if not int(DisableMP3):
env.Append(CPPDEFINES=['MP3_ENABLED']) #another possible macro is NO_AUDIO but.. really now.
env.Append(LIBS=['mpg123'])
import sys
env.Program("dc", source=[
Glob('src/*.cpp'),
Glob('src/ext/*.c'),
Glob('src/ext/*.cpp')
])
env.Append(LIBS=[
'avcodec',
'avformat',
'avutil',
'boost_filesystem',
'boost_program_options',
'boost_system',
'GL',
'GLEW',
'glfw',
'jpeg',
'lua5.2',
'ogg',
'png',
'portaudio',
'pthread',
'RocketControls',
'RocketControlsLua',
'RocketCore',
'RocketCoreLua',
'rt',
'sndfile',
'soxr',
'sqlite3',
'stdc++fs',
'swscale',
'vorbis',
'vorbisfile'
]);