forked from bazel-xcode/xchammer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
101 lines (72 loc) · 2.46 KB
/
WORKSPACE
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
git_repository(
name = "build_bazel_rules_apple",
remote = "https://github.com/bazelbuild/rules_apple.git",
tag = "0.18.0",
)
load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)
git_repository(
name = "build_bazel_rules_swift",
remote = "https://github.com/bazelbuild/rules_swift.git",
commit = "0192f16b82b2998d846c45187545e38548a6671a",
)
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
apple_rules_dependencies()
load(
"@com_google_protobuf//:protobuf_deps.bzl",
"protobuf_deps",
)
protobuf_deps()
load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)
apple_support_dependencies()
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
http_file(
name = "xctestrunner",
executable = 1,
urls = ["https://github.com/google/xctestrunner/releases/download/0.2.6/ios_test_runner.par"],
)
## SPM Dependencies
load("//third_party:repositories.bzl", "xchammer_dependencies")
xchammer_dependencies()
## Build system
# This needs to be manually imported
# https://github.com/bazelbuild/bazel/issues/1550
git_repository(
name = "xcbuildkit",
remote = "https://github.com/jerrymarino/xcbuildkit.git",
commit = "b619d25f65cf7195c57e2dbc26d488e5606e763a",
)
load("@xcbuildkit//third_party:repositories.bzl", xcbuildkit_dependencies="dependencies")
xcbuildkit_dependencies()
## Buildifier deps (Bazel file formatting)
http_archive(
name = "io_bazel_rules_go",
sha256 = "3743a20704efc319070957c45e24ae4626a05ba4b1d6a8961e87520296f1b676",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.18.4/rules_go-0.18.4.tar.gz",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains()
http_archive(
name = "com_github_bazelbuild_buildtools",
strip_prefix = "buildtools-0.25.0",
url = "https://github.com/bazelbuild/buildtools/archive/0.25.0.zip",
)
load("@com_github_bazelbuild_buildtools//buildifier:deps.bzl", "buildifier_dependencies")
buildifier_dependencies()
# For a binary check-in, this should be declared as so
#local_repository(
# name="xchammer_resources",
# path="xchammer.app/Contents/Resources/",
#)