Skip to content

Commit effbae5

Browse files
javachefacebook-github-bot
authored andcommitted
Rename rn_xplat_cxx_library2 to rn_apple_xplat_cxx_library
Summary: Rename this helper to make it explicit what it's used for. There's still more to do here to simplify these. Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D41184338 fbshipit-source-id: a33d306978cb9026ebf10b00853042da4aaecd5a
1 parent f8f2a3e commit effbae5

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

BUCK

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ load(
2626
"react_native_xplat_dep",
2727
"react_native_xplat_target",
2828
"rn_apple_library",
29+
"rn_apple_xplat_cxx_library",
2930
"rn_extra_build_flags",
30-
"rn_xplat_cxx_library2",
3131
"subdir_glob",
3232
)
3333
load("//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace")
@@ -70,7 +70,7 @@ rn_codegen_components(
7070
schema_target = ":codegen_rn_components_schema_rncore",
7171
)
7272

73-
rn_xplat_cxx_library2(
73+
rn_apple_xplat_cxx_library(
7474
name = "RCTCxxBridge",
7575
srcs = glob([
7676
"React/CxxBridge/*.mm",
@@ -130,7 +130,7 @@ RCTCXXMODULE_PUBLIC_HEADERS = {
130130
]
131131
}
132132

133-
rn_xplat_cxx_library2(
133+
rn_apple_xplat_cxx_library(
134134
name = "RCTCxxModule",
135135
srcs = glob([
136136
"React/CxxModule/*.mm",
@@ -171,7 +171,7 @@ rn_xplat_cxx_library2(
171171
],
172172
)
173173

174-
rn_xplat_cxx_library2(
174+
rn_apple_xplat_cxx_library(
175175
name = "RCTCxxUtils",
176176
srcs = glob([
177177
"React/CxxUtils/*.mm",
@@ -203,7 +203,7 @@ rn_xplat_cxx_library2(
203203
],
204204
)
205205

206-
rn_xplat_cxx_library2(
206+
rn_apple_xplat_cxx_library(
207207
name = "RCTCxxLogUtils",
208208
srcs = glob([
209209
"React/CxxLogUtils/*.mm",
@@ -362,7 +362,7 @@ REACT_COMPONENTVIEWS_BASE_FILES = [
362362
"React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm",
363363
]
364364

365-
rn_xplat_cxx_library2(
365+
rn_apple_xplat_cxx_library(
366366
name = "ReactInternal",
367367
srcs = glob(
368368
[
@@ -462,7 +462,7 @@ rn_xplat_cxx_library2(
462462
],
463463
)
464464

465-
rn_xplat_cxx_library2(
465+
rn_apple_xplat_cxx_library(
466466
name = "RCTFabric",
467467
srcs = glob(
468468
[
@@ -689,7 +689,7 @@ rn_apple_library(
689689
# Ideally, each component view gets its own target, and each target uses react_fabric_component_plugin_provider.
690690
# For each component, an app can import the base component view, or an app-specific subclass.
691691
# i.e. Apps depend on "ImageView" target for RCTImageComponentView.h, and "FBReactImageView" target for FBReactImageComponentView.h
692-
rn_xplat_cxx_library2(
692+
rn_apple_xplat_cxx_library(
693693
name = "RCTFabricComponentViewsBase",
694694
srcs = glob(REACT_COMPONENTVIEWS_BASE_FILES),
695695
header_namespace = "",
@@ -1201,7 +1201,7 @@ rn_apple_library(
12011201
],
12021202
)
12031203

1204-
rn_xplat_cxx_library2(
1204+
rn_apple_xplat_cxx_library(
12051205
name = "RCTText",
12061206
srcs = glob([
12071207
"Libraries/Text/**/*.m",
@@ -1307,7 +1307,7 @@ rn_apple_library(
13071307
],
13081308
)
13091309

1310-
rn_xplat_cxx_library2(
1310+
rn_apple_xplat_cxx_library(
13111311
name = "RCTWrapper",
13121312
srcs = glob([
13131313
"Libraries/Wrapper/*.m",
@@ -1339,7 +1339,7 @@ rn_xplat_cxx_library2(
13391339
],
13401340
)
13411341

1342-
rn_xplat_cxx_library2(
1342+
rn_apple_xplat_cxx_library(
13431343
name = "RCTWrapperExample",
13441344
srcs = glob([
13451345
"Libraries/Wrapper/Example/*.m",
@@ -1372,7 +1372,7 @@ rn_xplat_cxx_library2(
13721372
],
13731373
)
13741374

1375-
rn_xplat_cxx_library2(
1375+
rn_apple_xplat_cxx_library(
13761376
name = "RCTSurfaceHostingComponent",
13771377
srcs = glob([
13781378
"Libraries/SurfaceHostingComponent/**/*.m",
@@ -1407,7 +1407,7 @@ rn_xplat_cxx_library2(
14071407
],
14081408
)
14091409

1410-
rn_xplat_cxx_library2(
1410+
rn_apple_xplat_cxx_library(
14111411
name = "RCTSurfaceBackedComponent",
14121412
srcs = glob([
14131413
"Libraries/SurfaceBackedComponent/**/*.m",
@@ -1443,7 +1443,7 @@ rn_xplat_cxx_library2(
14431443
],
14441444
)
14451445

1446-
rn_xplat_cxx_library2(
1446+
rn_apple_xplat_cxx_library(
14471447
name = "RCTMapView_RNHeader",
14481448
header_namespace = "",
14491449
exported_headers = {
@@ -1458,7 +1458,7 @@ rn_xplat_cxx_library2(
14581458
],
14591459
)
14601460

1461-
rn_xplat_cxx_library2(
1461+
rn_apple_xplat_cxx_library(
14621462
name = "RCTWebPerformance",
14631463
srcs = glob([
14641464
"Libraries/WebPerformance/**/*.cpp",

packages/rn-tester/BUCK

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ load(
1919
"react_fabric_component_plugin_provider",
2020
"react_module_plugin_providers",
2121
"rn_apple_library",
22+
"rn_apple_xplat_cxx_library",
2223
"rn_extra_build_flags",
23-
"rn_xplat_cxx_library2",
24+
"rn_xplat_cxx_library",
2425
)
2526
load("//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace")
2627

@@ -208,7 +209,7 @@ fb_xplat_resource(
208209
],
209210
)
210211

211-
rn_xplat_cxx_library2(
212+
rn_apple_xplat_cxx_library(
212213
name = "RNTesterBundleBinary",
213214
srcs = ["//xplat/configurations/buck/apple/common_files:dummy.c"],
214215
deps = [":RNTesterBundleAssetCatalog"],
@@ -289,7 +290,7 @@ rn_apple_library(
289290
],
290291
)
291292

292-
rn_xplat_cxx_library2(
293+
rn_apple_xplat_cxx_library(
293294
name = "NativeComponentExample",
294295
plugins_only = True,
295296
srcs = glob(
@@ -326,7 +327,7 @@ rn_xplat_cxx_library2(
326327
],
327328
)
328329

329-
rn_xplat_cxx_library2(
330+
rn_xplat_cxx_library(
330331
name = "NativeCxxModuleExample",
331332
srcs = glob(["NativeCxxModuleExample/*.cpp"]),
332333
header_namespace = "",

tools/build_defs/oss/rn_defs.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def rn_xplat_cxx_library(
146146
**kwargs
147147
)
148148

149-
rn_xplat_cxx_library2 = rn_xplat_cxx_library
149+
rn_apple_xplat_cxx_library = rn_xplat_cxx_library
150150

151151
# Example: react_native_target('java/com/facebook/react/common:common')
152152
def react_native_target(path):

0 commit comments

Comments
 (0)