summaryrefslogtreecommitdiff
path: root/CC/proto/TARGETS
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-04-06 18:16:50 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-04-18 12:44:10 +0200
commit48f4317f428719a55c70ac7a8a58df834418cd17 (patch)
treed0294fc933ef8b7a40bddc532cdad7eed557b5ae /CC/proto/TARGETS
parent7be3cd35b3695f7f931fdd9e3490d0be517ed0ad (diff)
downloadrules-cc-48f4317f428719a55c70ac7a8a58df834418cd17.tar.gz
rules: Support protoc/grpc_cpp_plugin from defaults
Diffstat (limited to 'CC/proto/TARGETS')
-rw-r--r--CC/proto/TARGETS13
1 files changed, 13 insertions, 0 deletions
diff --git a/CC/proto/TARGETS b/CC/proto/TARGETS
new file mode 100644
index 0000000..45ef759
--- /dev/null
+++ b/CC/proto/TARGETS
@@ -0,0 +1,13 @@
+{ "defaults":
+ { "type": ["CC/proto", "defaults"]
+ , "PROTOC": ["protoc"]
+ , "LDFLAGS": ["-lprotobuf"]
+ , "PATH": ["/bin", "/usr/bin"]
+ }
+, "service defaults":
+ { "type": ["CC/proto", "defaults"]
+ , "base": ["defaults"]
+ , "GRPC_PLUGIN": ["/usr/bin/grpc_cpp_plugin"]
+ , "ADD_LDFLAGS": ["-lgrpc++", "-lgrpc", "-lgpr"]
+ }
+}