forked from mongodb-partners/mongo-rocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SConscript
89 lines (80 loc) · 2.33 KB
/
SConscript
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
Import("env")
env.Library(
target= 'storage_rocks_base',
source= [
'src/rocks_global_options.cpp',
'src/rocks_engine.cpp',
'src/rocks_record_store.cpp',
'src/rocks_recovery_unit.cpp',
'src/rocks_index.cpp',
'src/rocks_transaction.cpp',
'src/rocks_util.cpp',
],
LIBDEPS= [
'$BUILD_DIR/mongo/bson',
'$BUILD_DIR/mongo/db/catalog/collection_options',
'$BUILD_DIR/mongo/db/concurrency/write_conflict_exception',
'$BUILD_DIR/mongo/db/index/index_descriptor',
'$BUILD_DIR/mongo/db/storage/bson_collection_catalog_entry',
'$BUILD_DIR/mongo/db/storage/index_entry_comparison',
'$BUILD_DIR/mongo/db/storage/key_string',
'$BUILD_DIR/mongo/db/storage/oplog_hack',
'$BUILD_DIR/mongo/foundation',
'$BUILD_DIR/mongo/processinfo',
'$BUILD_DIR/third_party/shim_snappy',
],
SYSLIBDEPS=["rocksdb",
"z",
"bz2"] #z and bz2 are dependencies for rocks
)
env.Library(
target= 'storage_rocks',
source= [
'src/rocks_init.cpp',
'src/rocks_options_init.cpp',
'src/rocks_parameters.cpp',
'src/rocks_record_store_mongod.cpp',
'src/rocks_server_status.cpp',
],
LIBDEPS= [
'storage_rocks_base',
'$BUILD_DIR/mongo/db/storage/kv/kv_engine'
],
LIBDEPS_DEPENDENTS=['$BUILD_DIR/mongo/${LIBPREFIX}serveronly${LIBSUFFIX}']
)
env.Library(
target= 'storage_rocks_mock',
source= [
'src/rocks_record_store_mock.cpp',
],
LIBDEPS= [
'storage_rocks_base',
]
)
env.CppUnitTest(
target='storage_rocks_index_test',
source=['src/rocks_index_test.cpp'
],
LIBDEPS=[
'storage_rocks_mock',
'$BUILD_DIR/mongo/db/storage/sorted_data_interface_test_harness'
]
)
env.CppUnitTest(
target='storage_rocks_record_store_test',
source=['src/rocks_record_store_test.cpp'
],
LIBDEPS=[
'storage_rocks_mock',
'$BUILD_DIR/mongo/db/storage/record_store_test_harness'
]
)
env.CppUnitTest(
target='storage_rocks_engine_test',
source=['src/rocks_engine_test.cpp'
],
LIBDEPS=[
'storage_rocks_mock',
'$BUILD_DIR/mongo/db/storage/kv/kv_engine_test_harness'
]
)