Commit 3c0d152e authored by Thibault Wittemberg's avatar Thibault Wittemberg Committed by Adrien Béraud

make-ring.py: add iOS to --dependencies target

this commit adds mandatory brew packages to build IOS client

Change-Id: I892359492183369978f39f0b403e0754413285ea
parent 582a21ae
......@@ -156,6 +156,11 @@ OSX_DEPENDENCIES_UNLINK = [
'libtool*', 'yasm*', 'automake*'
]
IOS_DEPENDENCIES = [
'autoconf', 'automake', 'cmake', 'yasm', 'libtool', 'opus',
'pkg-config', 'gettext', 'swiftlint', 'swiftgen'
]
UNINSTALL_SCRIPT = [
'make -C daemon uninstall',
'xargs rm < lrc/build-global/install_manifest.txt',
......@@ -222,6 +227,12 @@ def run_dependencies(args):
{"packages": ' '.join(OSX_DEPENDENCIES)}
)
elif args.distribution == "iOS":
execute_script(
BREW_INSTALL_SCRIPT,
{"packages": ' '.join(IOS_DEPENDENCIES)}
)
elif args.distribution == "Android":
print("The Android version does not need more dependencies.\nPlease continue with the --install instruction.")
sys.exit(1)
......@@ -376,7 +387,7 @@ def validate_args(parsed_args):
"""Validate the args values, exit if error is found"""
# Check arg values
supported_distros = ['Android', 'Ubuntu', 'Debian', 'OSX', 'Fedora', 'Arch Linux', 'openSUSE', 'Automatic', 'mingw32', 'mingw64']
supported_distros = ['Android', 'Ubuntu', 'Debian', 'OSX', 'iOS', 'Fedora', 'Arch Linux', 'openSUSE', 'Automatic', 'mingw32', 'mingw64']
if parsed_args.distribution not in supported_distros:
print('Distribution \''+parsed_args.distribution+'\' not supported.\nChoose one of: %s' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment