2
0
Fork 0
mirror of https://github.com/bazelbuild/platforms synced 2024-11-25 08:31:23 +00:00
platforms/BUILD
Xùdōng Yáng 2af915c086
Implement local_config_platform in @platforms (#86)
* POC: implement local_config_platform in @platforms

* missing colons

* move stuff around

* the repo rule need not be public

* attempt at a test setup...

* whoops

* newlines

* comments

* more comments
2024-03-21 13:06:19 -04:00

45 lines
1,000 B
Python

load("@rules_license//rules:license.bzl", "license")
package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:public"],
)
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",
)