summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/SConscript
blob: 204ea5bb060a54aa067e19f1ebf37c20e214b431 (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
# -*- mode: python -*-

Import("env")

env.StaticLibrary(
    target='query_planner',
    source=[
        "canonical_query.cpp",
        "index_bounds_builder.cpp",
        "index_tag.cpp",
        "plan_enumerator.cpp",
        "projection_parser.cpp",
        "qlog.cpp",
        "query_planner.cpp",
        "query_solution.cpp",
    ],
    LIBDEPS=[
        "index_bounds",
        "lite_parsed_query",
        "$BUILD_DIR/mongo/bson",
        "$BUILD_DIR/mongo/mongohasher",
        "$BUILD_DIR/mongo/expressions",
        "$BUILD_DIR/mongo/expressions_geo",
        "$BUILD_DIR/mongo/server_parameters",
    ],
)

env.StaticLibrary(
    target='query',
    source=[
        "cached_plan_runner.cpp",
        "eof_runner.cpp",
        "explain_plan.cpp",
        "internal_runner.cpp",
        "multi_plan_runner.cpp",
        "new_find.cpp",
        "plan_executor.cpp",
        "plan_ranker.cpp",
        "single_solution_runner.cpp",
        "stage_builder.cpp",
        "type_explain.cpp",
    ],
    LIBDEPS=[
        "query_planner",
        "$BUILD_DIR/mongo/db/exec/exec"
    ],
)

env.StaticLibrary(
    target="index_bounds",
    source=[
        "index_bounds.cpp",
        "interval.cpp",
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/bson",
    ],
)

env.StaticLibrary(
    target="lite_parsed_query",
    source=[
        "lite_parsed_query.cpp"
    ],
    LIBDEPS=[
        "$BUILD_DIR/mongo/bson",
    ],
)

env.CppUnitTest(
    target="index_bounds_test",
    source=[
        "index_bounds_test.cpp"
    ],
    LIBDEPS=[
        "index_bounds",
    ],
)

env.CppUnitTest(
    target="interval_test",
    source=[
        "interval_test.cpp"
    ],
    LIBDEPS=[
        "index_bounds",
    ],
)

env.CppUnitTest(
    target="query_planner_test",
    source=[
        "query_planner_test.cpp"
    ],
    LIBDEPS=[
        "query_planner",
    ],
)