bazel: Integrate bazel build file generator
To generate/update BUILD.bazel files for any particular client or a batch of clients: ``` bazel run //:build_gen -- --src=google/example/library ``` PiperOrigin-RevId: 286958627
This commit is contained in:
parent
1a380ea21d
commit
46e52fd649
10
BUILD.bazel
10
BUILD.bazel
|
|
@ -1,10 +1,6 @@
|
||||||
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
|
||||||
|
|
||||||
# Target used by Cloud Build to build GAPIC libraries.
|
alias(
|
||||||
# To find all available rules, use:
|
name = "build_gen",
|
||||||
# $ grep -Er '\-(java|go|php)"'
|
actual = "@com_google_api_codegen//rules_gapic/bazel:build_file_generator",
|
||||||
pkg_tar(
|
|
||||||
name = "gapic-cloud-build",
|
|
||||||
deps = [
|
|
||||||
],
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,8 @@ rules_proto_toolchains()
|
||||||
# section
|
# section
|
||||||
http_archive(
|
http_archive(
|
||||||
name = "com_google_api_codegen",
|
name = "com_google_api_codegen",
|
||||||
strip_prefix = "gapic-generator-e4c0fcaf2b2e2016a468b341283a260581c2ee74",
|
strip_prefix = "gapic-generator-08cef92e891da35cfc49a916c302d8817c88e1f2",
|
||||||
urls = ["https://github.com/googleapis/gapic-generator/archive/e4c0fcaf2b2e2016a468b341283a260581c2ee74.zip"],
|
urls = ["https://github.com/googleapis/gapic-generator/archive/08cef92e891da35cfc49a916c302d8817c88e1f2.zip"],
|
||||||
)
|
)
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue