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
|
# -*- 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/service_context',
'$BUILD_DIR/third_party/s2/s2', # For VarInt
'$BUILD_DIR/third_party/shim_zlib',
],
LIBDEPS_TAGS=[
# Needs 'mongo::Validator<mongo::BSONObj>::validateLoad(char const*, unsigned long)'
'incomplete',
],
)
env.Library(
target='ftdc_mongod',
source=[
'ftdc_mongod.cpp',
],
LIBDEPS=[
'$BUILD_DIR/mongo/base',
'$BUILD_DIR/mongo/db/server_parameters',
'ftdc'
],
LIBDEPS_TAGS=[
# Needs 'mongo::storageGlobalParams' in storage_options.cpp which is in serveronly
# And this library is already part of serveronly
'incomplete',
],
)
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=[
'ftdc',
],
)
|