diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-09-27 12:30:36 +0200 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-10-05 14:35:36 +0200 |
commit | 9ddac3e83c03b3e8ad1192ce41ab21a27644e9db (patch) | |
tree | bf785ff7cb2aca8a89ba5df8ea755ae2d49c3d38 | |
parent | e63fb212be7cc237cbcc32e007c502f8a0e7dab5 (diff) | |
download | justbuild-9ddac3e83c03b3e8ad1192ce41ab21a27644e9db.tar.gz |
grpc: Simplify target definition
-rw-r--r-- | etc/import/third_party/TARGETS.grpc | 115 |
1 files changed, 15 insertions, 100 deletions
diff --git a/etc/import/third_party/TARGETS.grpc b/etc/import/third_party/TARGETS.grpc index c8addd16..0eafb980 100644 --- a/etc/import/third_party/TARGETS.grpc +++ b/etc/import/third_party/TARGETS.grpc @@ -5,107 +5,22 @@ , "arguments_config": ["OS", "ARCH", "TARGET_ARCH"] , "files": { "ares_config.h": - { "type": "let*" - , "bindings": - [ [ "OS" - , { "type": "var" - , "name": "OS" - , "default": - {"type": "fail", "msg": "Required variable 'OS' is not set."} - } - ] - , [ "ARCH" - , { "type": "var" - , "name": "ARCH" - , "default": - {"type": "fail", "msg": "Required variable 'ARCH' is not set."} - } - ] - , [ "PLATFORM" - , { "type": "join" - , "separator": "_" - , "$1": - [ {"type": "var", "name": "OS"} - , { "type": "var" - , "name": "TARGET_ARCH" - , "default": {"type": "var", "name": "ARCH"} - } - ] - } - ] - ] - , "body": - { "type": "cond" - , "cond": - [ [ { "type": "or" - , "$1": - [ { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "ios_x86_64" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "ios_armv7" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "ios_armv7s" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "ios_arm64" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "tvos_x86_64" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "tvos_arm64" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "watchos_i386" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "watchos_x86_64" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "watchos_armv7k" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "watchos_arm64_32" - } - , { "type": "==" - , "$1": {"type": "var", "name": "PLATFORM"} - , "$2": "darwin_x86_64" - } - , { "type": "==" - , "$1": {"type": "var", "name": "OS"} - , "$2": "darwin" - } - ] - } - , "cares/config_darwin/ares_config.h" - ] - , [ { "type": "==" - , "$1": {"type": "var", "name": "OS"} - , "$2": "windows" - } - , "cares/config_windows/ares_config.h" - ] - , [ { "type": "==" - , "$1": {"type": "var", "name": "OS"} - , "$2": "android" - } - , "cares/config_android/ares_config.h" - ] - ] - , "default": "cares/config_linux/ares_config.h" + { "type": "case" + , "expr": + { "type": "var" + , "name": "OS" + , "default": + {"type": "fail", "msg": "Required variable 'OS' is not set."} } + , "case": + { "ios": "cares/config_darwin/ares_config.h" + , "tvos": "cares/config_darwin/ares_config.h" + , "watchos": "cares/config_darwin/ares_config.h" + , "darwin": "cares/config_darwin/ares_config.h" + , "windows": "cares/config_windows/ares_config.h" + , "android": "cares/config_android/ares_config.h" + } + , "default": "cares/config_linux/ares_config.h" } } } |