-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConstruct
31 lines (25 loc) · 898 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
#! /usr/bin/python
import os
import sys
SConscript ("scons_config.py")
Import ("env")
env.Append (CPPPATH = ["#/src"])
SConscript (dirs=['src/', 'src/include/', 'src/base/', 'src/fs/', 'src/tools/'])
SConscript (dirs=['src/client/', 'src/renderer/', 'src/sound/', 'src/image/'])
SConscript (dirs=['src/server/'])
SConscript (dirs=['src/nq/', 'src/qw/'])
Import ("nq_sources")
nq = env.Program (target = "twilight-nq", source = nq_sources)
env.Alias ('nq', 'twilight-nq');
Import ("qw_sources")
qw = env.Program (target = "twilight-qw", source = qw_sources)
env.Alias ('qw', 'twilight-qw');
Import ("qwsv_sources")
qwsv = env.Program (target = "twilight-qwsv", source = qwsv_sources)
env.Alias ('qwsv', 'twilight-qwsv');
if int(env['clients']):
env.Default (nq, qw)
if int(env['servers']):
env.Default (qwsv)
Import ("tools_sources")
env.Program (target = "lhbin2c", source = tools_sources)