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
|
# -*- mode: python -*-
Import("env")
env = env.Clone()
env.Library(
target='write_conflict_exception',
source=[
'write_conflict_exception.cpp'
],
LIBDEPS=[
'$BUILD_DIR/mongo/db/server_parameters'
]
)
env.Library(
target='lock_manager',
source=[
'd_concurrency.cpp',
'lock_manager.cpp',
'lock_state.cpp',
'lock_stats.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/util/background_job',
'$BUILD_DIR/mongo/base',
# Temporary crutch since the ssl cleanup is hard coded in background.cpp
'$BUILD_DIR/mongo/util/net/network',
'$BUILD_DIR/mongo/db/server_parameters',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/mongo/util/concurrency/spin_lock',
'$BUILD_DIR/third_party/shim_boost',
],
)
env.CppUnitTest(
target='lock_manager_test',
source=['d_concurrency_test.cpp',
'deadlock_detection_test.cpp',
'fast_map_noalloc_test.cpp',
'lock_manager_test.cpp',
'lock_state_test.cpp',
'lock_stats_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/util/progress_meter',
'$BUILD_DIR/mongo/db/service_context_noop_init',
'lock_manager',
]
)
|