Commit a0e809f5 authored by Johnny's avatar Johnny Committed by relan
Browse files

bump GCompris to 2.4

parent f92228ad
Pipeline #515369412 passed with stages
in 11 minutes and 5 seconds
......@@ -647,7 +647,98 @@ Builds:
- make apk_release
ndk: r21e
- versionName: '2.4'
versionCode: 20400
commit: V2.4
submodules: true
sudo:
- apt-get update || apt-get update
- apt-get install -y -t stretch-backports-sloppy libarchive13
- apt-get install -y -t stretch-backports libncurses5
- apt-get install -y libgl1-mesa-dev g++ zlib1g-dev
output: android-build/android/GCompris-Android-release-armeabi-v7a-dl-$$VERSION$$.apk
srclibs:
- extra-cmake-modules@v5.90.0
- OpenSSL@OpenSSL_1_1_1n
rm:
- installer/dmg_DS_Store
prebuild: mkdir qt/ android-build/
build:
- $$SDK$$/tools/bin/sdkmanager 'cmake;3.18.1' > /dev/null
- export PATH="$$SDK$$/cmake/3.18.1/bin:$PATH"
- export ANDROID_NDK=$$NDK$$
- export ANDROID_NDK_ROOT=$$NDK$$
- export ANDROID_SDK_ROOT=$$SDK$$
- export QT_VERSION=5.12.9
- export PREFIX=$(pwd)/qt/install/
- export OPENSSL_LIBS=-L$PREFIX'/lib -lssl -lcrypto'
- pushd $$OpenSSL$$
- PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH ./Configure shared
android-arm -D__ANDROID_API__=16 --prefix=$PREFIX
- PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make SHLIB_VERSION_NUMBER=
SHLIB_EXT=_1_1.so build_libs install_sw
- popd
- pushd qt/
- git clone https://code.qt.io/cgit/qt/qtbase.git --single-branch --branch $QT_VERSION
- pushd qtbase
- sed -i '/<string.h>/a \#include <limits>\n\#include <algorithm>' src/corelib/global/qendian.h
- sed -i '/<QtCore\/qbytearray.h>/a \#include <limits>\n\#include <algorithm>'
src/corelib/tools/qbytearraymatcher.h
- sed -i '/<stdio.h>/a \#include <limits>\n\#include <algorithm>' src/tools/moc/generator.cpp
- ./configure -xplatform android-clang --disable-rpath -openssl-linked -nomake
tests -nomake examples -android-ndk $$NDK$$ -android-sdk $$SDK$$ -no-warnings-are-errors
-opensource -confirm-license -prefix $PREFIX -I$PREFIX/include
- make -j$(nproc)
- make install
- popd
- export CMAKE_QT_LIB=${PREFIX}/lib/cmake/
- git clone https://code.qt.io/qt/qtdeclarative.git --single-branch --branch=$QT_VERSION
- pushd qtdeclarative
- sed -i '/qv4global_p.h>/a \#include <limits>\n\#include <algorithm>\n' src/qml/jsruntime/qv4propertykey_p.h
- QMAKESPEC=android-clang $PREFIX/bin/qmake .
- make -j$(nproc)
- make install
- popd
- for module in qtquickcontrols qtsvg qtandroidextras qtgraphicaleffects qttools
qtmultimedia qtimageformats qtsensors qttranslations; do git clone https://code.qt.io/qt/${module}.git
--single-branch --branch=$QT_VERSION
- pushd ${module}
- QMAKESPEC=android-clang $PREFIX/bin/qmake .
- make -j$(nproc)
- make install
- popd; done
- popd
- mkdir $$extra-cmake-modules$$/build
- pushd $$extra-cmake-modules$$/build
- cmake -DCMAKE_INSTALL_PREFIX=. -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF
-DBUILD_TESTING=OFF ..
- make
- make install
- popd
- sed -i 's=${OPENSSL_DIR}/libcrypto.so.1.1=$$OpenSSL$$/libcrypto.so=g' android/CMakeLists.txt
- sed -i 's=${OPENSSL_DIR}/libssl.so.1.1=$$OpenSSL$$/libssl.so=g' android/CMakeLists.txt
- pushd android-build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_ANDROID_API=16 -DCMAKE_TOOLCHAIN_FILE=$$extra-cmake-modules$$/build/share/ECM/toolchain/Android.cmake
-DANDROID_ABI=armeabi-v7a -DQt5_DIR=${CMAKE_QT_LIB}/Qt5/ -DCMAKE_FIND_ROOT_PATH=${PREFIX}/lib/
-Wno-dev ../
- make getSvnTranslations
- pushd ../po
- rm -rf gcompris_ast.po gcompris_ar.po gcompris_bg.po gcompris_bs.po gcompris_da.po
gcompris_ga.po gcompris_gd.po gcompris_gl.po gcompris_hi.po gcompris_ia.po
gcompris_ja.po gcompris_ko.po gcompris_lv.po gcompris_nb.po gcompris_sk.po
gcompris_ta.po gcompris_th.po gcompris_zh_CN.po
- sed -i 's=boy"=boy "=g' gcompris_en.po
- sed -i 's=boys"=boys "=g' gcompris_en.po
- sed -i 's=girl in the center."=girl in the center. "=g' gcompris_en.po
- sed -i 's=girls in the center."=girls in the center. "=g' gcompris_en.po
- popd
- cmake -DCMAKE_TOOLCHAIN_FILE=$$extra-cmake-modules$$/build/share/ECM/toolchain/Android.cmake
../
- make
- make apk_release
ndk: r21e
AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: '2.3'
CurrentVersionCode: 20300
CurrentVersion: '2.4'
CurrentVersionCode: 20400
Supports Markdown
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