Update rules_apple (#1086)

This commit is contained in:
Keith Smiley 2023-08-29 08:35:32 -07:00 committed by GitHub
parent 7b673547a3
commit 60813d57a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 131 additions and 3 deletions

View File

@ -14,7 +14,7 @@ use_repo(
bazel_dep(name = "platforms", version = "0.0.6")
bazel_dep(name = "rules_swift", version = "1.6.0", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "rules_apple", version = "2.1.0", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_apple", version = "3.0.0-rc1", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "apple_support", version = "1.4.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "rules_python", version = "0.22.0")

View File

@ -85,6 +85,14 @@ rbe_preconfig(
toolchain = "ubuntu1804-bazel-java11",
)
# TODO: Remove once bazel 4.x is no longer supported
http_archive(
name = "rules_proto",
sha256 = "20b240eba17a36be4b0b22635aca63053913d5c1ee36e16be36499d167a2f533",
strip_prefix = "rules_proto-11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8",
urls = ["https://github.com/bazelbuild/rules_proto/archive/11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz"],
)
http_archive(
name = "build_bazel_apple_support",
patches = ["//deps:apple_support.patch"],
@ -94,8 +102,8 @@ http_archive(
http_archive(
name = "build_bazel_rules_apple",
sha256 = "12865e5944f09d16364aa78050366aca9dc35a32a018fa35f5950238b08bf744",
url = "https://github.com/bazelbuild/rules_apple/releases/download/0.34.2/rules_apple.0.34.2.tar.gz",
sha256 = "62b24b9c3c1eb5bdb6fe1a3f4bf541d6e61eac8997e87c25a50c821f85bf8ff2",
url = "https://github.com/bazelbuild/rules_apple/releases/download/3.0.0-rc1/rules_apple.3.0.0-rc1.tar.gz",
)
load(

120
examples/platform_mappings Normal file
View File

@ -0,0 +1,120 @@
platforms:
@build_bazel_apple_support//platforms:macos_x86_64
--cpu=darwin_x86_64
@build_bazel_apple_support//platforms:macos_arm64
--cpu=darwin_arm64
@build_bazel_apple_support//platforms:darwin_arm64e
--cpu=darwin_arm64e
@build_bazel_apple_support//platforms:ios_i386
--cpu=ios_i386
@build_bazel_apple_support//platforms:ios_x86_64
--cpu=ios_x86_64
@build_bazel_apple_support//platforms:ios_sim_arm64
--cpu=ios_sim_arm64
@build_bazel_apple_support//platforms:ios_armv7
--cpu=ios_armv7
@build_bazel_apple_support//platforms:ios_arm64
--cpu=ios_arm64
@build_bazel_apple_support//platforms:ios_arm64e
--cpu=ios_arm64e
@build_bazel_apple_support//platforms:tvos_x86_64
--cpu=tvos_x86_64
@build_bazel_apple_support//platforms:tvos_sim_arm64
--cpu=tvos_sim_arm64
@build_bazel_apple_support//platforms:tvos_arm64
--cpu=tvos_arm64
@build_bazel_apple_support//platforms:watchos_i386
--cpu=watchos_i386
@build_bazel_apple_support//platforms:watchos_x86_64
--cpu=watchos_x86_64
@build_bazel_apple_support//platforms:watchos_arm64
--cpu=watchos_arm64
@build_bazel_apple_support//platforms:watchos_armv7k
--cpu=watchos_armv7k
@build_bazel_apple_support//platforms:watchos_arm64_32
--cpu=watchos_arm64_32
flags:
--cpu=darwin_x86_64
--apple_platform_type=macos
@build_bazel_apple_support//platforms:macos_x86_64
--cpu=darwin_arm64
--apple_platform_type=macos
@build_bazel_apple_support//platforms:macos_arm64
--cpu=darwin_arm64e
--apple_platform_type=macos
@build_bazel_apple_support//platforms:darwin_arm64e
--cpu=ios_i386
--apple_platform_type=ios
@build_bazel_apple_support//platforms:ios_i386
--cpu=ios_x86_64
--apple_platform_type=ios
@build_bazel_apple_support//platforms:ios_x86_64
--cpu=ios_sim_arm64
--apple_platform_type=ios
@build_bazel_apple_support//platforms:ios_sim_arm64
--cpu=ios_armv7
--apple_platform_type=ios
@build_bazel_apple_support//platforms:ios_armv7
--cpu=ios_arm64
--apple_platform_type=ios
@build_bazel_apple_support//platforms:ios_arm64
--cpu=ios_arm64e
--apple_platform_type=ios
@build_bazel_apple_support//platforms:ios_arm64e
--cpu=tvos_x86_64
--apple_platform_type=tvos
@build_bazel_apple_support//platforms:tvos_x86_64
--cpu=tvos_sim_arm64
--apple_platform_type=tvos
@build_bazel_apple_support//platforms:tvos_sim_arm64
--cpu=tvos_arm64
--apple_platform_type=tvos
@build_bazel_apple_support//platforms:tvos_arm64
--cpu=watchos_i386
--apple_platform_type=watchos
@build_bazel_apple_support//platforms:watchos_i386
--cpu=watchos_x86_64
--apple_platform_type=watchos
@build_bazel_apple_support//platforms:watchos_x86_64
--cpu=watchos_arm64
--apple_platform_type=watchos
@build_bazel_apple_support//platforms:watchos_arm64
--cpu=watchos_armv7k
--apple_platform_type=watchos
@build_bazel_apple_support//platforms:watchos_armv7k
--cpu=watchos_arm64_32
--apple_platform_type=watchos
@build_bazel_apple_support//platforms:watchos_arm64_32