summaryrefslogtreecommitdiff
path: root/etc/defaults/CC/proto/TARGETS
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-05-31 18:30:10 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-06-03 10:09:24 +0200
commit3626877554b6c567d43336ec49414cedfe487260 (patch)
treef80c51ec1867fea029b955d85e89e39017f920e3 /etc/defaults/CC/proto/TARGETS
downloadhello-nix-3626877554b6c567d43336ec49414cedfe487260.tar.gz
Initial commit
Diffstat (limited to 'etc/defaults/CC/proto/TARGETS')
-rw-r--r--etc/defaults/CC/proto/TARGETS70
1 files changed, 70 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++"]}
+}