1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5genrule { 6 name: "computepipe_grpc_graph_proto_h", 7 tools: [ 8 "aprotoc", 9 "protoc-gen-grpc-cpp-plugin", 10 ], 11 cmd: "$(location aprotoc) -I$$(dirname $(in)) -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)", 12 srcs: [ 13 "GrpcPrebuiltGraphService.proto", 14 ], 15 out: [ 16 "GrpcPrebuiltGraphService.grpc.pb.h", 17 "GrpcPrebuiltGraphService.pb.h", 18 ], 19} 20 21genrule { 22 name: "computepipe_grpc_graph_proto_cc", 23 tools: [ 24 "aprotoc", 25 "protoc-gen-grpc-cpp-plugin", 26 ], 27 cmd: "$(location aprotoc) -I$$(dirname $(in)) -Iexternal/protobuf/src --plugin=protoc-gen-grpc=$(location protoc-gen-grpc-cpp-plugin) $(in) --grpc_out=$(genDir) --cpp_out=$(genDir)", 28 srcs: [ 29 "GrpcPrebuiltGraphService.proto", 30 ], 31 out: [ 32 "GrpcPrebuiltGraphService.grpc.pb.cc", 33 "GrpcPrebuiltGraphService.pb.cc", 34 ], 35} 36 37cc_library { 38 name: "computepipe_grpc_graph_proto", 39 proto: { 40 type: "lite", 41 export_proto_headers: true, 42 }, 43 include_dirs: [ 44 "external/protobuf/src", 45 ], 46 generated_headers: [ 47 "computepipe_grpc_graph_proto_h", 48 ], 49 export_generated_headers: [ 50 "computepipe_grpc_graph_proto_h", 51 ], 52 generated_sources: [ 53 "computepipe_grpc_graph_proto_cc", 54 ], 55 cflags: [ 56 "-Wall", 57 "-Werror", 58 "-Wno-unused-parameter", 59 ], 60 host_supported: false, 61 vendor_available: true, 62 target: { 63 android: { 64 proto: { 65 type: "lite", 66 }, 67 shared_libs: [ 68 "libprotobuf-cpp-full", 69 "libgrpc++", 70 ], 71 }, 72 }, 73} 74