diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-05-31 18:30:10 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-06-03 10:09:24 +0200 |
commit | 3626877554b6c567d43336ec49414cedfe487260 (patch) | |
tree | f80c51ec1867fea029b955d85e89e39017f920e3 /etc/defaults/CC/proto | |
download | hello-nix-3626877554b6c567d43336ec49414cedfe487260.tar.gz |
Initial commit
Diffstat (limited to 'etc/defaults/CC/proto')
-rw-r--r-- | etc/defaults/CC/proto/TARGETS | 70 | ||||
-rw-r--r-- | etc/defaults/CC/proto/test.TARGETS | 5 |
2 files changed, 75 insertions, 0 deletions
diff --git a/etc/defaults/CC/proto/TARGETS b/etc/defaults/CC/proto/TARGETS new file mode 100644 index 0000000..7f98293 --- /dev/null +++ b/etc/defaults/CC/proto/TARGETS @@ -0,0 +1,70 @@ +{ "defaults": + { "type": "configure" + , "target": "configure" + , "config": + {"type": "singleton_map", "key": "deps", "value": ["libprotobuf"]} + } +, "service defaults": + { "type": "configure" + , "target": "configure" + , "config": + { "type": "singleton_map" + , "key": "deps" + , "value": ["libgrpc++", "libprotobuf"] + } + } +, "configure": + { "type": "configure" + , "target": "defaults (unconfigured)" + , "arguments_config": ["TOOLCHAIN_CONFIG"] + , "config": + { "type": "let*" + , "bindings": + [ [ "proto toolchain" + , { "type": "lookup" + , "map": + { "type": "var" + , "name": "TOOLCHAIN_CONFIG" + , "default": {"type": "empty_map"} + } + , "key": "PROTO" + , "default": {"type": "empty_map"} + } + ] + , [ "PROTOC" + , { "type": "lookup" + , "map": {"type": "var", "name": "proto toolchain"} + , "key": "PROTOC" + , "default": "protoc" + } + ] + , [ "GRPC_PLUGIN" + , { "type": "lookup" + , "map": {"type": "var", "name": "proto toolchain"} + , "key": "GRPC_PLUGIN" + , "default": "grpc_cpp_plugin" + } + ] + , [ "PATH" + , { "type": "lookup" + , "map": {"type": "var", "name": "proto toolchain"} + , "key": "PATH" + , "default": [] + } + ] + ] + , "body": {"type": "env", "vars": ["PROTOC", "GRPC_PLUGIN", "PATH"]} + } + } +, "defaults (unconfigured)": + { "type": "defaults" + , "arguments_config": ["PROTOC", "GRPC_PLUGIN", "PATH", "deps"] + , "PROTOC": [{"type": "var", "name": "PROTOC"}] + , "GRPC_PLUGIN": [{"type": "var", "name": "GRPC_PLUGIN"}] + , "PATH": {"type": "var", "name": "PATH"} + , "deps": {"type": "var", "name": "deps"} + } +, "libprotobuf": + {"type": ["CC/pkgconfig", "system_library"], "name": ["protobuf"]} +, "libgrpc++": {"type": ["CC/pkgconfig", "system_library"], "name": ["grpc++"]} +} diff --git a/etc/defaults/CC/proto/test.TARGETS b/etc/defaults/CC/proto/test.TARGETS new file mode 100644 index 0000000..9f2fcae --- /dev/null +++ b/etc/defaults/CC/proto/test.TARGETS @@ -0,0 +1,5 @@ +{ "defaults": + {"type": "defaults", "base": [["@", "base", "CC/proto", "defaults"]]} +, "service defaults": + {"type": "defaults", "base": [["@", "base", "CC/proto", "defaults"]]} +} |