summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mobile/SConscript
blob: 4679b558ac557bada45e9487cfa4b9715b3de11e (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
Import("env")
Import("mobile_se")
env = env.Clone()


env.InjectThirdParty(libraries=['sqlite'])

env.Library(
    target='storage_mobile_core',
    source=[
        'mobile_index.cpp',
        'mobile_kv_engine.cpp',
        'mobile_record_store.cpp',
        'mobile_recovery_unit.cpp',
        'mobile_session.cpp',
        'mobile_session_pool.cpp',
        'mobile_sqlite_statement.cpp',
        'mobile_util.cpp',
        'mobile_options.cpp',
        env.Idlc('mobile_options.idl')[0],
        ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/db/catalog/collection_options',
        '$BUILD_DIR/mongo/db/concurrency/lock_manager',
        '$BUILD_DIR/mongo/db/concurrency/write_conflict_exception',
        '$BUILD_DIR/mongo/db/index/index_descriptor',
        '$BUILD_DIR/mongo/db/namespace_string',
        '$BUILD_DIR/mongo/db/repl/repl_coordinator_interface',
        '$BUILD_DIR/mongo/db/storage/index_entry_comparison',
        '$BUILD_DIR/mongo/db/storage/journal_listener',
        '$BUILD_DIR/mongo/db/storage/key_string',
        '$BUILD_DIR/mongo/db/storage/recovery_unit_base',
        '$BUILD_DIR/mongo/db/storage/kv/kv_prefix',
        '$BUILD_DIR/mongo/db/storage/oplog_hack',
        '$BUILD_DIR/third_party/shim_sqlite',
        ],
    LIBDEPS_PRIVATE= [
        '$BUILD_DIR/mongo/util/options_parser/options_parser',
        ],
    )

serveronlyProgDepsDependents = []
if mobile_se:
    serveronlyProgDepsDependents = [
        '$BUILD_DIR/mongo/mongod',
        '$BUILD_DIR/mongo/dbtests/dbtest',
        ]
        
    env.Library(
        target='mobile_options_mongod',
        source=[
            'mobile_options_mongod.cpp',
        ],
        PROGDEPS_DEPENDENTS=serveronlyProgDepsDependents,
        LIBDEPS=[
            '$BUILD_DIR/mongo/util/options_parser/options_parser',
        ],
        LIBDEPS_PRIVATE=[
            'storage_mobile_core',
        ],
    )

env.Library(
    target='storage_mobile',
    source=[
        'mobile_init.cpp',
        ],
    PROGDEPS_DEPENDENTS=serveronlyProgDepsDependents,
    LIBDEPS=[
        'storage_mobile_core',
        '$BUILD_DIR/mongo/db/storage/durable_catalog_impl',
        '$BUILD_DIR/mongo/db/storage/storage_engine_impl',
        ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/storage/storage_engine_common',
    ],
)

'''
env.CppUnitTest(
    target='storage_mobile_index_test',
    source=[
        'mobile_index_test.cpp'
    ],
    LIBDEPS=[
        'storage_mobile_core',
        '$BUILD_DIR/mongo/db/storage/sorted_data_interface_test_harness'
        ]
    )
'''

env.CppUnitTest(
    target='storage_mobile_test',
    source=[
        'mobile_kv_engine_test.cpp',
        'mobile_record_store_test.cpp',
    ],
    LIBDEPS=[
        'storage_mobile_core',
        '$BUILD_DIR/mongo/db/concurrency/write_conflict_exception',
        '$BUILD_DIR/mongo/db/storage/kv/kv_engine_test_harness',
        '$BUILD_DIR/mongo/db/storage/record_store_test_harness',
        '$BUILD_DIR/mongo/db/storage/storage_options',
        '$BUILD_DIR/mongo/util/options_parser/options_parser',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/auth/authmocks',
    ],
)