50 lines
1.3 KiB
Python
50 lines
1.3 KiB
Python
# 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"],
|
|
visibility = ["//visibility:public"],
|
|
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",
|
|
importpath = "github.com/envoyproxy/protoc-gen-validate/validate",
|
|
proto = ":validate_proto",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
cc_library(
|
|
name = "cc_validate",
|
|
hdrs = ["validate.h"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
java_proto_library(
|
|
name = "validate_java",
|
|
deps = [":validate_proto"],
|
|
visibility=["//visibility:public"],
|
|
)
|