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
|
Import("env")
Import("mobile_se")
env = env.Clone()
env.InjectThirdPartyIncludePaths(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',
],
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/kv/kv_prefix',
'$BUILD_DIR/mongo/db/storage/oplog_hack',
'$BUILD_DIR/third_party/shim_sqlite',
]
)
serveronlyProgDepsDependents = []
if mobile_se:
serveronlyProgDepsDependents = [
'$BUILD_DIR/mongo/mongod',
'$BUILD_DIR/mongo/dbtests/dbtest',
]
env.Library(
target='storage_mobile',
source=[
'mobile_init.cpp',
],
PROGDEPS_DEPENDENTS=serveronlyProgDepsDependents,
LIBDEPS=[
'storage_mobile_core',
'$BUILD_DIR/mongo/db/storage/kv/kv_engine'
],
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_record_store_test',
source=[
'mobile_record_store_test.cpp'
],
LIBDEPS=[
'storage_mobile_core',
'$BUILD_DIR/mongo/db/storage/record_store_test_harness',
'$BUILD_DIR/mongo/db/concurrency/write_conflict_exception',
]
)
env.CppUnitTest(
target='storage_mobile_kv_engine_test',
source=[
'mobile_kv_engine_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/storage/kv/kv_engine_test_harness',
'$BUILD_DIR/mongo/db/storage/storage_options',
'storage_mobile_core',
],
LIBDEPS_PRIVATE=[
'$BUILD_DIR/mongo/db/auth/authmocks',
],
)
|