summaryrefslogtreecommitdiff
path: root/src/mongo/bson/SConscript
blob: d4156225e85e9785fabd991a1a55c2e1f858c60d (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# -*- mode: python; -*-

Import('env')

env = env.Clone()

env.SConscript(
    dirs=[
        'mutable',
        'util',
    ],
    exports=[
        'env',
    ],
)

env.CppUnitTest(
    target='bson_test',
    source=[
        'bson_field_test.cpp',
        'bson_obj_data_type_test.cpp',
        'bson_obj_test.cpp',
        'bson_validate_test.cpp',
        'bsonelement_test.cpp',
        'bsonobjbuilder_test.cpp',
        'oid_test.cpp',
        'simple_bsonobj_comparator_test.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
    ],
)

env.Benchmark(
    target='bson_bm',
    source=[
        'bson_bm.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
    ],
)

env.CppLibfuzzerTest(
    target='bson_validate_fuzzer',
    source=[
        'bson_validate_fuzzer.cpp',
        'bson_validate_old.cpp',
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
    ],
)

asioEnv = env.Clone()
asioEnv.InjectThirdParty('asio')

asioEnv.CppIntegrationTest(
    target='bson_integration_test',
    source=[
        'ugly_bson_integration_test.cpp'
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/executor/network_interface',
        '$BUILD_DIR/mongo/executor/network_interface_fixture',
        '$BUILD_DIR/mongo/rpc/message',
        '$BUILD_DIR/mongo/transport/transport_layer_egress_init',
    ],
)