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
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
env.Library(
target="idl_parser",
source=[
'idl_parser.cpp'
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/command_generic_argument',
]
)
env.CppUnitTest(
target='idl_test',
source=[
'idl_test.cpp',
env.Idlc('unittest_import.idl')[0],
env.Idlc('unittest.idl')[0],
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/namespace_string',
'$BUILD_DIR/mongo/idl/idl_parser',
],
)
env.Library(
target='server_parameter',
source=[
'server_parameter.cpp',
'server_parameter_with_storage.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/util/options_parser/options_parser',
],
)
env.CppUnitTest(
target='idl_server_parameter_test',
source=[
'server_parameter_with_storage_test.cpp',
env.Idlc('server_parameter_with_storage_test.idl')[0],
'server_parameter_specialized_test.cpp',
env.Idlc('server_parameter_specialized_test.idl')[0],
],
LIBDEPS=[
'server_parameter',
'idl_parser',
],
)
env.CppUnitTest(
target='idl_config_option_test',
source=[
'config_option_test.cpp',
env.Idlc('config_option_no_init_test.idl')[0],
env.Idlc('config_option_test.idl')[0],
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/util/cmdline_utils/cmdline_utils',
'$BUILD_DIR/mongo/util/options_parser/options_parser',
],
)
|