From 590ffad018ea8a8ed3b8df2111dcbda0710b26f8 Mon Sep 17 00:00:00 2001 From: CodemodService Bot <> Date: Mon, 28 Mar 2022 13:22:38 -0700 Subject: [PATCH] Annotate targets with feature xplat/js/react-native-github/ReactCommon/react/renderer/mapbuffer/BUCK -> xplat/js/tools/metro/packages/metro-runtime/src/polyfills/BUCK Reviewed By: jkeljo Differential Revision: D35178571 fbshipit-source-id: b8b6fcd49459e37152c02db8c7a6cfed167248a9 --- ReactCommon/react/renderer/mapbuffer/BUCK | 2 ++ ReactCommon/react/renderer/mounting/BUCK | 2 ++ ReactCommon/react/renderer/runtimescheduler/BUCK | 2 ++ ReactCommon/react/renderer/scheduler/BUCK | 2 ++ ReactCommon/react/renderer/telemetry/BUCK | 2 ++ ReactCommon/react/renderer/templateprocessor/BUCK | 2 ++ ReactCommon/react/renderer/textlayoutmanager/BUCK | 2 ++ ReactCommon/react/renderer/uimanager/BUCK | 2 ++ ReactCommon/react/utils/BUCK | 2 ++ ReactCommon/reactperflogger/BUCK | 2 ++ ReactCommon/runtimeexecutor/BUCK | 2 ++ packages/assets/BUCK | 2 ++ packages/normalize-color/BUCK | 2 ++ packages/polyfills/BUCK | 2 ++ packages/rn-tester/BUCK | 2 ++ 15 files changed, 30 insertions(+) diff --git a/ReactCommon/react/renderer/mapbuffer/BUCK b/ReactCommon/react/renderer/mapbuffer/BUCK index 8e57a23c757..a7dadedcb33 100644 --- a/ReactCommon/react/renderer/mapbuffer/BUCK +++ b/ReactCommon/react/renderer/mapbuffer/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -31,6 +32,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/react/renderer/mounting/BUCK b/ReactCommon/react/renderer/mounting/BUCK index 365ad353ce4..26e99a062fc 100644 --- a/ReactCommon/react/renderer/mounting/BUCK +++ b/ReactCommon/react/renderer/mounting/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -34,6 +35,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/react/renderer/runtimescheduler/BUCK b/ReactCommon/react/renderer/runtimescheduler/BUCK index 061fa3197f3..b796e24c398 100644 --- a/ReactCommon/react/renderer/runtimescheduler/BUCK +++ b/ReactCommon/react/renderer/runtimescheduler/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -33,6 +34,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/react/renderer/scheduler/BUCK b/ReactCommon/react/renderer/scheduler/BUCK index ee76e263bb1..0b11764f498 100644 --- a/ReactCommon/react/renderer/scheduler/BUCK +++ b/ReactCommon/react/renderer/scheduler/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -32,6 +33,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/react/renderer/telemetry/BUCK b/ReactCommon/react/renderer/telemetry/BUCK index efcd05cadd9..13b80a9cb0c 100644 --- a/ReactCommon/react/renderer/telemetry/BUCK +++ b/ReactCommon/react/renderer/telemetry/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -34,6 +35,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/react/renderer/templateprocessor/BUCK b/ReactCommon/react/renderer/templateprocessor/BUCK index 430b0bdb1d3..8b60bf2bdbd 100644 --- a/ReactCommon/react/renderer/templateprocessor/BUCK +++ b/ReactCommon/react/renderer/templateprocessor/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -33,6 +34,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/react/renderer/textlayoutmanager/BUCK b/ReactCommon/react/renderer/textlayoutmanager/BUCK index 1e7e142f4cb..afd0300fdd6 100644 --- a/ReactCommon/react/renderer/textlayoutmanager/BUCK +++ b/ReactCommon/react/renderer/textlayoutmanager/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -77,6 +78,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, ios_deps = [ ], diff --git a/ReactCommon/react/renderer/uimanager/BUCK b/ReactCommon/react/renderer/uimanager/BUCK index 9633c00bdec..464f952ddec 100644 --- a/ReactCommon/react/renderer/uimanager/BUCK +++ b/ReactCommon/react/renderer/uimanager/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -33,6 +34,7 @@ rn_xplat_cxx_library( ), fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/react/utils/BUCK b/ReactCommon/react/utils/BUCK index 99a0f1eff0b..2f2d71c6fe6 100644 --- a/ReactCommon/react/utils/BUCK +++ b/ReactCommon/react/utils/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -41,6 +42,7 @@ rn_xplat_cxx_library( fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_frameworks = ["Foundation"], fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/ReactCommon/reactperflogger/BUCK b/ReactCommon/reactperflogger/BUCK index d1a06c09571..02d783a8476 100644 --- a/ReactCommon/reactperflogger/BUCK +++ b/ReactCommon/reactperflogger/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "rn_xplat_cxx_library") rn_xplat_cxx_library( @@ -11,6 +12,7 @@ rn_xplat_cxx_library( compiler_flags = [ "-Wno-global-constructors", ], + feature = ReactNative_CommonInfrastructurePlaceholde, labels = ["supermodule:xplat/default/public.react_native.infra"], platforms = (ANDROID, APPLE), preferred_linkage = "static", diff --git a/ReactCommon/runtimeexecutor/BUCK b/ReactCommon/runtimeexecutor/BUCK index b8e04dfaf72..bf068305027 100644 --- a/ReactCommon/runtimeexecutor/BUCK +++ b/ReactCommon/runtimeexecutor/BUCK @@ -1,3 +1,4 @@ +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load( "//tools/build_defs/oss:rn_defs.bzl", "ANDROID", @@ -31,6 +32,7 @@ rn_xplat_cxx_library( fbobjc_compiler_flags = APPLE_COMPILER_FLAGS, fbobjc_frameworks = ["Foundation"], fbobjc_preprocessor_flags = get_preprocessor_flags_for_build_mode() + get_apple_inspector_flags(), + feature = ReactNative_CommonInfrastructurePlaceholde, force_static = True, labels = ["supermodule:xplat/default/public.react_native.infra"], macosx_tests_override = [], diff --git a/packages/assets/BUCK b/packages/assets/BUCK index 424f33a0003..f93250290b8 100644 --- a/packages/assets/BUCK +++ b/packages/assets/BUCK @@ -1,6 +1,7 @@ load("@fbsource//tools/build_defs:js_glob.bzl", "js_glob") load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") load("@fbsource//xplat/js:JS_DEFS.bzl", "rn_library") +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") rn_library( name = "assets", @@ -8,6 +9,7 @@ rn_library( "**/*", "package.json", ]), + feature = ReactNative_CommonInfrastructurePlaceholde, labels = ["supermodule:xplat/default/public.react_native.core"], skip_processors = True, visibility = ["PUBLIC"], diff --git a/packages/normalize-color/BUCK b/packages/normalize-color/BUCK index e99164634de..e0cc64911ff 100644 --- a/packages/normalize-color/BUCK +++ b/packages/normalize-color/BUCK @@ -1,6 +1,7 @@ load("@fbsource//tools/build_defs:js_glob.bzl", "js_glob") load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") load("@fbsource//xplat/js:JS_DEFS.bzl", "rn_library") +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") rn_library( name = "normalize-color", @@ -8,6 +9,7 @@ rn_library( "**/*", "package.json", ]), + feature = ReactNative_CommonInfrastructurePlaceholde, labels = ["supermodule:xplat/default/public.react_native.core"], skip_processors = True, visibility = ["PUBLIC"], diff --git a/packages/polyfills/BUCK b/packages/polyfills/BUCK index a19feef73d5..cc318ea01e4 100644 --- a/packages/polyfills/BUCK +++ b/packages/polyfills/BUCK @@ -1,5 +1,6 @@ load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace") load("@fbsource//xplat/js:JS_DEFS.bzl", "relative_path_to_js_root", "rn_library") +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") yarn_workspace( name = "yarn-workspace", @@ -23,6 +24,7 @@ yarn_workspace( rn_library( name = "polyfills", base_path = relative_path_to_js_root() + "node_modules/@react-native/polyfills/", + feature = ReactNative_CommonInfrastructurePlaceholde, is_polyfill = True, labels = ["supermodule:xplat/default/public.react_native.core"], node_modules_check_enabled = False, diff --git a/packages/rn-tester/BUCK b/packages/rn-tester/BUCK index 6fdf40b6c76..cf230b8521c 100644 --- a/packages/rn-tester/BUCK +++ b/packages/rn-tester/BUCK @@ -1,4 +1,5 @@ load("@fbsource//xplat/hermes/defs:hermes.bzl", "HERMES_BYTECODE_VERSION") +load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde") load("//tools/build_defs:fb_native_wrapper.bzl", "fb_native") load("//tools/build_defs:fb_xplat_platform_specific_rule.bzl", "fb_xplat_platform_specific_rule") load("//tools/build_defs:fb_xplat_resource.bzl", "fb_xplat_resource") @@ -61,6 +62,7 @@ rn_library( ], ), codegen_components = True, + feature = ReactNative_CommonInfrastructurePlaceholde, labels = ["supermodule:xplat/default/public.react_native.playground"], native_component_spec_name = "MyNativeViewSpec", skip_processors = True,