net.gcompris.full.yml 36.6 KB
Newer Older
Johnny's avatar
Johnny committed
1
2
3
Categories:
  - Science & Education
  - Games
Johnny's avatar
Johnny committed
4
License: AGPL-3.0-only
5
WebSite: https://www.gcompris.net/
Johnny's avatar
Johnny committed
6
SourceCode: https://invent.kde.org/education/gcompris.git
7
IssueTracker: https://bugs.kde.org/enter_bug.cgi?product=gcompris
Johnny's avatar
Johnny committed
8
Donate: https://gcompris.net/donate-en.html
Johnny's avatar
Johnny committed
9
10
11
12
13
14
15
16

AutoName: GCompris
Description: |-
    GCompris is a high quality educational software suite, including a large number
    of activities for children aged 2 to 10. Some of the activities are game
    orientated, but nonetheless still educational.

RepoType: git
Johnny's avatar
Johnny committed
17
Repo: https://invent.kde.org/education/gcompris.git
Johnny's avatar
Johnny committed
18
19
20
21
22
23
24

Builds:
  - versionName: '0.96'
    versionCode: 9600
    commit: V0.96
    submodules: true
    sudo:
25
      - apt-get update || apt-get update
26
      - apt-get install --yes extra-cmake-modules libncurses5 p7zip
Johnny's avatar
Johnny committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
    output: android-build/android/bin/GCompris-Android-release-armeabi-v7a-dl-$$VERSION$$.apk
    prebuild: mkdir qt/ android-build/
    scandelete:
      - installer/
    build:
      - export ANDROID_NDK=$$NDK$$
      - export ANDROID_NDK_ROOT=$$NDK$$
      - export ANDROID_SDK_ROOT=$$SDK$$
      - pushd qt/
      - for ms in qttranslations:e08e6b4db93a7b761d64d5bedbeaaf7c4c9e9f0b qttools:1afbf2026f8db7a55c5dca857c50469fdd24ca77
        qtsvg:d1287d3523773a4daf9c7af5c0c1137708614a68 qtquickcontrols2:445b1fb541479c6ad0fca349e8629549b7679ca5
        qtmultimedia:304cd3dcb3ac4cb00adf3a0e2a0c903d9eec0a69 qtimageformats:06ef7ff597d6b429fae3074e137e9a2ada779988
        qtdeclarative:857fd00eb5be840fa89632c9d45d3ed49fa089a4 qtbase:0a8186830b6a70e8962a6f1d9c632a4265af05a2
        qtgraphicaleffects:9cf881e586070dd6e8becbf34c37aa4af59fdb85 qtquickcontrols:1fabf5cdc24669b2e1298329bcb0a9108963735f
        qtsensors:3b3d8b58c19c0b23668edd1f22913850a400e9a6 qtxmlpatterns:ef88f18b5d11577cea13d298797f0de82ab99b29
        qtandroidextras:bca23aacc75ae5e509463152cd5c7722c0eae9f0; do m=${ms%:*}; s=${ms#*:};
        fn=5.9.7-0-201810181505${m}-Linux-RHEL_7_4-GCC-Android-Android_ANY-ARMv7.7z;
        wget -q https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_597/qt.qt5.597.android_armv7/$fn;
        echo "$s  $fn" | sha1sum -c
      - 7zr x $fn; done
      - export CMAKE_LIB=$(pwd)/5.9.7/android_armv7/lib/cmake/
      - export QTPREFIX=$(pwd)/5.9.7/android_armv7
      - popd
      - sed -i '/set(QT_REQUIRED_VERSION 5.12.0)/d' ./CMakeLists.txt
      - sed -i '/android-extra-plugins/d' ./android/configAndroid.json.cmake
      - sed -i 's/gcompris",/gcompris"/g' ./android/configAndroid.json.cmake
      - sed -i '/QT_LICHECK/d' $QTPREFIX/mkspecs/qconfig.pri
      - sed -i 's/Enterprise/OpenSource/g' $QTPREFIX/mkspecs/qconfig.pri
      - echo "[Paths]" > $QTPREFIX/bin/qt.conf
      - echo "Prefix = $QTPREFIX" >> $QTPREFIX/bin/qt.conf
      - pushd android-build/
      - cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake -DQt5_DIR=$CMAKE_LIB/Qt5/
        -DQt5Core_DIR=$CMAKE_LIB/Qt5Core/ -DQt5Widgets_DIR=$CMAKE_LIB/Qt5Widgets -DQt5Qml_DIR=$CMAKE_LIB/Qt5Qml
        -DQt5Gui_DIR=$CMAKE_LIB/Qt5Gui -DQt5Svg_DIR=$CMAKE_LIB/Qt5Svg -DQt5Sensors_DIR=$CMAKE_LIB/Qt5Sensors
        -DQt5AndroidExtras_DIR=$CMAKE_LIB/Qt5AndroidExtras -DQt5Xml_DIR=$CMAKE_LIB/Qt5Xml
        -DQt5LinguistTools_DIR=$CMAKE_LIB/Qt5LinguistTools -DQt5XmlPatterns_DIR=$CMAKE_LIB/Qt5XmlPatterns
        -DQt5Quick_DIR=$CMAKE_LIB/Qt5Quick -DQt5Multimedia_DIR=$CMAKE_LIB/Qt5Multimedia
        -DQt5Network_DIR=$CMAKE_LIB/Qt5Network -DACTIVATION_MODE=no -Wno-dev -DCMAKE_ANDROID_API=16
        -DCMAKE_ANDROID_NDK_TOOLCHAIN_VERSION=4.9 -DCMAKE_ANDROID_STL_TYPE=gnustl_shared
        ../
      - make getSvnTranslations
      - rm -f ../po/gcompris_ast.po ../po/gcompris_ca@valencia.po
      - cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake ../
      - make
      - make apk_release
    ndk: r12b

Johnny's avatar
Johnny committed
74
75
76
77
78
79
  - versionName: '0.97'
    versionCode: 9700
    commit: V0.97
    submodules: true
    sudo:
      - apt-get update || apt-get update
80
      - apt-get install --yes libncurses5 -t stretch-backports cmake p7zip
Johnny's avatar
Johnny committed
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
    output: android-build/android/GCompris-Android-release-armeabi-v7a-dl-$$VERSION$$.apk
    srclibs:
      - extra-cmake-modules@v5.63.0
    prebuild: mkdir qt/ android-build/
    scandelete:
      - installer/
    build:
      - export ANDROID_NDK=$$NDK$$
      - export ANDROID_NDK_ROOT=$$NDK$$
      - export ANDROID_SDK_ROOT=$$SDK$$
      - pushd qt/
      - for ms in qttranslations:7b76244fcf0a37cac82e05a959655fab6374aefd qttools:a7e99533372b1931bf176e8f35db202859bee5c4
        qtsvg:d7668e8a323f40c86707512b5da2bd58cc63a5ed qtquickcontrols2:73936b04687e01780145701767cf43629e982a81
        qtmultimedia:96a3aff7162e3bf2a18a37af07f3b513282ce1f0 qtimageformats:375306e5bd0a289922086dc95c553348de0a3bc4
        qtdeclarative:20d4bc625e6a7e3bb5e5291a048ab23b7a078934 qtbase:426de8c2299ac4080719f2420288f2d83cb15c60
        qtgraphicaleffects:f8c2b592d89a8ed66f74c221ecaa37568a606f15 qtquickcontrols:6348b43dd4c0974ddc7a7efff7226485cc8d583c
        qtsensors:152eb3a9b9f32d47f898d1eaed7e7610900af7fe qtxmlpatterns:c5050019511ff81a7ec248bf9b58e6edd91b881c
        qtandroidextras:164155b58fd6642a823f28cf0d6cb51348f666cc; do m=${ms%:*}; s=${ms#*:};
        fn=5.12.5-0-201909090517${m}-Linux-RHEL_7_4-Clang-Android-Android_ANY-ARMv7.7z;
        wget -q https://download.qt.io/online/qtsdkrepository/linux_x64/android/qt5_5125/qt.qt5.5125.android_armv7/$fn;
        echo "$s  $fn" | sha1sum -c
      - 7zr x $fn; done
      - export CMAKE_LIB=$(pwd)/5.12.5/android_armv7/lib/cmake/
      - export QTPREFIX=$(pwd)/5.12.5/android_armv7
      - popd
      - sed -i '/QT_LICHECK/d' $QTPREFIX/mkspecs/qconfig.pri
      - sed -i 's/Enterprise/OpenSource/g' $QTPREFIX/mkspecs/qconfig.pri
      - echo "[Paths]" > $QTPREFIX/bin/qt.conf
      - echo "Prefix = $QTPREFIX" >> $QTPREFIX/bin/qt.conf
      - mkdir $$extra-cmake-modules$$/build
      - pushd $$extra-cmake-modules$$/build
      - cmake -DCMAKE_INSTALL_PREFIX=. ..
      - make
      - make install
      - popd
      - pushd android-build/
      - cmake -DANDROID_PLATFORM=android-18 -DANDROID_API_LEVEL=18 -DCMAKE_TOOLCHAIN_FILE=$$extra-cmake-modules$$/build/share/ECM/toolchain/Android.cmake
        -DQt5_DIR=$CMAKE_LIB/Qt5/ -DQt5Core_DIR=$CMAKE_LIB/Qt5Core/ -DQt5Widgets_DIR=$CMAKE_LIB/Qt5Widgets
        -DQt5Qml_DIR=$CMAKE_LIB/Qt5Qml -DQt5Gui_DIR=$CMAKE_LIB/Qt5Gui -DQt5Svg_DIR=$CMAKE_LIB/Qt5Svg
        -DQt5Sensors_DIR=$CMAKE_LIB/Qt5Sensors -DQt5AndroidExtras_DIR=$CMAKE_LIB/Qt5AndroidExtras
        -DQt5Xml_DIR=$CMAKE_LIB/Qt5Xml -DQt5LinguistTools_DIR=$CMAKE_LIB/Qt5LinguistTools
        -DQt5XmlPatterns_DIR=$CMAKE_LIB/Qt5XmlPatterns -DQt5Quick_DIR=$CMAKE_LIB/Qt5Quick
        -DQt5Multimedia_DIR=$CMAKE_LIB/Qt5Multimedia -DQt5Network_DIR=$CMAKE_LIB/Qt5Network
        -DACTIVATION_MODE=no -Wno-dev ../
      - make getSvnTranslations
      - rm -f ../po/gcompris_ast.po ../po/gcompris_ca@valencia.po
      - cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake ../
      - make
      - make apk_release
    ndk: r18b

Johnny's avatar
Johnny committed
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
  - versionName: '1.0'
    versionCode: 10000
    commit: V1.0
    submodules: true
    sudo:
      - apt-get update || apt-get update
      - apt-get install -y -t stretch-backports-sloppy libarchive13
      - apt-get install --yes libncurses5 -t stretch-backports cmake
      - 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.63.0
    prebuild: mkdir qt/ android-build/
    scandelete:
      - installer/
    build:
      - 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'
      - git clone --depth 1 https://github.com/openssl/openssl.git --branch OpenSSL_1_1_1c
      - pushd openssl
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH ./Configure shared
        android-arm -D__ANDROID_API__=21 --prefix=$PREFIX
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make depend
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make build_libs
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make install_sw
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - popd
      - pushd qt/
      - git clone https://code.qt.io/cgit/qt/qtbase.git --single-branch --branch $QT_VERSION
      - pushd qtbase
      - ./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/
      - for module in qtdeclarative qtquickcontrols qtquickcontrols2 qtsvg qtandroidextras
        qtgraphicaleffects qttools qtmultimedia qtimageformats qtsensors qtxmlpatterns
        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=. ..
      - make
      - make install
      - popd
      - pushd android-build/
      - cmake -DANDROID_PLATFORM=android-18 -DANDROID_API_LEVEL=18 -DCMAKE_TOOLCHAIN_FILE=$$extra-cmake-modules$$/build/share/ECM/toolchain/Android.cmake
        -DQt5_DIR=${CMAKE_QT_LIB}/Qt5/ -DQt5Core_DIR=${CMAKE_QT_LIB}/Qt5Core/ -DQt5Widgets_DIR=${CMAKE_QT_LIB}/Qt5Widgets
        -DQt5Qml_DIR=${CMAKE_QT_LIB}/Qt5Qml -DQt5Gui_DIR=${CMAKE_QT_LIB}/Qt5Gui -DQt5Svg_DIR=${CMAKE_QT_LIB}/Qt5Svg
        -DQt5Sensors_DIR=${CMAKE_QT_LIB}/Qt5Sensors -DQt5AndroidExtras_DIR=${CMAKE_QT_LIB}/Qt5AndroidExtras
        -DQt5Xml_DIR=${CMAKE_QT_LIB}/Qt5Xml -DQt5LinguistTools_DIR=${CMAKE_QT_LIB}/Qt5LinguistTools
        -DQt5XmlPatterns_DIR=${CMAKE_QT_LIB}/Qt5XmlPatterns -DQt5Quick_DIR=${CMAKE_QT_LIB}/Qt5Quick
        -DQt5Multimedia_DIR=${CMAKE_QT_LIB}/Qt5Multimedia -DQt5Network_DIR=${CMAKE_QT_LIB}/Qt5Network
        -Wno-dev ../
      - make getSvnTranslations
      - rm -f ../po/gcompris_ast.po ../po/gcompris_ca@valencia.po
      - cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake ../
      - make
      - make apk_release
    ndk: r18b

Johnny's avatar
Johnny committed
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
  - versionName: '1.1'
    versionCode: 10100
    commit: V1.1
    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 cmake 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.63.0
    prebuild: mkdir qt/ android-build/
    scandelete:
      - installer/
    build:
      - 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'
      - git clone --depth 1 https://github.com/openssl/openssl.git --branch OpenSSL_1_1_1j
      - pushd openssl
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH ./Configure shared
        android-arm -D__ANDROID_API__=21 --prefix=$PREFIX
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make depend
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make build_libs
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make install_sw
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - popd
      - pushd qt/
      - git clone https://code.qt.io/cgit/qt/qtbase.git --single-branch --branch $QT_VERSION
      - pushd qtbase
      - ./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/
      - for module in qtdeclarative qtquickcontrols qtquickcontrols2 qtsvg qtandroidextras
        qtgraphicaleffects qttools qtmultimedia qtimageformats qtsensors qtxmlpatterns
        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=. ..
      - make
      - make install
      - popd
      - pushd android-build/
      - cmake -DANDROID_PLATFORM=android-18 -DANDROID_API_LEVEL=18 -DCMAKE_TOOLCHAIN_FILE=$$extra-cmake-modules$$/build/share/ECM/toolchain/Android.cmake
        -DQt5_DIR=${CMAKE_QT_LIB}/Qt5/ -DQt5Core_DIR=${CMAKE_QT_LIB}/Qt5Core/ -DQt5Widgets_DIR=${CMAKE_QT_LIB}/Qt5Widgets
        -DQt5Qml_DIR=${CMAKE_QT_LIB}/Qt5Qml -DQt5Gui_DIR=${CMAKE_QT_LIB}/Qt5Gui -DQt5Svg_DIR=${CMAKE_QT_LIB}/Qt5Svg
        -DQt5Sensors_DIR=${CMAKE_QT_LIB}/Qt5Sensors -DQt5AndroidExtras_DIR=${CMAKE_QT_LIB}/Qt5AndroidExtras
        -DQt5Xml_DIR=${CMAKE_QT_LIB}/Qt5Xml -DQt5LinguistTools_DIR=${CMAKE_QT_LIB}/Qt5LinguistTools
        -DQt5XmlPatterns_DIR=${CMAKE_QT_LIB}/Qt5XmlPatterns -DQt5Quick_DIR=${CMAKE_QT_LIB}/Qt5Quick
        -DQt5Multimedia_DIR=${CMAKE_QT_LIB}/Qt5Multimedia -DQt5Network_DIR=${CMAKE_QT_LIB}/Qt5Network
        -Wno-dev ../
      - make getSvnTranslations
      - cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake ../
      - make
      - make apk_release
    ndk: r18b

Johnny's avatar
Johnny committed
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
  - versionName: '2.0'
    versionCode: 20000
    commit: V2.0
    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 cmake 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.63.0
      - OpenSSL@OpenSSL_1_1_1m
    prebuild: mkdir qt/ android-build/
    scandelete:
      - installer/
    build:
      - 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__=21 --prefix=$PREFIX
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make depend
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make build_libs
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make install_sw
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - 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 -DANDROID_PLATFORM=android-21 -DANDROID_API_LEVEL=21 -DCMAKE_ANDROID_API=21
        -DCMAKE_TOOLCHAIN_FILE=$$NDK$$/build/cmake/android.toolchain.cmake -DQt5_DIR=${CMAKE_QT_LIB}/Qt5/
        -DQt5Core_DIR=${CMAKE_QT_LIB}/Qt5Core/ -DQt5Widgets_DIR=${CMAKE_QT_LIB}/Qt5Widgets
        -DQt5Qml_DIR=${CMAKE_QT_LIB}/Qt5Qml -DQt5Gui_DIR=${CMAKE_QT_LIB}/Qt5Gui -DQt5Svg_DIR=${CMAKE_QT_LIB}/Qt5Svg
        -DQt5Sensors_DIR=${CMAKE_QT_LIB}/Qt5Sensors -DQt5AndroidExtras_DIR=${CMAKE_QT_LIB}/Qt5AndroidExtras
        -DQt5LinguistTools_DIR=${CMAKE_QT_LIB}/Qt5LinguistTools -DQt5Quick_DIR=${CMAKE_QT_LIB}/Qt5Quick
        -DQt5Multimedia_DIR=${CMAKE_QT_LIB}/Qt5Multimedia -DQt5Network_DIR=${CMAKE_QT_LIB}/Qt5Network
        -Wno-dev ../
      - make getSvnTranslations
      - cmake -DCMAKE_TOOLCHAIN_FILE=/usr/share/ECM/toolchain/Android.cmake ../
      - make
      - make apk_release
    ndk: r21e

Johnny's avatar
Johnny committed
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
  - versionName: '2.1'
    versionCode: 20100
    commit: V2.1
    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 cmake 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.63.0
      - OpenSSL@OpenSSL_1_1_1m
    prebuild: mkdir qt/ android-build/
    scandelete:
      - installer/
    build:
      - 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__=21 --prefix=$PREFIX
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make depend
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make build_libs
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - PATH=$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH make install_sw
        SHLIB_VERSION_NUMBER= SHLIB_EXT=.so
      - 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 -DANDROID_PLATFORM=android-21 -DANDROID_API_LEVEL=21 -DCMAKE_ANDROID_API=21
        -DCMAKE_TOOLCHAIN_FILE=$$NDK$$/build/cmake/android.toolchain.cmake -DQt5_DIR=${CMAKE_QT_LIB}/Qt5/
        -DQt5Core_DIR=${CMAKE_QT_LIB}/Qt5Core/ -DQt5Widgets_DIR=${CMAKE_QT_LIB}/Qt5Widgets
        -DQt5Qml_DIR=${CMAKE_QT_LIB}/Qt5Qml -DQt5Gui_DIR=${CMAKE_QT_LIB}/Qt5Gui -DQt5Svg_DIR=${CMAKE_QT_LIB}/Qt5Svg
        -DQt5Sensors_DIR=${CMAKE_QT_LIB}/Qt5Sensors -DQt5AndroidExtras_DIR=${CMAKE_QT_LIB}/Qt5AndroidExtras
        -DQt5LinguistTools_DIR=${CMAKE_QT_LIB}/Qt5LinguistTools -DQt5Quick_DIR=${CMAKE_QT_LIB}/Qt5Quick
        -DQt5Multimedia_DIR=${CMAKE_QT_LIB}/Qt5Multimedia -DQt5Network_DIR=${CMAKE_QT_LIB}/Qt5Network
        -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=/usr/share/ECM/toolchain/Android.cmake ../
      - make
      - make apk_release
    ndk: r21e

Johnny's avatar
Johnny committed
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
  - versionName: 2.1.1
    versionCode: 20101
    commit: V2.1
    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_1m
    prebuild: mkdir qt/ android-build/
    scandelete:
      - installer/
    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=GCOMPRIS_VERSION ${GCOMPRIS_MAJOR_VERSION}.${GCOMPRIS_MINOR_VERSION}=GCOMPRIS_VERSION
        ${GCOMPRIS_MAJOR_VERSION}.${GCOMPRIS_MINOR_VERSION}.${GCOMPRIS_PATCH_VERSION}=g'
        CMakeLists.txt
      - sed -i 's=GCOMPRIS_PATCH_VERSION 0=GCOMPRIS_PATCH_VERSION 1=g' CMakeLists.txt
      - 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 -DANDROID_PLATFORM=android-16 -DANDROID_API_LEVEL=16
        -DCMAKE_ANDROID_API=16 -DCMAKE_TOOLCHAIN_FILE=$$extra-cmake-modules$$/build/share/ECM/toolchain/Android.cmake
        -DQt5_DIR=${CMAKE_QT_LIB}/Qt5/ -DQt5Core_DIR=${CMAKE_QT_LIB}/Qt5Core/ -DQt5Widgets_DIR=${CMAKE_QT_LIB}/Qt5Widgets
        -DQt5Qml_DIR=${CMAKE_QT_LIB}/Qt5Qml -DQt5Gui_DIR=${CMAKE_QT_LIB}/Qt5Gui -DQt5Svg_DIR=${CMAKE_QT_LIB}/Qt5Svg
        -DQt5Sensors_DIR=${CMAKE_QT_LIB}/Qt5Sensors -DQt5AndroidExtras_DIR=${CMAKE_QT_LIB}/Qt5AndroidExtras
        -DQt5LinguistTools_DIR=${CMAKE_QT_LIB}/Qt5LinguistTools -DQt5Quick_DIR=${CMAKE_QT_LIB}/Qt5Quick
        -DQt5Multimedia_DIR=${CMAKE_QT_LIB}/Qt5Multimedia -DQt5Network_DIR=${CMAKE_QT_LIB}/Qt5Network
        -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

Johnny's avatar
Johnny committed
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
  - versionName: '2.3'
    versionCode: 20300
    commit: V2.3
    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_1m
    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

Johnny's avatar
Johnny committed
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
  - 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

Johnny's avatar
Johnny committed
741
AutoUpdateMode: None
742
UpdateCheckMode: None
Johnny's avatar
Johnny committed
743
744
CurrentVersion: '2.4'
CurrentVersionCode: 20400