Skip to content

Commit 81b5cbd

Browse files
committed
Implement apple_archive rule
1 parent 714f607 commit 81b5cbd

35 files changed

+925
-100
lines changed

apple/BUILD

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ bzl_library(
7272
],
7373
)
7474

75+
bzl_library(
76+
name = "apple_archive",
77+
srcs = ["apple_archive.bzl"],
78+
deps = [
79+
"//apple/internal:apple_archive",
80+
],
81+
)
82+
7583
bzl_library(
7684
name = "aspects",
7785
srcs = ["aspects.bzl"],

apple/apple_archive.bzl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright 2025 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
"""
16+
Rules for creating iOS Package Archive (.ipa).
17+
"""
18+
19+
load(
20+
"//apple/internal:apple_archive.bzl",
21+
_apple_archive = "apple_archive",
22+
)
23+
24+
apple_archive = _apple_archive

apple/internal/BUILD

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,24 @@ bzl_library(
7575
],
7676
)
7777

78+
bzl_library(
79+
name = "apple_archive",
80+
srcs = ["apple_archive.bzl"],
81+
visibility = [
82+
"//apple:__subpackages__",
83+
],
84+
deps = [
85+
":apple_toolchains",
86+
":providers",
87+
"//apple:providers",
88+
"//apple/internal/providers:apple_messages_stub_info",
89+
"//apple/internal/providers:apple_swift_dylibs_info",
90+
"//apple/internal/providers:apple_symbols_file_info",
91+
"//apple/internal/providers:apple_watchos_stub_info",
92+
"//apple/internal/utils:defines",
93+
],
94+
)
95+
7896
bzl_library(
7997
name = "apple_universal_binary",
8098
srcs = ["apple_universal_binary.bzl"],

0 commit comments

Comments
 (0)