#!/usr/bin/env bash boostPrefix=~/dev/ios/vcmi-ios-deps/Apple-Boost-BuildScript-master/build/boost/1.75.0/ios/release/prefix ffmpegDir=~/dev/ios/vcmi-ios-deps/mobile-ffmpeg-min-universal sdlLibsDir=~/dev/ios/vcmi-ios-deps/SDL2-lib srcDir="../vcmi" "${2:-cmake}" "$srcDir" -G "$1" \ -DENABLE_LAUNCHER=0 \ -Wno-dev \ -DCMAKE_TOOLCHAIN_FILE="$srcDir/ios.toolchain.cmake" \ -DPLATFORM=OS64 \ -DENABLE_BITCODE=0 \ -DCMAKE_BINARY_DIR=$(pwd) \ -DCMAKE_PREFIX_PATH="$boostPrefix;$ffmpegDir;$sdlLibsDir" \ -DSDL2_INCLUDE_DIR=~/dev/ios/vcmi-ios-deps/SDL/include \ -DSDL2_IMAGE_INCLUDE_DIR=~/dev/ios/vcmi-ios-deps/SDL_image-release-2.0.5 \ -DSDL2_MIXER_INCLUDE_DIR=~/dev/ios/vcmi-ios-deps/SDL_mixer-release-2.0.4 \ -DSDL2_TTF_INCLUDE_DIR=~/dev/ios/vcmi-ios-deps/SDL_ttf-release-2.0.15 \ -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO