forked from cgrindel/rules_swift_package_manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
68 lines (58 loc) · 1.52 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@cgrindel_bazel_starlib//bzltidy:defs.bzl", "tidy")
tidy(
name = "tidy",
targets = [
"//swift:update_pkgs",
":update_build_files",
],
)
# MARK: - Gazelle
gazelle_binary(
name = "gazelle_bin",
languages = [
"@bazel_skylib_gazelle_plugin//bzl",
"@rules_swift_package_manager//gazelle",
],
visibility = ["//:__subpackages__"],
)
gazelle(
name = "update_build_files",
args = [
"-swift_dependency_index=swift/deps_index.json",
],
gazelle = ":gazelle_bin",
)
# These aliases do not need to be replicated in your workspace.
# They are here to aid with upkeep of the example.
alias(
name = "swift_update_pkgs",
actual = "//swift:update_pkgs",
)
alias(
name = "swift_update_pkgs_to_latest",
actual = "//swift:update_pkgs_to_latest",
)
# Vapor was not happy building under 13.2.1. Fix the version for now.
# See Keith's article for more details:
# https://www.smileykeith.com/2021/03/08/locking-xcode-in-bazel/
xcode_version(
name = "version14_0_1_14A400",
aliases = [
"14.0",
"14A400",
"14.0.1",
"14.0.1.14A400",
"14",
],
default_ios_sdk_version = "16.0",
default_macos_sdk_version = "12.3",
default_tvos_sdk_version = "16.0",
default_watchos_sdk_version = "9.0",
version = "14.0.1.14A400",
)
xcode_config(
name = "host_xcodes",
default = ":version14_0_1_14A400",
versions = [":version14_0_1_14A400"],
)