Commit 8315a123 authored by Aleix Pol's avatar Aleix Pol

Include an Android CI

It uses the following image:
https://phabricator.kde.org/source/sysadmin-ci-tooling/browse/master/system-images/android/sdk/Dockerfile-clang

The one we are using now as kdeorg/android-sdk is still using GCC which
can't compile poppler master (it can compile last stable version, but
new features are used now and it can't cope).
KDE will start using this clang version when Qt 5.12 releases and we
know there's no major regressions, but poppler can already start doing
so now.

It only checks that poppler builds correctly, doesn't execute anything.
parent 709f2e8d
......@@ -82,3 +82,26 @@ build_clazy:
- mkdir -p build && cd build
- CC=clang CXX=clazy CXXFLAGS="-Werror -Wno-cast-align -Wno-deprecated-declarations" cmake -G Ninja ..
- CLAZY_CHECKS="level0,level1,level2,isempty-vs-count,qhash-with-char-pointer-key,tr-non-literal,no-non-pod-global-static" ninja
build_android:
stage: build
image: apol/asdk:clang
before_script:
- git clone https://git.savannah.gnu.org/git/freetype/freetype2.git --single-branch -b VER-2-8-1
- pushd freetype2
- ANDROID_NDK_TOOLCHAIN_PREFIX=arm-linux-androideabi CFLAGS=-std=gnu99 /opt/helpers/build-standalone "./autogen.sh && ./configure --prefix=/opt/popplerandroid-deps --host=${ANDROID_NDK_TOOLCHAIN_PREFIX} && 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_API=24
-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_CPP=OFF'
- ninja && ninja install
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