Commit 92b3c53f authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Use separate directories for different platforms

parent 4c2458c1
Pipeline #8862 failed with stages
in 20 seconds
......@@ -9,12 +9,12 @@ fi
# Build type is one of:
# Debug, Release, RelWithDebInfo and MinSizeRel
BUILD_TYPE="${BUILD_TYPE:-Debug}"
PLATFORM="${PLATFORM:-OS64}"
PLATFORM="${PLATFORM:-SIMULATOR64}"
KAIDAN_SOURCES=$(dirname "$(greadlink -f "${0}")")/..
KIRIGAMI_BUILD=/tmp/kirigami-ios-build
QXMPP_BUILD=/tmp/qxmpp-ios-build
ZXING_BUILD=/tmp/zxing-ios-build
KIRIGAMI_BUILD=/tmp/kirigami-ios-build-$PLATFORM
QXMPP_BUILD=/tmp/qxmpp-ios-build-$PLATFORM
ZXING_BUILD=/tmp/zxing-ios-build-$PLATFORM
echo "-- Starting $BUILD_TYPE build of Kaidan --"
......@@ -50,7 +50,7 @@ echo "*****************************************"
echo "Building QXmpp"
echo "*****************************************"
{
cdnew $KAIDAN_SOURCES/3rdparty/qxmpp/build
cdnew $KAIDAN_SOURCES/3rdparty/qxmpp/build-$PLATFORM
cmake .. \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_PREFIX_PATH=$QT_IOS \
......@@ -58,7 +58,6 @@ echo "*****************************************"
-DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$QXMPP_BUILD \
-DCMAKE_TOOLCHAIN_FILE=../../ios-cmake/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM \
-DDEPLOYMENT_TARGET="10.0"\
-DPKG_CONFIG_EXECUTABLE=/usr/local/bin/pkg-config
make -j$(sysctl -n hw.logicalcpu)
make install
......@@ -72,14 +71,13 @@ echo "*****************************************"
echo "Building Kirigami"
echo "*****************************************"
{
cdnew $KAIDAN_SOURCES/3rdparty/kirigami/build
cdnew $KAIDAN_SOURCES/3rdparty/kirigami/build-$PLATFORM
cmake .. \
-DBUILD_SHARED_LIBS=OFF \
-DECM_DIR=/usr/local/share/ECM/cmake \
-DCMAKE_PREFIX_PATH=$QT_IOS \
-DECM_ADDITIONAL_FIND_ROOT_PATH=$QT_IOS \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$KIRIGAMI_BUILD \
-DDEPLOYMENT_TARGET="10.0" \
-DCMAKE_TOOLCHAIN_FILE=../../ios-cmake/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM
......@@ -100,7 +98,6 @@ echo "*****************************************"
-DECM_ADDITIONAL_FIND_ROOT_PATH=$QT_IOS \
-DBUILD_SHARED_LIBRARY=OFF \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$ZXING_BUILD \
-DDEPLOYMENT_TARGET="10.0" \
-DCMAKE_TOOLCHAIN_FILE=../../ios-cmake/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM
......@@ -148,7 +145,7 @@ echo "*****************************************"
echo "Building Kaidan"
echo "*****************************************"
{
cdnew $KAIDAN_SOURCES/build
cdnew $KAIDAN_SOURCES/build-$PLATFORM
cmake .. \
-GXcode \
-DPERL_EXECUTABLE=/usr/bin/perl \
......@@ -161,7 +158,6 @@ cdnew $KAIDAN_SOURCES/build
-DCMAKE_TOOLCHAIN_FILE=../3rdparty/ios-cmake/ios.toolchain.cmake \
-DPKG_CONFIG_EXECUTABLE=/usr/local/bin/pkg-config \
-DPLATFORM=$PLATFORM \
-DDEPLOYMENT_TARGET="10.0" \
-DARCH="arm64" \
-DUSE_KNOTIFICATIONS=0
......
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