Commit 9e302b6b authored by Aleix Pol's avatar Aleix Pol Committed by Albert Astals Cid

CI: android: adaptations to port to new version of the sdk

parent 4fc44c01
......@@ -81,26 +81,24 @@ build_clazy:
build_android:
stage: build
image: kdeorg/android-aarch64-sdk
image: kdeorg/android-sdk
before_script:
- wget https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.xz
- tar xvfh freetype-2.10.1.tar.xz
- pushd freetype-2.10.1
- CFLAGS=-std=gnu99 /opt/helpers/build-standalone "./autogen.sh && ./configure --enable-shared=no --prefix=/opt/popplerandroid-deps --host=${ANDROID_NDK_TOOLCHAIN_PREFIX} && make -j`nproc` && make install"
- CFLAGS=-std=gnu99 STANDALONE_EXTRA="--arch arm64" /opt/helpers/build-standalone "./autogen.sh && ./configure --enable-shared=no --prefix=/opt/popplerandroid-deps --host=aarch64-linux-android && make -j`nproc` && make install"
- popd
script:
- mkdir -p build && cd build
- 'cmake -G Ninja .. -DCMAKE_SYSTEM_NAME=Android
-DCMAKE_ANDROID_STL_TYPE=c++_shared
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a
- 'ANDROID_ARCH_ABI=arm64-v8a cmake -G Ninja ..
-DCMAKE_ANDROID_API=28
-DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=clang
-DCMAKE_INSTALL_PREFIX="/opt/popplerandroid-deps"
-DCMAKE_PREFIX_PATH="$QT_ANDROID;/opt/popplerandroid-deps"
-DCMAKE_BUILD_TYPE=debug
-DCMAKE_POSITION_INDEPENDENT_CODE=OFF
-DENABLE_DCTDECODER=unmaintained
-DENABLE_LIBOPENJPEG=unmaintained'
-DENABLE_LIBOPENJPEG=unmaintained
-DCMAKE_TOOLCHAIN_FILE=/opt/nativetooling/share/ECM/toolchain/Android.cmake'
- ninja && ninja install
qt5_docs:
......
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