|
|
@ -22,6 +22,7 @@ load( |
|
|
|
"protobuf", |
|
|
|
"protobuf", |
|
|
|
"cc_proto_library", |
|
|
|
"cc_proto_library", |
|
|
|
"py_proto_library", |
|
|
|
"py_proto_library", |
|
|
|
|
|
|
|
"internal_gen_well_known_protos_java", |
|
|
|
"internal_protobuf_py_tests", |
|
|
|
"internal_protobuf_py_tests", |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -457,16 +458,8 @@ cc_test( |
|
|
|
################################################################################ |
|
|
|
################################################################################ |
|
|
|
# Java support |
|
|
|
# Java support |
|
|
|
################################################################################ |
|
|
|
################################################################################ |
|
|
|
genrule( |
|
|
|
internal_gen_well_known_protos_java( |
|
|
|
name = "gen_well_known_protos_java", |
|
|
|
|
|
|
|
srcs = WELL_KNOWN_PROTOS, |
|
|
|
srcs = WELL_KNOWN_PROTOS, |
|
|
|
outs = [ |
|
|
|
|
|
|
|
"wellknown.srcjar", |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
cmd = "$(location :protoc) --java_out=$(@D)/wellknown.jar" + |
|
|
|
|
|
|
|
" -Isrc $(SRCS) " + |
|
|
|
|
|
|
|
" && mv $(@D)/wellknown.jar $(@D)/wellknown.srcjar", |
|
|
|
|
|
|
|
tools = [":protoc"], |
|
|
|
|
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
java_library( |
|
|
|
java_library( |
|
|
|