aboutsummaryrefslogtreecommitdiff
path: root/go/platform/BUILD.bazel
blob: 5f31f37d926104a0c54a13482b053f3f789e56c8 (plain)
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
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

# This file declares a config_setting for each platform supported by the
# Go SDK. These rules follow a goos_goarch naming convention, for example,
# //go/platform:linux_amd64
#
# These can be used in select expressions to choose platform-specifc
# sources and dependencies.

load(":list.bzl", "declare_config_settings")

package(default_visibility = ["//visibility:public"])

declare_config_settings()

filegroup(
    name = "all_rules",
    srcs = glob(["*.bzl"]),
    visibility = ["//visibility:public"],
)

filegroup(
    name = "all_files",
    testonly = True,
    srcs = glob(["**"]),
    visibility = ["//visibility:public"],
)

bzl_library(
    name = "list",
    srcs = ["list.bzl"],
    deps = ["//go/private:platforms"],
)

bzl_library(
    name = "apple",
    srcs = ["apple.bzl"],
)