2018-10-03 18:18:55 +00:00
|
|
|
# gazelle:exclude validate.pb.go
|
|
|
|
|
|
|
|
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
|
|
|
load("@com_google_protobuf//:protobuf.bzl", "py_proto_library")
|
|
|
|
|
|
|
|
proto_library(
|
|
|
|
name = "validate_proto",
|
|
|
|
srcs = ["validate.proto"],
|
2019-06-07 12:10:43 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2018-10-03 18:18:55 +00:00
|
|
|
deps = [
|
|
|
|
"@com_google_protobuf//:descriptor_proto",
|
|
|
|
"@com_google_protobuf//:duration_proto",
|
|
|
|
"@com_google_protobuf//:timestamp_proto",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_proto_library(
|
|
|
|
name = "validate_cc",
|
|
|
|
deps = [":validate_proto"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
py_proto_library(
|
|
|
|
name = "validate_py",
|
|
|
|
srcs = ["validate.proto"],
|
|
|
|
protoc = "@com_google_protobuf//:protoc",
|
|
|
|
default_runtime = "@com_google_protobuf//:protobuf_python",
|
|
|
|
deps = ["@com_google_protobuf//:protobuf_python"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_proto_library(
|
|
|
|
name = "go_default_library",
|
2020-07-07 21:22:30 +00:00
|
|
|
importpath = "github.com/envoyproxy/protoc-gen-validate/validate",
|
2019-06-07 12:10:43 +00:00
|
|
|
proto = ":validate_proto",
|
2018-10-03 18:18:55 +00:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "cc_validate",
|
|
|
|
hdrs = ["validate.h"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
2019-06-07 12:10:43 +00:00
|
|
|
|
|
|
|
java_proto_library(
|
|
|
|
name = "validate_java",
|
|
|
|
deps = [":validate_proto"],
|
|
|
|
visibility=["//visibility:public"],
|
|
|
|
)
|