# -*- mode: python -*-

Import([
    'env',
    'has_option',
])

env = env.Clone()

env.Library(
    target='batch_write_types',
    source=[
        'batched_command_request.cpp', 'batched_command_response.cpp', 'batched_upsert_detail.cpp',
        'bulk_write_command_modifier.cpp'
    ],
    LIBDEPS=[
        '$BUILD_DIR/mongo/base',
        '$BUILD_DIR/mongo/db/commands',
        '$BUILD_DIR/mongo/db/commands/bulk_write_parser',
        '$BUILD_DIR/mongo/db/common',
        '$BUILD_DIR/mongo/db/error_labels',
        '$BUILD_DIR/mongo/db/ops/write_ops_parsers',
        '$BUILD_DIR/mongo/db/query_expressions',
        '$BUILD_DIR/mongo/db/repl/optime',
        '$BUILD_DIR/mongo/db/vector_clock',
        '$BUILD_DIR/mongo/rpc/command_status',
        '$BUILD_DIR/mongo/s/common_s',
    ],
    LIBDEPS_PRIVATE=[
        '$BUILD_DIR/mongo/db/audit_impl' if has_option('audit') else [],
    ],
)
