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

@@ -35,8 +35,8 @@ go_library(
go_binary(
name = "ginkgo",
embed = [":go_default_library"],
importpath = "github.com/onsi/ginkgo/ginkgo",
library = ":go_default_library",
visibility = ["//visibility:public"],
)

View File

@@ -5,13 +5,28 @@ go_library(
srcs = [
"interrupt_handler.go",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"@io_bazel_rules_go//go/platform:darwin": [
"sigquit_swallower_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:dragonfly": [
"sigquit_swallower_unix.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:freebsd": [
"sigquit_swallower_unix.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"sigquit_swallower_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"sigquit_swallower_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"sigquit_swallower_unix.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"sigquit_swallower_unix.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"sigquit_swallower_windows.go",
],
"//conditions:default": [],

View File

@@ -7,16 +7,138 @@ go_library(
"forwarding_reporter.go",
"output_interceptor.go",
"server.go",
"syscall_dup_unix.go",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"@io_bazel_rules_go//go/platform:darwin": [
"output_interceptor_unix.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"output_interceptor_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"output_interceptor_unix.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"output_interceptor_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"output_interceptor_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"output_interceptor_unix.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"output_interceptor_unix.go",
"syscall_dup_solaris.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"output_interceptor_win.go",
],
"//conditions:default": [],
}) + select({
"@io_bazel_rules_go//go/platform:android_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:android_amd64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:android_arm": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:android_arm64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin_arm": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:darwin_arm64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:dragonfly_amd64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd_amd64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:freebsd_arm": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"output_interceptor_unix.go",
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"output_interceptor_win.go",
"@io_bazel_rules_go//go/platform:linux_arm": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_arm64": [
"syscall_dup_linux_arm64.go",
],
"@io_bazel_rules_go//go/platform:linux_mips": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_mips64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_mips64le": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_mipsle": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_ppc64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_ppc64le": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:linux_s390x": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:nacl_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:nacl_amd64p32": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:nacl_arm": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd_amd64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:netbsd_arm": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd_amd64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:openbsd_arm": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:plan9_386": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:plan9_amd64": [
"syscall_dup_unix.go",
],
"@io_bazel_rules_go//go/platform:plan9_arm": [
"syscall_dup_unix.go",
],
"//conditions:default": [],
}),
@@ -28,7 +150,12 @@ go_library(
"//vendor/github.com/onsi/ginkgo/reporters:go_default_library",
"//vendor/github.com/onsi/ginkgo/reporters/stenographer:go_default_library",
"//vendor/github.com/onsi/ginkgo/types:go_default_library",
],
] + select({
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(

View File

@@ -3,10 +3,39 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"colorable_others.go",
"noncolorable.go",
] + select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:android": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:darwin": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:nacl": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:plan9": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"colorable_others.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"colorable_windows.go",
],
"//conditions:default": [],
@@ -14,7 +43,7 @@ go_library(
importpath = "github.com/onsi/ginkgo/reporters/stenographer/support/go-colorable",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty:go_default_library",
],
"//conditions:default": [],

View File

@@ -5,19 +5,37 @@ go_library(
srcs = [
"doc.go",
] + select({
"@io_bazel_rules_go//go/platform:darwin_amd64": [
"@io_bazel_rules_go//go/platform:darwin": [
"isatty_bsd.go",
],
"@io_bazel_rules_go//go/platform:linux_amd64": [
"@io_bazel_rules_go//go/platform:freebsd": [
"isatty_bsd.go",
],
"@io_bazel_rules_go//go/platform:linux": [
"isatty_linux.go",
],
"@io_bazel_rules_go//go/platform:windows_amd64": [
"@io_bazel_rules_go//go/platform:netbsd": [
"isatty_bsd.go",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"isatty_bsd.go",
],
"@io_bazel_rules_go//go/platform:solaris": [
"isatty_solaris.go",
],
"@io_bazel_rules_go//go/platform:windows": [
"isatty_windows.go",
],
"//conditions:default": [],
}),
importpath = "github.com/onsi/ginkgo/reporters/stenographer/support/go-isatty",
visibility = ["//visibility:public"],
deps = select({
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(