-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathBUILD
More file actions
67 lines (59 loc) · 1.62 KB
/
BUILD
File metadata and controls
67 lines (59 loc) · 1.62 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
load("@package_metadata//licenses/rules:license.bzl", "license")
load("@package_metadata//rules:package_metadata.bzl", "package_metadata")
load("@rules_license//rules:license.bzl", deprecated_license = "license")
package(
default_applicable_licenses = [
":license",
":package_metadata",
],
default_visibility = ["//visibility:public"],
)
package_metadata(
name = "package_metadata",
attributes = [
":package_metadata_license",
],
purl = "pkg:bazel/{}@{}".format(
module_name(),
module_version(),
) if module_version() else "pkg:bazel/{}".format(module_name()),
visibility = ["//visibility:public"],
)
license(
name = "package_metadata_license",
kind = "@package_metadata//licenses/spdx:Apache-2.0",
text = "LICENSE",
)
deprecated_license(
name = "license",
license_kinds = [
"@rules_license//licenses/spdx:Apache-2.0",
],
license_text = "LICENSE",
)
exports_files([
"LICENSE",
"MODULE.bazel",
])
filegroup(
name = "srcs",
srcs = [
"BUILD",
"WORKSPACE",
"//cpu:srcs",
"//os:srcs",
"//host:srcs",
],
)
# For use in Incompatible Target Skipping:
# https://docs.bazel.build/versions/main/platforms.html#skipping-incompatible-targets
#
# Specifically this lets targets declare incompatibility with some set of
# platforms. See
# https://docs.bazel.build/versions/main/platforms.html#more-expressive-constraints
# for some more details.
constraint_setting(name = "incompatible_setting")
constraint_value(
name = "incompatible",
constraint_setting = ":incompatible_setting",
)