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 58b5e5f commit f733960
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 4 deletions.
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-OtTzO+YModGNxMzZm53YuAcqKpIRv92mY0g/xFb4Wdc="
}
}
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
6 changes: 3 additions & 3 deletions modules/googleapis/0.0.0-20241220-5e258e33/source.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"MODULE.bazel": "sha256-/97gfXIGhSSjv7u/d+olSG9KWHwPsG7H8kj7NWXXqvE=",
"extensions.bzl": "sha256-jj4EKrYrYsALa4wi11LYl7yULEWhIDr3HyKNnL6LFUE=",
"private/extensions/BUILD.bazel": "sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
"private/extensions/constants.bzl": "sha256-N3+45VEQ9zVopqZw5BwDstYukv9pILF29K4Mu9zdpH8=",
"private/extensions/constants.bzl": "sha256-q9cZgKLI4NYkskvNEJT29H4y7FN2Dfzz7Z9TVElozbk=",
"private/extensions/fail_macro.bzl": "sha256-Ux6k9i7qKn7Y0gT1LFnHZiTGuPid7m1p3PncsnK8/iU=",
"private/extensions/switched_rules.bzl": "sha256-v8KqUuRupCid/jMiny6J/qYgbP2uRORrnC9rIWOwCTE=",
"tests/bcr/.bazelrc": "sha256-hFZT+gits3VtXcUkKuh3NCEC9FgBNGuNxaOVCuOiFPk=",
"tests/bcr/BUILD.bazel": "sha256-V70eP/KkZPjN+Zu//fkuZmvg0IhUvzSMR2Iis3whacc=",
"tests/bcr/MODULE.bazel": "sha256-4s8xj9npqDzhJXi6BfQYDLhDoXwZ9cdFD4khXRvqWzs=",
"tests/bcr/BUILD.bazel": "sha256-SyxDBwLmV0c2ssGUSaHawNu8IDOXSGL/YaWsI4pnSbk=",
"tests/bcr/MODULE.bazel": "sha256-mBed9uTWcQM8aMMq9vOzprfoj6kmef5xj/Xl7PiDE6M=",
"tests/bcr/failure_test.bzl": "sha256-QV38fwhaAPQStLQr06YGR1NDE/lsgnTs4cDjR/oDpl8="
}
}

0 comments on commit f733960

Please sign in to comment.