1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00
vcmi/configure_ios.sh
2022-09-24 15:55:23 +03:00

20 lines
594 B
Bash
Executable File

#!/usr/bin/env bash
prefixPath=~/dev/vcmi/vcmi-ios-depends/build/iphoneos
if [[ "$1" ]]; then
prefixPath=~/dev/vcmi/vcmi-ios-depends/build/iphonesimulator
fi
# -DCMAKE_OSX_SYSROOT=iphonesimulator
cmake ../vcmi -G Xcode \
-DCMAKE_SYSTEM_NAME=iOS \
-DFORCE_BUNDLED_MINIZIP=ON \
-DBUNDLE_IDENTIFIER_PREFIX=com.kambala \
-Wno-dev \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_PREFIX_PATH="$prefixPath" \
-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY='Apple Development' \
-DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM='4XHN44TEVG'
# -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED=NO