diff options
author | Andrew Morrow <acm@mongodb.com> | 2017-06-03 15:38:18 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2017-06-05 13:08:44 -0400 |
commit | afa4f0334edc8e88b33ca52a56cc6bb1f109b953 (patch) | |
tree | c2d0999b64be415063968069673ed1f77a9a1a47 | |
parent | 7d5b5cd998df4a8532748c2a59fce06c305122d8 (diff) | |
download | mongo-afa4f0334edc8e88b33ca52a56cc6bb1f109b953.tar.gz |
SERVER-29441 Clean up declaration of the cpuprofiler library
-rw-r--r-- | src/mongo/SConscript | 69 | ||||
-rw-r--r-- | src/mongo/db/commands/SConscript | 9 |
2 files changed, 38 insertions, 40 deletions
diff --git a/src/mongo/SConscript b/src/mongo/SConscript index 64063b74fc6..803080e4ab6 100644 --- a/src/mongo/SConscript +++ b/src/mongo/SConscript @@ -274,42 +274,6 @@ generateConfigHeaderFile = env.Substfile( ) env.Alias('generated-sources', generateConfigHeaderFile) -mongodLibDeps = [ - 'db/assemble_response', - 'db/commands/core', - 'db/conn_pool_options', - 'db/catalog/catalog', - 'db/clientcursor', - 'db/dbdirectclient', - 'db/ftdc/ftdc_mongod', - 'db/index_d', - 'db/initialize_snmp', - 'db/mongod_options', - 'db/mongodandmongos', - 'db/op_observer_d', - 'db/repl/repl_set_commands', - 'db/repair_database', - 'db/repl/storage_interface_impl', - 'db/repl/topology_coordinator_impl', - 'db/s/balancer', - 'db/serveronly', - 'db/service_context_d', - 'db/startup_warnings_mongod', - 'db/ttl_d', - 'executor/network_interface_factory', - 'rpc/rpc', - 's/commands/shared_cluster_commands', - 'transport/service_entry_point_utils', - 'transport/transport_layer_legacy', - 'util/clock_sources', - 'util/fail_point', - 'util/ntservice', - 'util/version_impl', -] - -if has_option('use-cpu-profiler'): - mongodLibDeps.append('db/commands/cpuprofiler') - mongod = env.Program( target="mongod", source=[ @@ -317,7 +281,38 @@ mongod = env.Program( "db/mongod_options_init.cpp", "db/service_entry_point_mongod.cpp", ] + env.WindowsResourceFile("db/db.rc"), - LIBDEPS=mongodLibDeps, + LIBDEPS=[ + 'db/assemble_response', + 'db/commands/core', + 'db/conn_pool_options', + 'db/catalog/catalog', + 'db/clientcursor', + 'db/dbdirectclient', + 'db/ftdc/ftdc_mongod', + 'db/index_d', + 'db/initialize_snmp', + 'db/mongod_options', + 'db/mongodandmongos', + 'db/op_observer_d', + 'db/repl/repl_set_commands', + 'db/repair_database', + 'db/repl/storage_interface_impl', + 'db/repl/topology_coordinator_impl', + 'db/s/balancer', + 'db/serveronly', + 'db/service_context_d', + 'db/startup_warnings_mongod', + 'db/ttl_d', + 'executor/network_interface_factory', + 'rpc/rpc', + 's/commands/shared_cluster_commands', + 'transport/service_entry_point_utils', + 'transport/transport_layer_legacy', + 'util/clock_sources', + 'util/fail_point', + 'util/ntservice', + 'util/version_impl', + ], ) env.Default(env.Install('#/', mongod)) diff --git a/src/mongo/db/commands/SConscript b/src/mongo/db/commands/SConscript index 68bab8216d7..a48936a12d6 100644 --- a/src/mongo/db/commands/SConscript +++ b/src/mongo/db/commands/SConscript @@ -292,13 +292,16 @@ env.CppUnitTest( if has_option('use-cpu-profiler'): profEnv = env.Clone() profEnv.InjectThirdPartyIncludePaths('gperftools') - profEnv.Library('cpuprofiler', + profEnv.Library( + target='cpuprofiler', source=[ 'cpuprofile.cpp', ], LIBDEPS=[ + '$BUILD_DIR/mongo/db/commands', + '$BUILD_DIR/mongo/db/db_raii', ], - LIBDEPS_TAGS=[ - 'illegal_cyclic_or_unresolved_dependencies_whitelisted', + PROGDEPS_DEPENDENTS=[ + '$BUILD_DIR/mongo/mongod', ], ) |