Skip to content

Commit

Permalink
Annotate targets with feature xplat/js/react-native-github/Libraries/…
Browse files Browse the repository at this point in the history
…RCTRequired/BUCK -> xplat/js/react-native-github/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK

Reviewed By: jkeljo

Differential Revision: D35178374

fbshipit-source-id: be4ad27928a1b9260a9d6321c9705b30aebe04d6
  • Loading branch information
CodemodService Bot authored and facebook-github-bot committed Mar 28, 2022
1 parent 64b7ac5 commit b6e72c5
Show file tree
Hide file tree
Showing 17 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/RCTRequired/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "fb_apple_library")

fb_apple_library(
Expand All @@ -9,6 +10,7 @@ fb_apple_library(
complete_nullability = True,
contacts = ["[email protected]"],
extension_api_only = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
frameworks = ["Foundation"],
labels = ["supermodule:xplat/default/public.react_native.infra"],
)
2 changes: 2 additions & 0 deletions React/CoreModules/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ load(
"@fbsource//xplat/configurations/buck/apple/plugins/sad_xplat_hosted_configurations:react_module_registration.bzl",
"react_module_plugin_providers",
)
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")

rn_apple_library(
name = "CoreModulesApple",
Expand All @@ -30,6 +31,7 @@ rn_apple_library(
],
exported_preprocessor_flags = rn_extra_build_flags(),
extension_api_only = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
frameworks = [
"Foundation",
"UIKit",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
name = "network",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/debug/holder/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "holder",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/debug/tags/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "tags",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_dep", "react_native_target", "react_native_xplat_dep", "rn_android_library", "rn_xplat_cxx_library")

rn_android_library(
Expand All @@ -13,6 +14,7 @@ rn_android_library(
name = "hermes_samplingprofiler",
srcs = ["HermesSamplingProfiler.java"],
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = ["PUBLIC"],
deps = [
Expand All @@ -34,6 +36,7 @@ rn_xplat_cxx_library(
compiler_flags_enable_exceptions = True, # TODO: is this necessary?
compiler_flags_enable_rtti = True, # TODO: is this necessary?
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
soname = "libjsijniprofiler.$(ext)",
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
name = "react",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/animated/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_root_target", "react_native_target", "rn_android_library")

rn_android_library(
Expand All @@ -6,6 +7,7 @@ rn_android_library(
"*.java",
]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down
3 changes: 3 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/bridge/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "IS_OSS_BUILD", "react_native_dep", "react_native_target", "react_native_tests_target", "rn_android_library")

INTERFACES = [
Expand All @@ -21,6 +22,7 @@ rn_android_library(
exclude = INTERFACES,
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
proguard_config = "reactnative.pro",
Expand Down Expand Up @@ -67,6 +69,7 @@ rn_android_library(
name = "interfaces",
srcs = glob(INTERFACES),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
proguard_config = "reactnative.pro",
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/common/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "HERMES_BYTECODE_VERSION", "react_native_dep", "rn_android_build_config", "rn_android_library")

SUB_PROJECTS = [
Expand All @@ -12,6 +13,7 @@ rn_android_library(
exclude = SUB_PROJECTS,
),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "FBJNI_TARGET", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
Expand All @@ -6,6 +7,7 @@ rn_android_library(
"*.java",
]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_xplat_target", "rn_xplat_cxx_library", "subdir_glob")

rn_xplat_cxx_library(
Expand All @@ -12,6 +13,7 @@ rn_xplat_cxx_library(
prefix = "react/common/mapbuffer",
),
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
preprocessor_flags = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "network",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/config/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")

rn_android_library(
name = "config",
srcs = glob(["**/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
"PUBLIC",
Expand Down
3 changes: 3 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/devsupport/BUCK
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_root_target", "react_native_target", "rn_android_library")

rn_android_library(
name = "devsupport",
srcs = glob(["*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
manifest = "AndroidManifest.xml",
Expand Down Expand Up @@ -48,6 +50,7 @@ rn_android_library(
name = "interfaces",
srcs = glob(["interfaces/*.java"]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
visibility = [
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/fabric/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library")

rn_android_library(
Expand All @@ -9,6 +10,7 @@ rn_android_library(
"mounting/**/*.java",
]),
autoglob = False,
feature = ReactNative_CommonInfrastructurePlaceholde,
is_androidx = True,
labels = ["supermodule:xplat/default/public.react_native.infra"],
provided_deps = [
Expand Down
2 changes: 2 additions & 0 deletions ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "FBJNI_TARGET", "react_native_target", "react_native_xplat_target", "rn_xplat_cxx_library", "subdir_glob")

rn_xplat_cxx_library(
Expand All @@ -12,6 +13,7 @@ rn_xplat_cxx_library(
prefix = "react/fabric",
),
fbandroid_allow_jni_merging = True,
feature = ReactNative_CommonInfrastructurePlaceholde,
labels = ["supermodule:xplat/default/public.react_native.infra"],
platforms = ANDROID,
preprocessor_flags = [
Expand Down

0 comments on commit b6e72c5

Please sign in to comment.