summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Allevato <allevato@google.com>2024-04-15 13:07:03 -0700
committerBrentley Jones <github@brentleyjones.com>2024-04-15 15:12:25 -0500
commita40bcaa218ee423168dd3f9af8085e6bacac2f9f (patch)
tree5e02ccf3b74e576b6ee5744f1d021f97672208a5
parentd2f24ebfe53133858f01f84607313bab87c6e776 (diff)
downloadbazelbuild-apple_support-a40bcaa218ee423168dd3f9af8085e6bacac2f9f.tar.gz
Add `apple_support/xcode/providers.bzl` to export `XcodeVersionInfo`.
This currently just re-exports the native definition of the provider (with the name slightly changed to meet Starlark's requirements). When it is migrated out of Bazel, it will be redefined here in Starlark. PiperOrigin-RevId: 625057283 (cherry picked from commit f8d0988a2693d2741a5fc785ef0e3aa0999afd76)
-rw-r--r--xcode/BUILD9
-rw-r--r--xcode/providers.bzl20
2 files changed, 25 insertions, 4 deletions
diff --git a/xcode/BUILD b/xcode/BUILD
index 78c5cc9..6d856d1 100644
--- a/xcode/BUILD
+++ b/xcode/BUILD
@@ -9,25 +9,26 @@ package(
bzl_library(
name = "available_xcodes",
srcs = ["available_xcodes.bzl"],
- visibility = ["//visibility:private"],
+)
+
+bzl_library(
+ name = "providers",
+ srcs = ["providers.bzl"],
)
bzl_library(
name = "xcode_config",
srcs = ["xcode_config.bzl"],
- visibility = ["//visibility:private"],
)
bzl_library(
name = "xcode_config_alias",
srcs = ["xcode_config_alias.bzl"],
- visibility = ["//visibility:private"],
)
bzl_library(
name = "xcode_version",
srcs = ["xcode_version.bzl"],
- visibility = ["//visibility:private"],
)
# Consumed by bazel tests.
diff --git a/xcode/providers.bzl b/xcode/providers.bzl
new file mode 100644
index 0000000..bf2c80d
--- /dev/null
+++ b/xcode/providers.bzl
@@ -0,0 +1,20 @@
+# Copyright 2024 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Providers used by the Xcode build rules and their clients."""
+
+visibility("public")
+
+# TODO: b/311385128 - Migrate the native implementation here.
+XcodeVersionInfo = apple_common.XcodeVersionConfig