summaryrefslogtreecommitdiff
path: root/src/mongo/idl/SConscript
blob: 28bcb2724b5ca73a38b650b20afde3ed65efceee (plain)
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
# -*- 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.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_test',
    source=[
        'config_option_test.cpp',
        'idl_test.cpp',
        'server_parameter_specialized_test.cpp',
        'server_parameter_with_storage_test.cpp',
        env.Idlc('config_option_no_init_test.idl')[0],
        env.Idlc('config_option_test.idl')[0],
        env.Idlc('server_parameter_specialized_test.idl')[0],
        env.Idlc('server_parameter_with_storage_test.idl')[0],
        env.Idlc('unittest.idl')[0],
        env.Idlc('unittest_import.idl')[0],
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/db/namespace_string',
        '$BUILD_DIR/mongo/idl/idl_parser',
        '$BUILD_DIR/mongo/util/cmdline_utils/cmdline_utils',
        '$BUILD_DIR/mongo/util/options_parser/options_parser',
        'server_parameter',
    ],
)