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
|
# -*- mode: python -*-
Import("env")
env.Library(
target='write_conflict_exception',
source=[
'write_conflict_exception.cpp'
],
LIBDEPS=[
'$BUILD_DIR/mongo/server_parameters'
]
)
env.Library(
target='lock_manager',
source=[
'd_concurrency.cpp',
'lock_manager.cpp',
'lock_state.cpp',
'lock_stats.cpp',
],
LIBDEPS=[
"$BUILD_DIR/mongo/server_parameters",
'$BUILD_DIR/mongo/base/base',
'$BUILD_DIR/mongo/foundation',
'$BUILD_DIR/mongo/service_context',
'$BUILD_DIR/mongo/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=[
'lock_manager'
]
)
|