Annotate targets with feature xplat/js/react-native-github/Libraries/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
This commit is contained in:
Родитель
64b7ac5959
Коммит
b6e72c5922
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "fb_apple_library")
|
||||||
|
|
||||||
fb_apple_library(
|
fb_apple_library(
|
||||||
|
@ -9,6 +10,7 @@ fb_apple_library(
|
||||||
complete_nullability = True,
|
complete_nullability = True,
|
||||||
contacts = ["oncall+react_native@xmail.facebook.com"],
|
contacts = ["oncall+react_native@xmail.facebook.com"],
|
||||||
extension_api_only = True,
|
extension_api_only = True,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
frameworks = ["Foundation"],
|
frameworks = ["Foundation"],
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
)
|
)
|
||||||
|
|
|
@ -4,6 +4,7 @@ load(
|
||||||
"@fbsource//xplat/configurations/buck/apple/plugins/sad_xplat_hosted_configurations:react_module_registration.bzl",
|
"@fbsource//xplat/configurations/buck/apple/plugins/sad_xplat_hosted_configurations:react_module_registration.bzl",
|
||||||
"react_module_plugin_providers",
|
"react_module_plugin_providers",
|
||||||
)
|
)
|
||||||
|
load("@fbsource//xplat/pfh/ReactNative/CommonInfrastructurePlaceholde:DEFS.bzl", "ReactNative_CommonInfrastructurePlaceholde")
|
||||||
|
|
||||||
rn_apple_library(
|
rn_apple_library(
|
||||||
name = "CoreModulesApple",
|
name = "CoreModulesApple",
|
||||||
|
@ -30,6 +31,7 @@ rn_apple_library(
|
||||||
],
|
],
|
||||||
exported_preprocessor_flags = rn_extra_build_flags(),
|
exported_preprocessor_flags = rn_extra_build_flags(),
|
||||||
extension_api_only = True,
|
extension_api_only = True,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
frameworks = [
|
frameworks = [
|
||||||
"Foundation",
|
"Foundation",
|
||||||
"UIKit",
|
"UIKit",
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
name = "network",
|
name = "network",
|
||||||
srcs = glob(["**/*.java"]),
|
srcs = glob(["**/*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
visibility = [
|
visibility = [
|
||||||
"PUBLIC",
|
"PUBLIC",
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
name = "holder",
|
name = "holder",
|
||||||
srcs = glob(["*.java"]),
|
srcs = glob(["*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
visibility = [
|
visibility = [
|
||||||
"PUBLIC",
|
"PUBLIC",
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
name = "tags",
|
name = "tags",
|
||||||
srcs = glob(["*.java"]),
|
srcs = glob(["*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
visibility = [
|
visibility = [
|
||||||
"PUBLIC",
|
"PUBLIC",
|
||||||
|
|
|
@ -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")
|
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(
|
rn_android_library(
|
||||||
|
@ -13,6 +14,7 @@ rn_android_library(
|
||||||
name = "hermes_samplingprofiler",
|
name = "hermes_samplingprofiler",
|
||||||
srcs = ["HermesSamplingProfiler.java"],
|
srcs = ["HermesSamplingProfiler.java"],
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
visibility = ["PUBLIC"],
|
visibility = ["PUBLIC"],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -34,6 +36,7 @@ rn_xplat_cxx_library(
|
||||||
compiler_flags_enable_exceptions = True, # TODO: is this necessary?
|
compiler_flags_enable_exceptions = True, # TODO: is this necessary?
|
||||||
compiler_flags_enable_rtti = True, # TODO: is this necessary?
|
compiler_flags_enable_rtti = True, # TODO: is this necessary?
|
||||||
fbandroid_allow_jni_merging = True,
|
fbandroid_allow_jni_merging = True,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
platforms = ANDROID,
|
platforms = ANDROID,
|
||||||
soname = "libjsijniprofiler.$(ext)",
|
soname = "libjsijniprofiler.$(ext)",
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_target", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
name = "react",
|
name = "react",
|
||||||
srcs = glob(["*.java"]),
|
srcs = glob(["*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
provided_deps = [
|
provided_deps = [
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_root_target", "react_native_target", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
|
@ -6,6 +7,7 @@ rn_android_library(
|
||||||
"*.java",
|
"*.java",
|
||||||
]),
|
]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
provided_deps = [
|
provided_deps = [
|
||||||
|
|
|
@ -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")
|
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 = [
|
INTERFACES = [
|
||||||
|
@ -21,6 +22,7 @@ rn_android_library(
|
||||||
exclude = INTERFACES,
|
exclude = INTERFACES,
|
||||||
),
|
),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
proguard_config = "reactnative.pro",
|
proguard_config = "reactnative.pro",
|
||||||
|
@ -67,6 +69,7 @@ rn_android_library(
|
||||||
name = "interfaces",
|
name = "interfaces",
|
||||||
srcs = glob(INTERFACES),
|
srcs = glob(INTERFACES),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
proguard_config = "reactnative.pro",
|
proguard_config = "reactnative.pro",
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "HERMES_BYTECODE_VERSION", "react_native_dep", "rn_android_build_config", "rn_android_library")
|
||||||
|
|
||||||
SUB_PROJECTS = [
|
SUB_PROJECTS = [
|
||||||
|
@ -12,6 +13,7 @@ rn_android_library(
|
||||||
exclude = SUB_PROJECTS,
|
exclude = SUB_PROJECTS,
|
||||||
),
|
),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
provided_deps = [
|
provided_deps = [
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "FBJNI_TARGET", "react_native_dep", "react_native_target", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
|
@ -6,6 +7,7 @@ rn_android_library(
|
||||||
"*.java",
|
"*.java",
|
||||||
]),
|
]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
provided_deps = [],
|
provided_deps = [],
|
||||||
|
|
|
@ -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")
|
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(
|
rn_xplat_cxx_library(
|
||||||
|
@ -12,6 +13,7 @@ rn_xplat_cxx_library(
|
||||||
prefix = "react/common/mapbuffer",
|
prefix = "react/common/mapbuffer",
|
||||||
),
|
),
|
||||||
fbandroid_allow_jni_merging = True,
|
fbandroid_allow_jni_merging = True,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
platforms = ANDROID,
|
platforms = ANDROID,
|
||||||
preprocessor_flags = [
|
preprocessor_flags = [
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
name = "network",
|
name = "network",
|
||||||
srcs = glob(["**/*.java"]),
|
srcs = glob(["**/*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
visibility = [
|
visibility = [
|
||||||
"PUBLIC",
|
"PUBLIC",
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
name = "config",
|
name = "config",
|
||||||
srcs = glob(["**/*.java"]),
|
srcs = glob(["**/*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
visibility = [
|
visibility = [
|
||||||
"PUBLIC",
|
"PUBLIC",
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "react_native_dep", "react_native_root_target", "react_native_target", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
name = "devsupport",
|
name = "devsupport",
|
||||||
srcs = glob(["*.java"]),
|
srcs = glob(["*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
manifest = "AndroidManifest.xml",
|
manifest = "AndroidManifest.xml",
|
||||||
|
@ -48,6 +50,7 @@ rn_android_library(
|
||||||
name = "interfaces",
|
name = "interfaces",
|
||||||
srcs = glob(["interfaces/*.java"]),
|
srcs = glob(["interfaces/*.java"]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
visibility = [
|
visibility = [
|
||||||
|
|
|
@ -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")
|
load("//tools/build_defs/oss:rn_defs.bzl", "YOGA_TARGET", "react_native_dep", "react_native_target", "rn_android_library")
|
||||||
|
|
||||||
rn_android_library(
|
rn_android_library(
|
||||||
|
@ -9,6 +10,7 @@ rn_android_library(
|
||||||
"mounting/**/*.java",
|
"mounting/**/*.java",
|
||||||
]),
|
]),
|
||||||
autoglob = False,
|
autoglob = False,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
is_androidx = True,
|
is_androidx = True,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
provided_deps = [
|
provided_deps = [
|
||||||
|
|
|
@ -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")
|
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(
|
rn_xplat_cxx_library(
|
||||||
|
@ -12,6 +13,7 @@ rn_xplat_cxx_library(
|
||||||
prefix = "react/fabric",
|
prefix = "react/fabric",
|
||||||
),
|
),
|
||||||
fbandroid_allow_jni_merging = True,
|
fbandroid_allow_jni_merging = True,
|
||||||
|
feature = ReactNative_CommonInfrastructurePlaceholde,
|
||||||
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
||||||
platforms = ANDROID,
|
platforms = ANDROID,
|
||||||
preprocessor_flags = [
|
preprocessor_flags = [
|
||||||
|
|
Загрузка…
Ссылка в новой задаче