forked from mongodb-partners/mongo-rocks
-
Notifications
You must be signed in to change notification settings - Fork 8
/
SConscript
111 lines (100 loc) · 3.11 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Import("env")
env = env.Clone()
env.Library(
target= 'storage_rocks_global_options',
source= [
'src/rocks_global_options.cpp',
],
)
env.Library(
target= 'storage_rocks_base',
source= [
'src/rocks_compaction_scheduler.cpp',
'src/rocks_counter_manager.cpp',
'src/rocks_engine.cpp',
'src/rocks_record_store.cpp',
'src/rocks_recovery_unit.cpp',
'src/rocks_index.cpp',
'src/rocks_durability_manager.cpp',
'src/rocks_transaction.cpp',
'src/rocks_snapshot_manager.cpp',
'src/rocks_util.cpp',
],
LIBDEPS= [
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/namespace_string',
'$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/storage/bson_collection_catalog_entry',
'$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/oplog_hack',
'$BUILD_DIR/mongo/util/background_job',
'$BUILD_DIR/mongo/util/concurrency/ticketholder',
'$BUILD_DIR/mongo/util/processinfo',
'$BUILD_DIR/third_party/shim_snappy',
'$BUILD_DIR/third_party/shim_lz4',
'storage_rocks_global_options',
],
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',
'src/rocks_stats_parser.cpp',
],
LIBDEPS= [
'storage_rocks_base',
'$BUILD_DIR/mongo/db/storage/kv/kv_engine'
],
LIBDEPS_DEPENDENTS=['$BUILD_DIR/mongo/db/serveronly']
)
env.Library(
target= 'storage_rocks_mock',
source= [
'src/rocks_record_store_mock.cpp',
],
LIBDEPS= [
'storage_rocks_base',
# Temporary crutch since the ssl cleanup is hard coded in background.cpp
'$BUILD_DIR/mongo/util/net/network',
]
)
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',
'$BUILD_DIR/mongo/db/storage/storage_options'
]
)