Skip to content

Commit

Permalink
Add googleapis-grpc-cc
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Dec 25, 2024
1 parent bbd1d00 commit 0d8efa5
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 1 deletion.
14 changes: 14 additions & 0 deletions modules/googleapis-grpc-cc/0.1.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module(
name = "googleapis-grpc-cc",
version = "0.1.0",
bazel_compatibility = [">=7.2.1"],
)

bazel_dep(name = "googleapis", version = "0.0.0-20241220-5e258e33")
bazel_dep(name = "grpc", version = "1.69.0")

switched_rules = use_extension("@googleapis//private/extensions:switched_rules.bzl", "switched_rules")
switched_rules.register(
name = "cc_grpc_library",
file = "@grpc//bazel:cc_grpc_library.bzl",
)
1 change: 1 addition & 0 deletions modules/googleapis-grpc-cc/0.1.0/overlay/MODULE.bazel
9 changes: 9 additions & 0 deletions modules/googleapis-grpc-cc/0.1.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
verify_targets:
name: Empty test
platform: ubuntu2404
bazel: 8.x
build_flags:
- "--nobuild"
build_targets:
- "//..."
7 changes: 7 additions & 0 deletions modules/googleapis-grpc-cc/0.1.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"integrity": "sha256-hznHbmgfkAkjuQDJ3w73XPQh05yrtUZQxLmtGbanbYU=",
"url": "https://github.com/fmeum/bazel-central-registry/releases/download/v1.0.0/empty.zip",
"overlay": {
"MODULE.bazel": "sha256-+6YcOMfETtd1CUAzcxFHtQvJtllgUrx5kWElgP6gYOs="
}
}
16 changes: 16 additions & 0 deletions modules/googleapis-grpc-cc/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"homepage": "https://github.com/googleapis/googleapis",
"maintainers": [
{
"email": "[email protected]",
"name": "No Maintainer Specified"
}
],
"repository": [
"github:googleapis/googleapis"
],
"versions": [
"0.1.0"
],
"yanked_versions": {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# module or to None if the rule is not supported yet (some may never be).
RULE_TO_FLAVOR = {
"cc_gapic_library": None,
"cc_grpc_library": None,
"cc_grpc_library": "grpc-cc",
"cc_proto_library": "cc",
"csharp_gapic_assembly_pkg": None,
"csharp_gapic_library": None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ alias(
actual = "@googleapis//google/type:date_py_proto",
)

alias(
name = "spanner_cc_grpc",
actual = "@googleapis//google/spanner/v1:spanner_cc_grpc",
)

alias(
name = "spanner_java_grpc",
actual = "@googleapis//google/spanner/v1:spanner_java_grpc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ bazel_dep(name = "googleapis")
bazel_dep(name = "googleapis-go", version = "0.1.0")
bazel_dep(name = "googleapis-java", version = "0.1.0")
bazel_dep(name = "googleapis-python", version = "0.1.0")
bazel_dep(name = "googleapis-grpc-cc", version = "0.1.0")
bazel_dep(name = "googleapis-grpc-java", version = "0.1.0")
# Intentionally missing a dependency on googleapis-cc to test that it doesn't result in an error.

Expand Down

0 comments on commit 0d8efa5

Please sign in to comment.