|
|
@ -31,7 +31,11 @@ ROCKSDB_EXTERNAL_DEPS = [ |
|
|
|
ROCKSDB_OS_DEPS_0 = [ |
|
|
|
ROCKSDB_OS_DEPS_0 = [ |
|
|
|
( |
|
|
|
( |
|
|
|
"linux", |
|
|
|
"linux", |
|
|
|
["third-party//numa:numa", "third-party//liburing:uring", "third-party//tbb:tbb"], |
|
|
|
[ |
|
|
|
|
|
|
|
"third-party//numa:numa", |
|
|
|
|
|
|
|
"third-party//liburing:uring", |
|
|
|
|
|
|
|
"third-party//tbb:tbb", |
|
|
|
|
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
( |
|
|
|
( |
|
|
|
"macos", |
|
|
|
"macos", |
|
|
@ -69,7 +73,13 @@ ROCKSDB_OS_PREPROCESSOR_FLAGS_0 = [ |
|
|
|
), |
|
|
|
), |
|
|
|
( |
|
|
|
( |
|
|
|
"windows", |
|
|
|
"windows", |
|
|
|
[ "-DOS_WIN", "-DWIN32", "-D_MBCS", "-DWIN64", "-DNOMINMAX" ] |
|
|
|
[ |
|
|
|
|
|
|
|
"-DOS_WIN", |
|
|
|
|
|
|
|
"-DWIN32", |
|
|
|
|
|
|
|
"-D_MBCS", |
|
|
|
|
|
|
|
"-DWIN64", |
|
|
|
|
|
|
|
"-DNOMINMAX", |
|
|
|
|
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
@ -445,13 +455,14 @@ cpp_library( |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
link_whole = False, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
unexported_deps_by_default = False, |
|
|
|
deps = [], |
|
|
|
deps = [], |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
link_whole = False, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
cpp_library( |
|
|
|
cpp_library( |
|
|
@ -771,13 +782,14 @@ cpp_library( |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
link_whole = True, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
unexported_deps_by_default = False, |
|
|
|
deps = [], |
|
|
|
deps = [], |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
link_whole = True, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
cpp_library( |
|
|
|
cpp_library( |
|
|
@ -795,15 +807,16 @@ cpp_library( |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
link_whole = False, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
unexported_deps_by_default = False, |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS + [ |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS + [ |
|
|
|
("googletest", None, "gtest"), |
|
|
|
("googletest", None, "gtest"), |
|
|
|
], |
|
|
|
], |
|
|
|
link_whole = False, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
cpp_library( |
|
|
|
cpp_library( |
|
|
@ -818,13 +831,14 @@ cpp_library( |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
link_whole = False, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
unexported_deps_by_default = False, |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
link_whole = False, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
cpp_library( |
|
|
|
cpp_library( |
|
|
@ -833,13 +847,14 @@ cpp_library( |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
link_whole = False, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
unexported_deps_by_default = False, |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
deps = [":rocksdb_lib"], |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
link_whole = False, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
cpp_library( |
|
|
|
cpp_library( |
|
|
@ -863,10 +878,11 @@ cpp_library( |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
unexported_deps_by_default = False, |
|
|
|
deps = ROCKSDB_LIB_DEPS, |
|
|
|
deps = ROCKSDB_LIB_DEPS, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
) |
|
|
|
) |
|
|
@ -875,10 +891,10 @@ cpp_binary( |
|
|
|
name = "c_test_bin", |
|
|
|
name = "c_test_bin", |
|
|
|
srcs = ["db/c_test.c"], |
|
|
|
srcs = ["db/c_test.c"], |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
|
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
|
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
) if not is_opt_mode else None |
|
|
|
) if not is_opt_mode else None |
|
|
|
|
|
|
|
|
|
|
@ -897,13 +913,14 @@ cpp_library( |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
auto_headers = AutoHeaders.RECURSIVE_GLOB, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
link_whole = False, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_deps = ROCKSDB_OS_DEPS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
unexported_deps_by_default = False, |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
deps = [":rocksdb_test_lib"], |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS, |
|
|
|
link_whole = False, |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
# [test_name, test_src, test_type, extra_deps, extra_compiler_flags] |
|
|
|
# [test_name, test_src, test_type, extra_deps, extra_compiler_flags] |
|
|
@ -2220,10 +2237,10 @@ ROCKS_TESTS = [ |
|
|
|
name = test_name, |
|
|
|
name = test_name, |
|
|
|
srcs = [test_cc], |
|
|
|
srcs = [test_cc], |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
arch_preprocessor_flags = ROCKSDB_ARCH_PREPROCESSOR_FLAGS, |
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
|
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS + extra_compiler_flags, |
|
|
|
compiler_flags = ROCKSDB_COMPILER_FLAGS + extra_compiler_flags, |
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
|
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
include_paths = ROCKSDB_INCLUDE_PATHS, |
|
|
|
|
|
|
|
os_preprocessor_flags = ROCKSDB_OS_PREPROCESSOR_FLAGS, |
|
|
|
|
|
|
|
preprocessor_flags = ROCKSDB_PREPROCESSOR_FLAGS, |
|
|
|
deps = [":rocksdb_test_lib"] + extra_deps, |
|
|
|
deps = [":rocksdb_test_lib"] + extra_deps, |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS + [ |
|
|
|
external_deps = ROCKSDB_EXTERNAL_DEPS + [ |
|
|
|
("googletest", None, "gtest"), |
|
|
|
("googletest", None, "gtest"), |
|
|
|