# -*- mode: python; -*- Import("env") env = env.Clone() env.Library( target='kv_prefix', source=['kv_prefix.cpp'], LIBDEPS=[ '$BUILD_DIR/mongo/db/storage/storage_options', ], ) # Should not be referenced outside this SConscript file. env.Library( target='kv_engine_core', source=[ 'kv_catalog.cpp', 'kv_collection_catalog_entry.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/bson/util/bson_extract', '$BUILD_DIR/mongo/db/concurrency/lock_manager', '$BUILD_DIR/mongo/db/index/index_descriptor', '$BUILD_DIR/mongo/db/index_names', '$BUILD_DIR/mongo/db/namespace_string', '$BUILD_DIR/mongo/db/storage/bson_collection_catalog_entry', '$BUILD_DIR/mongo/db/catalog/uuid_catalog', 'kv_prefix', ], ) # Should not be referenced outside this SConscript file. env.Library( target='kv_database_catalog_entry_core', source=['kv_database_catalog_entry_base.cpp'], LIBDEPS=[ '$BUILD_DIR/mongo/base', '$BUILD_DIR/mongo/db/storage/bson_collection_catalog_entry', '$BUILD_DIR/mongo/db/storage/kv/kv_engine_core', ], ) # Should not be referenced outside this SConscript file. env.Library( target='kv_storage_engine', source=['kv_storage_engine.cpp'], LIBDEPS=[ '$BUILD_DIR/mongo/base', '$BUILD_DIR/mongo/db/catalog/catalog_impl', '$BUILD_DIR/mongo/db/storage/kv/kv_engine_core', '$BUILD_DIR/mongo/db/storage/storage_options', 'kv_database_catalog_entry_core', ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/db/logical_clock', '$BUILD_DIR/mongo/db/storage/storage_repair_observer', ], ) env.Library( target='kv_engine', source=[ 'kv_database_catalog_entry.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/db/index/index_access_methods', 'kv_database_catalog_entry_core', 'kv_engine_core', 'kv_storage_engine', ], ) # Stubs out KVDatabaseCatalogEntry::getIndex() for testing. # Should not be referenced outside this SConscript file. env.Library( target='kv_engine_mock', source=[ 'kv_database_catalog_entry_mock.cpp' ], LIBDEPS=[ '$BUILD_DIR/mongo/db/s/sharding_runtime_d', '$BUILD_DIR/mongo/db/storage/storage_options', 'kv_database_catalog_entry_core', 'kv_engine_core', 'kv_storage_engine', ] ) env.Library( target='kv_engine_test_harness', source=[ 'kv_catalog_feature_tracker_test.cpp', 'kv_engine_test_harness.cpp', 'kv_engine_test_timestamps.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/db/service_context', '$BUILD_DIR/mongo/db/service_context_test_fixture', '$BUILD_DIR/mongo/db/storage/storage_options', '$BUILD_DIR/mongo/unittest/unittest', '$BUILD_DIR/mongo/util/clock_source_mock', 'kv_engine_mock', 'kv_prefix', ], ) env.CppUnitTest( target='kv_database_catalog_entry_test', source=[ 'kv_database_catalog_entry_test.cpp', ], LIBDEPS=[ 'kv_engine_mock', '$BUILD_DIR/mongo/db/catalog/collection_options', '$BUILD_DIR/mongo/db/namespace_string', '$BUILD_DIR/mongo/db/service_context_test_fixture', '$BUILD_DIR/mongo/db/storage/devnull/storage_devnull_core', '$BUILD_DIR/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store', ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/db/auth/authmocks' ], ) env.CppUnitTest( target='kv_collection_catalog_entry_test', source=[ 'kv_collection_catalog_entry_test.cpp', ], LIBDEPS=[ 'kv_engine_mock', '$BUILD_DIR/mongo/db/catalog/collection_options', '$BUILD_DIR/mongo/db/namespace_string', '$BUILD_DIR/mongo/db/service_context_test_fixture', '$BUILD_DIR/mongo/db/storage/devnull/storage_devnull_core', '$BUILD_DIR/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store', ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/db/auth/authmocks' ], ) env.CppUnitTest( target='kv_storage_engine_test', source=[ 'kv_storage_engine_test.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/db/auth/authmocks', '$BUILD_DIR/mongo/db/catalog/collection_options', '$BUILD_DIR/mongo/db/namespace_string', '$BUILD_DIR/mongo/db/repair_database', '$BUILD_DIR/mongo/db/repl/replmocks', '$BUILD_DIR/mongo/db/serveronly', '$BUILD_DIR/mongo/db/service_context_d_test_fixture', '$BUILD_DIR/mongo/db/storage/ephemeral_for_test/storage_ephemeral_for_test_core', '$BUILD_DIR/mongo/db/storage/storage_repair_observer', 'kv_engine', 'kv_engine_mock', ], )