The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#) https://grpc.io/
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.
 
 
 
 
 
 

42 lines
1.0 KiB

# TODO(rbellevi): Fix this wide-open visibility.
package(default_visibility = ["//visibility:public"])
load("//bazel:cython_library.bzl", "pyx_library")
NON_BAZEL_ROOT = "../"
cc_library(
# TODO: Better name?
name = "protoc_lib",
srcs = ["main.cc"],
hdrs = ["main.h"],
deps = [
"@com_google_protobuf//:protoc_lib",
# I really wish there were a disaggregated target to use here.
"//src/compiler:grpc_plugin_support",
],
includes = [NON_BAZEL_ROOT],
)
pyx_library(
name = "cyprotoc",
srcs = ["_protoc_compiler.pyx"],
deps = [":protoc_lib"],
includes = [NON_BAZEL_ROOT],
)
py_library(
name = "grpc_tools",
srcs = ["__init__.py", "protoc.py"],
deps = [":cyprotoc"],
# TODO: Think about whether we should include well-known protos.
srcs_version = "PY2AND3",
imports = [NON_BAZEL_ROOT],
)
py_test(
name = "protoc_test",
srcs = ["protoc_test.py"],
deps = ["//tools/distrib/python/grpcio_tools/grpc_tools:grpc_tools"],
python_version = "PY3",
)