diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2023-05-09 15:21:04 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2023-05-30 10:40:47 +0200 |
commit | a6723d84f91cc3b9fd15c51c24543d492db68645 (patch) | |
tree | ddfed2d498e2d26993902f6cd942b07725365a64 | |
parent | dc2cc2d18381ab7bbef5bbce17736f5252b5da6c (diff) | |
download | justbuild-a6723d84f91cc3b9fd15c51c24543d492db68645.tar.gz |
imports: Compose toolchain via install-with-deps
... as they could contain run-libs.
-rw-r--r-- | etc/defaults/CC/proto/TARGETS.just | 4 | ||||
-rw-r--r-- | etc/import.pkgconfig/TARGETS.grpc | 1 | ||||
-rw-r--r-- | etc/import/TARGETS.grpc | 4 | ||||
-rw-r--r-- | etc/import/TARGETS.protobuf | 5 |
4 files changed, 10 insertions, 4 deletions
diff --git a/etc/defaults/CC/proto/TARGETS.just b/etc/defaults/CC/proto/TARGETS.just index 95ae1b00..4f6db7bf 100644 --- a/etc/defaults/CC/proto/TARGETS.just +++ b/etc/defaults/CC/proto/TARGETS.just @@ -7,8 +7,8 @@ , "service defaults": { "type": ["CC/proto", "defaults"] , "base": ["defaults"] - , "GRPC_PLUGIN": ["grpc_cpp_plugin"] + , "GRPC_PLUGIN": ["bin/grpc_cpp_plugin"] , "deps": [["@", "grpc", "", "grpc++"]] - , "toolchain": [["@", "grpc", "", "grpc_cpp_plugin"]] + , "toolchain": [["@", "grpc", "", "toolchain"]] } } diff --git a/etc/import.pkgconfig/TARGETS.grpc b/etc/import.pkgconfig/TARGETS.grpc index eb5bca6e..bb2518bf 100644 --- a/etc/import.pkgconfig/TARGETS.grpc +++ b/etc/import.pkgconfig/TARGETS.grpc @@ -7,4 +7,5 @@ {"type": ["@", "rules", "CC/pkgconfig", "system_library"], "name": ["grpc"]} , "gpr": {"type": ["@", "rules", "CC/pkgconfig", "system_library"], "name": ["gpr"]} +, "toolchain": {"type": "install", "deps": ["bin/grpc_cpp_plugin"]} } diff --git a/etc/import/TARGETS.grpc b/etc/import/TARGETS.grpc index d23ad660..627f8fd4 100644 --- a/etc/import/TARGETS.grpc +++ b/etc/import/TARGETS.grpc @@ -2281,4 +2281,8 @@ , "PKG_CONFIG_ARGS" ] } +, "toolchain": + { "type": ["@", "rules", "CC", "install-with-deps"] + , "targets": ["grpc_cpp_plugin"] + } } diff --git a/etc/import/TARGETS.protobuf b/etc/import/TARGETS.protobuf index 3c7da355..6492a383 100644 --- a/etc/import/TARGETS.protobuf +++ b/etc/import/TARGETS.protobuf @@ -89,10 +89,11 @@ , "PKG_CONFIG_ARGS" ] } +, "installed protoc": + {"type": ["@", "rules", "CC", "install-with-deps"], "targets": ["protoc"]} , "toolchain_headers": {"type": "install", "deps": ["libprotobuf"]} , "toolchain": { "type": "install" - , "files": {"bin/protoc": "protoc"} - , "dirs": [["toolchain_headers", "include"]] + , "dirs": [["installed protoc", "."], ["toolchain_headers", "include"]] } } |