-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathBUILD.bazel
More file actions
94 lines (86 loc) · 2.45 KB
/
BUILD.bazel
File metadata and controls
94 lines (86 loc) · 2.45 KB
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
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("//zig/private:resolved_toolchain.bzl", "resolved_toolchain")
# For stardoc to reference the files
exports_files(
[
"defs.bzl",
"extensions.bzl",
"toolchain.bzl",
],
visibility = ["//docs:__pkg__"],
)
# This is the Zig compiler toolchain type. Zig rule authors should use this
# target in the `toolchains` parameter in order to access the appropriate Zig
# compiler for the current execution platform. Note, the target platform is
# handled separately via //zig/target:toolchain_type.
toolchain_type(
name = "toolchain_type",
visibility = ["//visibility:public"],
)
resolved_toolchain(
name = "resolved_toolchain",
# Marked manual so that `bazel test //...` passes
# even if no toolchain is registered.
tags = ["manual"],
visibility = ["//visibility:public"],
)
# keep
bzl_library(
name = "bazel_tools",
srcs = ["@bazel_tools//tools:bzl_srcs"],
visibility = ["//visibility:public"],
)
bzl_library(
name = "defs",
srcs = ["defs.bzl"],
visibility = ["//visibility:public"],
deps = [
"//zig/private:zig_binary",
"//zig/private:zig_c_library",
"//zig/private:zig_configure",
"//zig/private:zig_library",
"//zig/private:zig_shared_library",
"//zig/private:zig_static_library",
"//zig/private:zig_test",
],
)
bzl_library(
name = "toolchain",
srcs = ["toolchain.bzl"],
visibility = ["//visibility:public"],
deps = [
"//zig/private:zig_target_toolchain",
"//zig/private:zig_toolchain",
],
)
bzl_library(
name = "extensions",
srcs = ["extensions.bzl"],
visibility = ["//visibility:public"],
deps = [
"//zig/private:platforms",
"//zig/private/bzlmod:zig",
"//zig/private/common:semver",
"//zig/private/repo:toolchains_repo",
"//zig/private/repo:zig_repository",
"@bazel_skylib//lib:sets",
],
)
# Execute `bazel run //util:update_filegroups` to update this target.
filegroup(
name = "all_files",
srcs = [
":BUILD.bazel",
":defs.bzl",
":extensions.bzl",
":toolchain.bzl",
"//zig/config:all_files",
"//zig/lib:all_files",
"//zig/platforms:all_files",
"//zig/private:all_files",
"//zig/runfiles:all_files",
"//zig/settings:all_files",
"//zig/target:all_files",
],
visibility = ["//:__pkg__"],
)