Skip to content

Commit f2b8814

Browse files
adincebicthomasvl
andauthored
Update the implementation to load objc_library from rules_cc. (#2741)
Cherry pick [0897354](0897354) Co-authored-by: Thomas Van Lenten <[email protected]>
1 parent eabea08 commit f2b8814

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

apple/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ bzl_library(
184184
"//apple/internal/resource_rules:apple_precompiled_resource_bundle",
185185
"//apple/internal/resource_rules:apple_resource_bundle",
186186
"//apple/internal/resource_rules:apple_resource_group",
187+
"//apple/internal/resource_rules:apple_resource_locales",
188+
"@rules_cc//cc:core_rules",
187189
"@rules_cc//cc:find_cc_toolchain_bzl",
188190
"@rules_cc//cc/common",
189191
],

apple/resources.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"""# Rules related to Apple resources and resource bundles."""
1616

1717
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
18+
load("@rules_cc//cc:objc_library.bzl", "objc_library")
1819
load(
1920
"//apple/internal:resources.bzl",
2021
_resources_common = "resources",
@@ -52,6 +53,8 @@ load(
5253
_apple_resource_group = "apple_resource_group",
5354
)
5455

56+
visibility("public")
57+
5558
apple_bundle_import = _apple_bundle_import
5659
apple_intent_library = _apple_intent_library
5760
apple_metal_library = _apple_metal_library
@@ -99,7 +102,8 @@ def apple_core_ml_library(name, mlmodel, **kwargs):
99102
visibility = ["//visibility:private"],
100103
**core_ml_args
101104
)
102-
native.objc_library(
105+
106+
objc_library(
103107
name = name,
104108
srcs = [objc_source],
105109
hdrs = [objc_header],

0 commit comments

Comments
 (0)