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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# -*- mode: python; -*-
Import("env")
env = env.Clone()
env.Library(
target='benchrun',
source=[
'bench.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/client/clientdriver_network',
'$BUILD_DIR/mongo/db/logical_session_id',
'$BUILD_DIR/mongo/scripting/bson_template_evaluator',
]
)
generateJSErrorCodes = env.Command(
target=['error_codes.js'],
source=[
'$BUILD_DIR/mongo/base/generate_error_codes.py',
'$BUILD_DIR/mongo/base/error_codes.err',
'error_codes.tpl.js',
],
action=['$PYTHON ${SOURCES[0]} ${SOURCES[1]} ${SOURCES[2]}=${TARGETS[0]}'])
env.Alias('generated-sources', generateJSErrorCodes)
# Files added here need to be added in scripting/engine.cpp and buildscripts/vcxproj.header as well.
js_header = env.JSHeader(
target="mongo.cpp",
source=[
"assert.js",
"bulk_api.js",
"collection.js",
"crud_api.js",
"db.js",
"error_codes.js",
"explainable.js",
"explain_query.js",
"mongo.js",
"mr.js",
"query.js",
"session.js",
"types.js",
"utils_auth.js",
"utils.js",
"utils_sh.js",
]
)
env.Alias('generated-sources', js_header)
# Files added here need to be added in shell/shell_utils.cpp and buildscripts/vcxproj.header as
# well.
env.JSHeader(
target="mongo-server.cpp",
source=[
"servers.js",
"shardingtest.js",
"servers_misc.js",
"replsettest.js",
"bridge.js"
],
)
env.Alias('generated-sources', "mongo-server.cpp")
env.Library(
target='mongojs',
source=[
'mongo.cpp',
],
LIBDEPS=[
"$BUILD_DIR/mongo/base",
],
)
env.CppUnitTest(
target='shell_options_test',
source=[
"shell_options_test.cpp",
],
LIBDEPS=[
"$BUILD_DIR/mongo/shell_core",
],
)
|