Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
639 B
26 lines
639 B
1 month ago
|
load("@rules_python//python:defs.bzl", "py_binary")
|
||
|
load("//upb/cmake:build_defs.bzl", "staleness_test")
|
||
|
|
||
|
py_binary(
|
||
|
name = "dependencies_generator",
|
||
|
srcs = ["dependencies_generator.py"],
|
||
|
)
|
||
|
|
||
|
genrule(
|
||
|
name = "generate_dependencies",
|
||
|
srcs = ["//:MODULE.bazel"],
|
||
|
outs = ["generated-in/dependencies.cmake"],
|
||
|
cmd = "$(location :dependencies_generator) " +
|
||
|
"$(location //:MODULE.bazel) $@",
|
||
|
tools = [":dependencies_generator"],
|
||
|
)
|
||
|
|
||
|
staleness_test(
|
||
|
name = "test_dependencies_staleness",
|
||
|
outs = [
|
||
|
"dependencies.cmake",
|
||
|
],
|
||
|
generated_pattern = "generated-in/%s",
|
||
|
tags = ["manual"],
|
||
|
)
|