-
Notifications
You must be signed in to change notification settings - Fork 9
/
BUILD.bazel
93 lines (84 loc) · 2.08 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
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
filegroup(
name = "distribution",
srcs = [
"BUILD.bazel",
"CHANGELOG.md",
"LICENSE",
"MODULE.bazel",
"README.md",
"WORKSPACE",
":def.bzl",
":deps.bzl",
"//internal:distribution",
# Needed for BCR registry to run the pre-submit tests
"//examples:distribution",
],
visibility = ["//internal/pkg:__pkg__"],
)
alias(
name = "release",
actual = "//internal/pkg:release",
visibility = ["//:__subpackages__"],
)
constraint_value(
name = "armv6hf",
constraint_setting = "@platforms//cpu",
)
# Raspberry Pi
config_setting(
name = "linux_armv6hf",
constraint_values = [
"@platforms//os:linux",
"//:armv6hf",
],
)
config_setting(
name = "darwin_x86_64",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:x86_64",
],
)
config_setting(
name = "darwin_aarch64",
constraint_values = [
"@platforms//os:macos",
"@platforms//cpu:aarch64",
],
)
config_setting(
name = "linux_x86_64",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
)
config_setting(
name = "linux_aarch64",
constraint_values = [
"@platforms//os:linux",
"@platforms//cpu:aarch64",
],
)
config_setting(
name = "windows_x86_64",
constraint_values = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
)
alias(
name = "shellcheck",
actual = select(
{
":darwin_aarch64": "@shellcheck_darwin_aarch64//:shellcheck",
":darwin_x86_64": "@shellcheck_darwin_x86_64//:shellcheck",
":linux_aarch64": "@shellcheck_linux_aarch64//:shellcheck",
":linux_armv6hf": "@shellcheck_linux_armv6hf//:shellcheck",
":linux_x86_64": "@shellcheck_linux_x86_64//:shellcheck",
":windows_x86_64": "@shellcheck_windows_x86_64//:shellcheck",
},
no_match_error = "binaries for your platform could not be found",
),
visibility = ["//visibility:public"],
)