aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/ios_app_settings.py
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
committeralexv-smirnov <alex@ydb.tech>2023-06-13 11:05:01 +0300
commitbf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0 (patch)
tree1d1df72c0541a59a81439842f46d95396d3e7189 /build/plugins/ios_app_settings.py
parent8bfdfa9a9bd19bddbc58d888e180fbd1218681be (diff)
downloadydb-bf0f13dd39ee3e65092ba3572bb5b1fcd125dcd0.tar.gz
add ymake export to ydb
Diffstat (limited to 'build/plugins/ios_app_settings.py')
-rw-r--r--build/plugins/ios_app_settings.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/build/plugins/ios_app_settings.py b/build/plugins/ios_app_settings.py
new file mode 100644
index 0000000000..0d5b233eea
--- /dev/null
+++ b/build/plugins/ios_app_settings.py
@@ -0,0 +1,17 @@
+import _common as common
+import ymake
+import os
+
+
+def onios_app_settings(unit, *args):
+ tail, kv = common.sort_by_keywords({'OS_VERSION': 1, 'DEVICES': -1}, args)
+ if tail:
+ ymake.report_configure_error('Bad IOS_COMMON_SETTINGS usage - unknown data: ' + str(tail))
+ if kv.get('OS_VERSION', []):
+ unit.onios_app_common_flags(['--minimum-deployment-target', kv.get('OS_VERSION', [])[0]])
+ unit.onios_app_assets_flags(['--filter-for-device-os-version', kv.get('OS_VERSION', [])[0]])
+ devices_flags = []
+ for device in kv.get('DEVICES', []):
+ devices_flags += ['--target-device', device]
+ if devices_flags:
+ unit.onios_app_common_flags(devices_flags)