1# Host platform detection 2 3load("@host_platform//:constraints.bzl", "HOST_CONSTRAINTS") 4 5package(default_visibility = ["//visibility:public"]) 6 7exports_files(["constraints.bzl", "extension.bzl"]) 8 9filegroup( 10 name = "srcs", 11 srcs = glob(["**"]), 12) 13 14platform( 15 name = "host", 16 constraint_values = HOST_CONSTRAINTS, 17) 18 19# The following filegroup targets are essentially bzl_library targets. 20# We don't directly use bzl_library to avoid a dependency on bazel-skylib. 21filegroup( 22 name = "constraints_lib", 23 srcs = [ 24 "constraints.bzl", 25 "@host_platform//:constraints.bzl", 26 ], 27) 28 29filegroup( 30 name = "extension_lib", 31 srcs = [ 32 "extension.bzl", 33 ], 34) 35