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
|
# -*- mode: python -*-
Import("env")
ftdcEnv = env.Clone()
ftdcEnv.InjectThirdPartyIncludePaths(libraries=['zlib'])
ftdcEnv.Library(
target='ftdc',
source=[
'block_compressor.cpp',
'collector.cpp',
'compressor.cpp',
'controller.cpp',
'decompressor.cpp',
'file_manager.cpp',
'file_reader.cpp',
'file_writer.cpp',
'util.cpp',
'varint.cpp'
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/bson/util/bson_extract',
'$BUILD_DIR/mongo/db/server_options_core',
'$BUILD_DIR/mongo/db/service_context',
'$BUILD_DIR/third_party/s2/s2', # For VarInt
'$BUILD_DIR/third_party/shim_zlib',
],
)
platform_libs = []
if env.TargetOSIs('linux'):
platform_libs = [
'$BUILD_DIR/mongo/util/procparser'
]
elif env.TargetOSIs('windows'):
platform_libs = [
'$BUILD_DIR/mongo/util/perfctr_collect'
]
env.Library(
target='ftdc_mongod',
source=[
'ftdc_commands.cpp',
'ftdc_mongod.cpp',
'ftdc_system_stats.cpp',
'ftdc_system_stats_${TARGET_OS}.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/commands',
'$BUILD_DIR/mongo/db/repl/repl_coordinator_global',
'$BUILD_DIR/mongo/db/server_parameters',
'$BUILD_DIR/mongo/db/storage/storage_options',
'$BUILD_DIR/mongo/util/processinfo',
'ftdc'
] + platform_libs,
)
env.CppUnitTest(
target='ftdc_test',
source=[
'compressor_test.cpp',
'controller_test.cpp',
'file_manager_test.cpp',
'file_writer_test.cpp',
'ftdc_test.cpp',
'util_test.cpp',
'varint_test.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/util/clock_source_mock',
'ftdc',
],
)
|