mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-26 20:30:10 +01:00
70 lines
1.8 KiB
Python
70 lines
1.8 KiB
Python
load("@com_google_protobuf//:protobuf.bzl", "py_proto_library")
|
|
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
|
|
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_proto_library")
|
|
load("@rules_java//java:defs.bzl", "java_proto_library")
|
|
load("@rules_proto//proto:defs.bzl", "proto_library")
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
package(
|
|
default_visibility =
|
|
["//visibility:public"],
|
|
)
|
|
|
|
proto_library(
|
|
name = "validate_proto",
|
|
srcs = ["validate.proto"],
|
|
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"],
|
|
)
|
|
|
|
py_proto_library(
|
|
name = "validate_py",
|
|
srcs = ["validate.proto"],
|
|
deps = ["@com_google_protobuf//:protobuf_python"],
|
|
)
|
|
|
|
go_proto_library(
|
|
name = "validate_go_proto",
|
|
importpath = "github.com/envoyproxy/protoc-gen-validate/validate",
|
|
proto = ":validate_proto",
|
|
)
|
|
|
|
cc_library(
|
|
name = "cc_validate",
|
|
hdrs = ["validate.h"],
|
|
)
|
|
|
|
go_library(
|
|
name = "validate_go",
|
|
embed = [":validate_go_proto"],
|
|
importpath = "github.com/envoyproxy/protoc-gen-validate/validate",
|
|
)
|
|
|
|
java_proto_library(
|
|
name = "validate_java",
|
|
deps = [":validate_proto"],
|
|
)
|
|
|
|
alias(
|
|
name = "go_default_library",
|
|
actual = ":validate_go",
|
|
deprecation = "Use :validate instead of :go_default_library. Details about the new naming convention: https://github.com/bazelbuild/bazel-gazelle/pull/863",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
# this alias allows build files generated with Gazelle in other repositories
|
|
# to find validate as an external dependency
|
|
alias(
|
|
name = "validate",
|
|
actual = ":validate_go",
|
|
visibility = ["//visibility:public"],
|
|
)
|