Skip to content

Commit

Permalink
Add apple_support/xcode/providers.bzl to export XcodeVersionInfo.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
allevato authored and swiple-rules-gardener committed Apr 15, 2024
1 parent 8edac7c commit f8d0988
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
9 changes: 5 additions & 4 deletions xcode/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
20 changes: 20 additions & 0 deletions xcode/providers.bzl
Original file line number Diff line number Diff line change
@@ -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

1 comment on commit f8d0988

@brentleyjones
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.