|
|
|
@ -1,17 +1,20 @@ |
|
|
|
|
|
|
|
|
|
# copybara:insert_for_google3_begin |
|
|
|
|
# load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", cc_proto_library="cc_proto_library") |
|
|
|
|
# def _cc_proto_library(**kwargs): |
|
|
|
|
# cc_proto_library( |
|
|
|
|
# cc_api_version = 2, |
|
|
|
|
# **kwargs, |
|
|
|
|
# ) |
|
|
|
|
# load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", _cc_proto_library="cc_proto_library") |
|
|
|
|
# copybara:insert_end |
|
|
|
|
|
|
|
|
|
# copybara:strip_for_google3_begin |
|
|
|
|
_cc_proto_library = native.cc_proto_library |
|
|
|
|
# copybara:strip_end |
|
|
|
|
|
|
|
|
|
def proto_library(**kwargs): |
|
|
|
|
native.proto_library( |
|
|
|
|
# copybara:insert_for_google3_begin |
|
|
|
|
# cc_api_version = 2, |
|
|
|
|
# copybara:insert_end |
|
|
|
|
**kwargs, |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
def tmpl_cc_binary(name, gen, args, replacements = [], **kwargs): |
|
|
|
|
srcs = [name + ".cc"] |
|
|
|
|
native.genrule( |
|
|
|
@ -49,8 +52,8 @@ def cc_lite_proto_library(name, srcs, outs): |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
def expand_suffixes(vals, suffixes): |
|
|
|
|
ret = [] |
|
|
|
|
for val in vals: |
|
|
|
|
for suffix in suffixes: |
|
|
|
|
ret.append(val + suffix) |
|
|
|
|
return ret |
|
|
|
|
ret = [] |
|
|
|
|
for val in vals: |
|
|
|
|
for suffix in suffixes: |
|
|
|
|
ret.append(val + suffix) |
|
|
|
|
return ret |
|
|
|
|