forked from Tencent/rapidjson
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
58 lines (40 loc) · 1.76 KB
/
SConscript
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
from building import *
import rtconfig
# get current directory
cwd = GetCurrentDir()
# The set of source files associated with this SConscript file.
src = []
# src += Glob('example/sortkeys/sortkeys.cpp')
# src += Glob('example/schemavalidator/schemavalidator.cpp')
# src += Glob('example/prettyauto/prettyauto.cpp')
# src += Glob('example/pretty/pretty.cpp')
# src += Glob('example/filterkeydom/filterkeydom.cpp')
# src += Glob('example/filterkey/filterkey.cpp')
# src += Glob('example/capitalize/capitalize.cpp')
# src += Glob('example/condense/condense.cpp')
# src += Glob('example/jsonx/jsonx.cpp')
# src += Glob('example/parsebyparts/parsebyparts.cpp')
if GetDepend('RAPIDJSON_USING_SIMPLE_READER'):
src += Glob('example/simplereader/simplereader.cpp')
if GetDepend('RAPIDJSON_USING_SIMPLE_WRITER'):
src += Glob('example/simplewriter/simplewriter.cpp')
if GetDepend('RAPIDJSON_USING_TUTORIAL'):
src += Glob('example/tutorial/tutorial.cpp')
if GetDepend('RAPIDJSON_USING_SIMPLE_PULL_READER'):
src += Glob('example/simplepullreader/simplepullreader.cpp')
if GetDepend('RAPIDJSON_USING_SIMPLE_DOM'):
src += Glob('example/simpledom/simpledom.cpp')
if GetDepend('RAPIDJSON_USING_SERIALIZE'):
src += Glob('example/serialize/serialize.cpp')
if GetDepend('RAPIDJSON_USING_MESSAGE_READER'):
src += Glob('example/messagereader/messagereader.cpp')
if GetDepend('RAPIDJSON_USING_LOOK_AHEAD_PARSER'):
src += Glob('example/lookaheadparser/lookaheadparser.cpp')
if GetDepend('RAPIDJSON_USING_ARCHIVER_TEST'):
src += Glob('example/archiver/archiver.cpp')
src += Glob('example/archiver/archivertest.cpp')
LOCAL_CCFLAGS = ''
path = [cwd]
path += [cwd + '/include']
group = DefineGroup('rapidjson', src, CPPPATH = path, depend = [''], LOCAL_CCFLAGS = LOCAL_CCFLAGS)
Return('group')