1load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 2 3# This file declares a config_setting for each platform supported by the 4# Go SDK. These rules follow a goos_goarch naming convention, for example, 5# //go/platform:linux_amd64 6# 7# These can be used in select expressions to choose platform-specifc 8# sources and dependencies. 9 10load(":list.bzl", "declare_config_settings") 11 12package(default_visibility = ["//visibility:public"]) 13 14declare_config_settings() 15 16filegroup( 17 name = "all_rules", 18 srcs = glob(["*.bzl"]), 19 visibility = ["//visibility:public"], 20) 21 22filegroup( 23 name = "all_files", 24 testonly = True, 25 srcs = glob(["**"]), 26 visibility = ["//visibility:public"], 27) 28 29bzl_library( 30 name = "list", 31 srcs = ["list.bzl"], 32 deps = ["//go/private:platforms"], 33) 34 35bzl_library( 36 name = "apple", 37 srcs = ["apple.bzl"], 38) 39