diff options
author | jan Iversen <jan@casacondor.com> | 2019-12-16 14:44:44 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-12-18 13:29:25 +0900 |
commit | fa8c7ecc58a945ae6e6d72e0e8b239d0f11c2eb7 (patch) | |
tree | e355ba72bc345020aa3d91c98ae5d10d7062fca9 /packaging/ios/build.sh | |
parent | 543e65e9875ae17160d35d8688575eb73b54f9cd (diff) | |
download | subsurface-fa8c7ecc58a945ae6e6d72e0e8b239d0f11c2eb7.tar.gz |
build-system: iOS, change location of install-root
move from build-ios/install-root/<arch> to
SSRF_CLONE/install-root/ios/<arch>
move fat libraries, include and bin to SSRF_CLONE/install-root/ios
Call "make" and not "make qmake_all" which is just a FORCE dependency.
Signed-off-by: Jan Iversen <jani@apache.org>
Diffstat (limited to 'packaging/ios/build.sh')
-rwxr-xr-x | packaging/ios/build.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packaging/ios/build.sh b/packaging/ios/build.sh index 0d99fd590..ae687c721 100755 --- a/packaging/ios/build.sh +++ b/packaging/ios/build.sh @@ -93,7 +93,7 @@ for ARCH in $ARCHS; do echo next building for $ARCH - INSTALL_ROOT=$TOP/build-ios/install-root-$ARCH + INSTALL_ROOT=$SSRF_CLONE/install-root/ios/$ARCH mkdir -p $INSTALL_ROOT/lib $INSTALL_ROOT/bin $INSTALL_ROOT/include PKG_CONFIG_LIBDIR=$INSTALL_ROOT/lib/pkgconfig @@ -246,12 +246,12 @@ fi popd # now combine the libraries into fat libraries -rm -rf install-root -cp -a build-ios/install-root-x86_64 install-root +ARCH_ROOT=$SSRF_CLONE/install-root/ios +cp -a $ARCH_ROOT/x86_64/* $ARCH_ROOT if [ "$TARGET" = "iphoneos" ] ; then - pushd install-root/lib + pushd $ARCH_ROOT/lib for LIB in $(find . -type f -name \*.a); do - lipo ../../build-ios/install-root-armv7/lib/$LIB ../../build-ios/install-root-arm64/lib/$LIB ../../build-ios/install-root-x86_64/lib/$LIB -create -output $LIB + lipo $ARCH_ROOT/armv7/lib/$LIB $ARCH_ROOT/arm64/lib/$LIB $ARCH_ROOT/x86_64/lib/$LIB -create -output $LIB done popd fi @@ -285,6 +285,6 @@ for BUILD_NOW in $BUILD_LOOP; do ${IOS_QT}/${QT_VERSION}/ios/bin/qmake ../Subsurface-mobile.pro \ -spec macx-ios-clang CONFIG+=$TARGET CONFIG+=$TARGET2 CONFIG+=$DRCONFIG - make qmake_all + make popd done |