Skip to content

Commit 6547166

Browse files
committed
Add JSON module
1 parent b9997eb commit 6547166

File tree

11 files changed

+5659
-0
lines changed

11 files changed

+5659
-0
lines changed

AMBuildScript

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ builder.RunBuildScripts(
402402
'modules/fun/AMBuilder',
403403
'modules/geoip/AMBuilder',
404404
'modules/hamsandwich/AMBuilder',
405+
'modules/json/AMBuilder',
405406
'modules/mysqlx/AMBuilder',
406407
'modules/ns/AMBuilder',
407408
'modules/nvault/AMBuilder',

modules/json/AMBuilder

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
2+
import os.path
3+
4+
binary = AMXX.MetaModule(builder, 'json')
5+
6+
binary.compiler.defines += [
7+
'HAVE_STDINT_H',
8+
]
9+
10+
binary.compiler.cxxincludes += [
11+
os.path.join(builder.currentSourcePath, '..', '..', 'third_party', 'parson')
12+
]
13+
14+
binary.sources = [
15+
'../../public/sdk/amxxmodule.cpp',
16+
'../../third_party/parson/parson.c',
17+
'JsonMngr.cpp',
18+
'JsonNatives.cpp',
19+
]
20+
21+
if builder.target_platform == 'windows':
22+
binary.sources += ['version.rc']
23+
24+
AMXX.modules += [builder.Add(binary)]

0 commit comments

Comments
 (0)