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.
39 lines
695 B
39 lines
695 B
4 years ago
|
load(
|
||
|
"//bazel:build_defs.bzl",
|
||
|
"UPB_DEFAULT_COPTS",
|
||
|
"UPB_DEFAULT_CPPOPTS",
|
||
|
)
|
||
|
|
||
|
cc_library(
|
||
|
name = "lupb",
|
||
|
srcs = [
|
||
|
"def.c",
|
||
|
"msg.c",
|
||
|
"upb.c",
|
||
|
],
|
||
|
hdrs = [
|
||
|
"upb.h",
|
||
|
],
|
||
|
copts = UPB_DEFAULT_COPTS,
|
||
|
visibility = ["//visibility:public"],
|
||
|
deps = [
|
||
|
"//:reflection",
|
||
|
"//:textformat",
|
||
|
"//:upb",
|
||
|
"@lua//:liblua",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
cc_binary(
|
||
|
name = "protoc-gen-lua",
|
||
|
srcs = ["upbc.cc"],
|
||
|
copts = UPB_DEFAULT_CPPOPTS,
|
||
|
visibility = ["//visibility:public"],
|
||
|
deps = [
|
||
|
"@com_google_absl//absl/strings",
|
||
|
"@com_google_protobuf//:protoc_lib",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
exports_files(["upb.lua"])
|