1load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") 2 3config_setting( 4 name = "windows_x86_64", 5 values = {"cpu": "x64_windows"}, 6) 7 8go_library( 9 name = "go_default_library", 10 srcs = [ 11 "cases.go", 12 "executor.go", 13 "harness.go", 14 "worker.go", 15 ], 16 importpath = "github.com/envoyproxy/protoc-gen-validate/tests/harness/executor", 17 visibility = ["//visibility:private"], 18 deps = [ 19 "//tests/harness/cases:go", 20 "//tests/harness/cases/other_package:go", 21 "//tests/harness:harness_go_proto", 22 "//vendor/golang.org/x/net/context:go_default_library", 23 "@com_github_golang_protobuf//proto:go_default_library", 24 "@com_github_golang_protobuf//ptypes:go_default_library", 25 "@com_github_golang_protobuf//ptypes/duration:go_default_library", 26 "@com_github_golang_protobuf//ptypes/timestamp:go_default_library", 27 "@io_bazel_rules_go//proto/wkt:any_go_proto", 28 "@io_bazel_rules_go//proto/wkt:wrappers_go_proto", 29 ], 30) 31 32go_binary( 33 name = "executor", 34 data = ["//tests/harness/cc:cc-harness"] + select({ 35 ":windows_x86_64": [ 36 "//tests/harness/go/main:go-harness-exe", 37 "//tests/harness/gogo/main:go-harness-exe", 38 ], 39 "//conditions:default": [ 40 "//tests/harness/go/main:go-harness-bin", 41 "//tests/harness/gogo/main:go-harness-bin", 42 "//tests/harness/java:java-harness", 43 ], 44 }), 45 embed = [":go_default_library"], 46 importpath = "github.com/envoyproxy/protoc-gen-validate/tests/harness/executor", 47 visibility = ["//visibility:private"], 48) 49