summaryrefslogtreecommitdiff
path: root/src/mongo/db/exec/SConscript
blob: fb613333953a7a9a84b1392fac221ee39db475c4 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# -*- mode: python -*-

Import("env")

# WorkingSet target and associated test
env.Library(
    target = "working_set",
    source = [
        "working_set.cpp",
    ],
    LIBDEPS = [
        "$BUILD_DIR/mongo/bson/bson",
    ],
)

env.CppUnitTest(
    target = "working_set_test",
    source = [
        "working_set_test.cpp"
    ],
    LIBDEPS = [
        "working_set",
    ],
)

env.Library(
    target = "scoped_timer",
    source = [
        "scoped_timer.cpp",
    ],
    LIBDEPS = [
    ],
)

env.Library(
    target = 'exec',
    source = [
        "and_hash.cpp",
        "and_sorted.cpp",
        "cached_plan.cpp",
        "collection_scan.cpp",
        "count.cpp",
        "count_scan.cpp",
        "delete.cpp",
        "distinct_scan.cpp",
        "eof.cpp",
        "fetch.cpp",
        "geo_near.cpp",
        "group.cpp",
        "idhack.cpp",
        "index_scan.cpp",
        "keep_mutations.cpp",
        "limit.cpp",
        "merge_sort.cpp",
        "multi_iterator.cpp",
        "multi_plan.cpp",
        "near.cpp",
        "oplogstart.cpp",
        "or.cpp",
        "pipeline_proxy.cpp",
        "projection.cpp",
        "projection_exec.cpp",
        "queued_data_stage.cpp",
        "shard_filter.cpp",
        "skip.cpp",
        "sort.cpp",
        "stagedebug_cmd.cpp",
        "subplan.cpp",
        "text.cpp",
        "update.cpp",
        "working_set_common.cpp",
    ],
    LIBDEPS = [
        "scoped_timer",
        "$BUILD_DIR/mongo/bson/bson",
    ],
)

env.CppUnitTest(
    target = "queued_data_stage_test",
    source = [
        "queued_data_stage_test.cpp",
    ],
    LIBDEPS = [
        "exec",
        "$BUILD_DIR/mongo/db/serveronly",
        "$BUILD_DIR/mongo/db/coredb",
        "$BUILD_DIR/mongo/dbtests/mocklib",
        "$BUILD_DIR/mongo/util/ntservice_mock",
    ],
    NO_CRUTCH = True,
)

env.CppUnitTest(
    target = "sort_test",
    source = [
        "sort_test.cpp",
    ],
    LIBDEPS = [
        "exec",
        "$BUILD_DIR/mongo/db/serveronly",
        "$BUILD_DIR/mongo/db/coredb",
        "$BUILD_DIR/mongo/dbtests/mocklib",
        "$BUILD_DIR/mongo/util/ntservice_mock",
    ],
    NO_CRUTCH = True,
)

env.CppUnitTest(
    target = "projection_exec_test",
    source = [
        "projection_exec_test.cpp",
    ],
    LIBDEPS = [
        "exec",
        "$BUILD_DIR/mongo/db/serveronly",
        "$BUILD_DIR/mongo/db/coredb",
        "$BUILD_DIR/mongo/util/ntservice_mock",
    ],
    NO_CRUTCH = True,
)