Update TARGETS and related scripts (#9310)

Summary:
As title. Remove 'unexported_deps_by_default', replace 'deps' and
'external_deps' with 'exported_deps' and 'exported_external_deps'
respectively.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/9310

Test Plan: Github action and internal jobs.

Reviewed By: DrMarcII

Differential Revision: D33190092

Pulled By: riversand963

fbshipit-source-id: 64200e5331d822f88f8d122a55b7a29bfd1f9553
main
Yanqin Jin 3 years ago committed by Facebook GitHub Bot
parent 423538a816
commit 6b5e28a43c
  1. 35
      TARGETS
  2. 10
      buckifier/targets_cfg.py

@ -464,9 +464,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = [],
deps = [], exported_external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
) )
cpp_library( cpp_library(
@ -795,9 +794,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = [],
deps = [], exported_external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
) )
cpp_library( cpp_library(
@ -820,9 +818,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = [":rocksdb_lib"],
deps = [":rocksdb_lib"], exported_external_deps = ROCKSDB_EXTERNAL_DEPS + [
external_deps = ROCKSDB_EXTERNAL_DEPS + [
("googletest", None, "gtest"), ("googletest", None, "gtest"),
], ],
) )
@ -844,9 +841,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = [":rocksdb_lib"],
deps = [":rocksdb_lib"], exported_external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
) )
cpp_library( cpp_library(
@ -860,9 +856,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = [":rocksdb_lib"],
deps = [":rocksdb_lib"], exported_external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
) )
cpp_library( cpp_library(
@ -892,9 +887,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = ROCKSDB_LIB_DEPS,
deps = ROCKSDB_LIB_DEPS, exported_external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
) )
cpp_binary( cpp_binary(
@ -928,9 +922,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = [":rocksdb_test_lib"],
deps = [":rocksdb_test_lib"], exported_external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
) )
# [test_name, test_src, test_type, extra_deps, extra_compiler_flags] # [test_name, test_src, test_type, extra_deps, extra_compiler_flags]

@ -159,9 +159,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = [{deps}],
deps = [{deps}], exported_external_deps = ROCKSDB_EXTERNAL_DEPS{extra_external_deps},
external_deps = ROCKSDB_EXTERNAL_DEPS{extra_external_deps},
) )
""" """
@ -176,9 +175,8 @@ cpp_library(
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,
unexported_deps_by_default = False, exported_deps = ROCKSDB_LIB_DEPS,
deps = ROCKSDB_LIB_DEPS, exported_external_deps = ROCKSDB_EXTERNAL_DEPS,
external_deps = ROCKSDB_EXTERNAL_DEPS,
) )
""" """

Loading…
Cancel
Save