Autogenerate BUILD files

This commit is contained in:
Jeff Grafton
2017-12-23 13:06:26 -08:00
parent b13263eeb3
commit efee0704c6
825 changed files with 6006 additions and 1311 deletions

View File

@@ -5,28 +5,54 @@ go_library(
srcs = [
"addr.go",
"class.go",
"conntrack_unspecified.go",
"filter.go",
"fou.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"link.go",
"neigh.go",
"netlink.go",
"netlink_unspecified.go",
"order.go",
"protinfo.go",
"qdisc.go",
"route.go",
"route_unspecified.go",
"rule.go",
"socket.go",
"xfrm.go",
"xfrm_policy.go",
"xfrm_state.go",
] + select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"addr_linux.go",
"bpf_linux.go",
"bridge_linux.go",
@@ -50,6 +76,54 @@ go_library(
"xfrm_policy_linux.go",
"xfrm_state_linux.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"conntrack_unspecified.go",
"fou_unspecified.go",
"genetlink_unspecified.go",
"handle_unspecified.go",
"netlink_unspecified.go",
"route_unspecified.go",
],
"//conditions:default": [],
}),
cgo = True,
@@ -57,9 +131,43 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"//vendor/github.com/vishvananda/netlink/nl:go_default_library",
"//vendor/github.com/vishvananda/netns:go_default_library",
"//vendor/golang.org/x/sys/unix:go_default_library",
],
] + select({
"@io_bazel_rules_go//go/platform:android": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:darwin": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:nacl": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:plan9": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/vishvananda/netns:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(

View File

@@ -3,10 +3,21 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"nl_unspecified.go",
"syscall.go",
] + select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"addr_linux.go",
"bridge_linux.go",
"conntrack_linux.go",
@@ -22,12 +33,30 @@ go_library(
"xfrm_policy_linux.go",
"xfrm_state_linux.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"nl_unspecified.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"nl_unspecified.go",
],
"//conditions:default": [],
}),
importpath = "github.com/vishvananda/netlink/nl",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/github.com/vishvananda/netns:go_default_library",
"//vendor/golang.org/x/sys/unix:go_default_library",
],