diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-09-25 12:37:59 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-09-25 12:40:38 +0200 |
commit | 75abbf5e3d76b8f588fb999554df1c17783e6043 (patch) | |
tree | c0ec6a371ae369e82f42b3618848f8a25d9799c4 /rules | |
parent | 5706fabb8270910188d0234c693c20b8eb82223f (diff) | |
download | justbuild-75abbf5e3d76b8f588fb999554df1c17783e6043.tar.gz |
Use pkgconfig for default proto libs
Diffstat (limited to 'rules')
-rw-r--r-- | rules/CC/proto/TARGETS | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/rules/CC/proto/TARGETS b/rules/CC/proto/TARGETS index 45ef7595..2ec60f25 100644 --- a/rules/CC/proto/TARGETS +++ b/rules/CC/proto/TARGETS @@ -1,13 +1,16 @@ { "defaults": { "type": ["CC/proto", "defaults"] , "PROTOC": ["protoc"] - , "LDFLAGS": ["-lprotobuf"] , "PATH": ["/bin", "/usr/bin"] + , "deps": ["libprotobuf"] } , "service defaults": { "type": ["CC/proto", "defaults"] , "base": ["defaults"] , "GRPC_PLUGIN": ["/usr/bin/grpc_cpp_plugin"] - , "ADD_LDFLAGS": ["-lgrpc++", "-lgrpc", "-lgpr"] + , "deps": ["libgrpc++"] } +, "libprotobuf": + {"type": ["CC/pkgconfig", "system_library"], "name": ["libprotobuf"]} +, "libgrpc++": {"type": ["CC/pkgconfig", "system_library"], "name": ["grpc++"]} } |