summaryrefslogtreecommitdiff
path: root/src/mongo/tools/workload_simulation/SConscript
blob: e1549233418c7336b851fc1beae2ec8883fdd952 (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
Import("env")
Import("get_option")

env = env.Clone()

env.SConscript(
    must_exist=1,
    dirs=[
        "throughput_probing",
    ],
    exports=[
        "env",
    ],
)

env.Library(
    target="simulation",
    source=[
        "event_queue.cpp",
        "simulation.cpp",
        "simulator_options.cpp",
        "simulator_options_gen.cpp",
        "simulator_options_init.cpp",
    ],
    LIBDEPS_PRIVATE=[
        "$BUILD_DIR/mongo/db/server_options",
        "$BUILD_DIR/mongo/db/server_options_base",
        "$BUILD_DIR/mongo/db/service_context",
        "$BUILD_DIR/mongo/db/service_context_non_d",
        "$BUILD_DIR/mongo/db/shard_role_api",
        "$BUILD_DIR/mongo/util/options_parser/options_parser_init",
        "$BUILD_DIR/mongo/util/pcre_wrapper",
    ],
)

env.Library(
    target="simulator_main",
    source=[
        "simulator_main.cpp",
    ],
    LIBDEPS=[
        "simulation",
    ],
    LIBDEPS_PRIVATE=[
        "$BUILD_DIR/mongo/base",
    ],
)

env.Library(
    target="workload_characteristics",
    source=[
        "workload_characteristics.cpp",
    ],
    LIBDEPS_PRIVATE=[
        "$BUILD_DIR/mongo/base",
    ],
)

env.CppUnitTest(
    target="tools_workload_characteristics_test",
    source=[
        "workload_characteristics_test.cpp",
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/unittest/unittest",
        "workload_characteristics",
    ],
)