Skip to content

Commit 0cc800e

Browse files
authored
Merge pull request #229 from OpenBrickProtocolFoundation/update_ndk_to_29_beta_2
build: update the ndk version for android to 29 beta2
2 parents 98d9422 + 5d01016 commit 0cc800e

File tree

10 files changed

+44
-12
lines changed

10 files changed

+44
-12
lines changed

.github/workflows/android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Setup NDK
4848
run: |
49-
sdkmanager --install "ndk;29.0.13113456"
49+
sdkmanager --install "ndk;29.0.13599879"
5050
5151
- name: Build native libraries
5252
run: |

.github/workflows/build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,17 @@ jobs:
136136
with:
137137
msystem: ${{matrix.config.environment == 'mingw' && 'MINGW64' || 'UCRT64'}}
138138
# gcc-libs 14 don't provbide the virtual package cc-libs, only gcc-libs 15 (see https://github.com/msys2/MINGW-packages/commit/9fa882f7eb6f639780a13df016497a93e45544ac) provide it, so until we use gcc 15, nghttp3 < 1.10.1 needs to be used (see https://github.com/msys2/MINGW-packages/commit/16b7f94772f29f1c207764701d863d266a5de64c) since 1.10.1 needs cc-libs and not gcc-libs. The newest version matching that constraint is 1.9.0
139+
# for the other pavckages see https://github.com/msys2/MINGW-packages/commit/62308009e77d772a126313626b194e503b0e5135
139140
install: |
140141
nghttp3=1.9
142+
SDL2=2.32.4
143+
aom=3.12.0
144+
curl=8.13.0
145+
gnutls=3.8.8
146+
libarchive=3.7.9
147+
mpg123=1.32.9
148+
ngtcp2=1.12.0
149+
python=3.12.9-4
141150
gcc=14 gcc-libs=!
142151
143152
- name: Setup Clang (Linux) (libc++)

platforms/android/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
app/build/
33
app/.cxx
44
/local.properties
5+
build/reports/

platforms/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ android {
248248
}
249249

250250
compileSdkVersion 35
251-
ndkVersion "29.0.13113456"
251+
ndkVersion "29.0.13599879"
252252
defaultConfig {
253253
if (buildAsApplication) {
254254
applicationId "com.github.oopetris"

platforms/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
google()
77
}
88
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.9.1'
9+
classpath 'com.android.tools.build:gradle:8.10.1'
1010

1111
// NOTE: Do not place your application dependencies here; they belong
1212
// in the individual module build.gradle files
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Oct 02 13:43:32 CEST 2024
1+
#Tue Jun 10 18:14:41 CEST 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

platforms/build-3ds.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
## options: "smart, complete_rebuild"
611
export COMPILE_TYPE="smart"

platforms/build-android.sh

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
if [ ! -d "toolchains" ]; then
611
mkdir -p toolchains
712
fi
813

9-
export NDK_VER_DOWNLOAD="r29-beta1"
10-
export NDK_VER_DESC="r29-beta1"
14+
export NDK_VER_DOWNLOAD="r29-beta2"
15+
export NDK_VER_DESC="r29-beta2"
1116

1217
export BASE_PATH="$PWD/toolchains/android-ndk-$NDK_VER_DESC"
1318
export ANDROID_NDK_HOME="$BASE_PATH"
@@ -19,6 +24,7 @@ if [ ! -d "$BASE_PATH" ]; then
1924

2025
if [ ! -e "android-ndk-$NDK_VER_DOWNLOAD-linux.zip" ]; then
2126

27+
echo "Downloading android NDK $NDK_VER_DESC"
2228
wget -q "https://dl.google.com/android/repository/android-ndk-$NDK_VER_DOWNLOAD-linux.zip"
2329
fi
2430
unzip -q "android-ndk-$NDK_VER_DOWNLOAD-linux.zip"
@@ -40,7 +46,8 @@ if [ ! -e "$BASE_PATH/meta/platforms.json" ]; then
4046

4147
fi
4248

43-
export SDK_VERSION=$(jq '.max' -M -r -c "$BASE_PATH/meta/platforms.json")
49+
SDK_VERSION=$(jq '.max' -M -r -c "$BASE_PATH/meta/platforms.json")
50+
export SDK_VERSION
4451

4552
mapfile -t ARCH_KEYS < <(jq 'keys' -M -r -c "$BASE_PATH/meta/abis.json" | tr -d '[]"' | sed 's/,/\n/g')
4653

@@ -117,7 +124,7 @@ for INDEX in "${ARCH_KEYS_INDEX[@]}"; do
117124
ARM_TARGET_ARCH=$KEY
118125
ARM_TRIPLE=$ARM_NAME_TRIPLE$SDK_VERSION
119126
ARM_COMPILER_TRIPLE=$(echo "$RAW_JSON" | jq -M -r -c '."llvm_triple"')
120-
ARM_TOOL_TRIPLE=$(echo "$ARM_NAME_TRIPLE$SDK_VERSION" | sed s/$ARCH/$ARCH_VERSION/)
127+
ARM_TOOL_TRIPLE=$(echo "$ARM_NAME_TRIPLE$SDK_VERSION" | sed "s/$ARCH/$ARCH_VERSION/")
121128

122129
export SYM_LINK_PATH=sym-$ARCH_VERSION
123130

@@ -396,7 +403,7 @@ llvm-config = '$LLVM_CONFIG'
396403
c_std = 'gnu11'
397404
cpp_std = 'c++23'
398405
c_args = [$COMPILE_FLAGS]
399-
cpp_args = [$COMPILE_FLAGS]
406+
cpp_args = [$COMPILE_FLAGS]
400407
c_link_args = [$LINK_FLAGS]
401408
cpp_link_args = [$LINK_FLAGS]
402409
@@ -438,7 +445,6 @@ EOF
438445

439446
if [ "$COMPILE_TYPE" == "complete_rebuild" ] || [ ! -e "$BUILD_DIR" ]; then
440447

441-
# TODO: enbale hidapi, by not dependening on libusb, that is not availbale on android
442448
meson setup "$BUILD_DIR" \
443449
"--prefix=$SYS_ROOT" \
444450
"--wipe" \

platforms/build-switch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
## options: "smart, complete_rebuild"
611
export COMPILE_TYPE="smart"

platforms/build-web.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22

3+
# Exit immediately if a command exits with a non-zero status.
34
set -e
5+
## Treat undefined variables as an error
6+
set -u
7+
# fails if any part of a pipeline (|) fails
8+
set -o pipefail
49

510
## options: "smart, complete_rebuild"
611
export COMPILE_TYPE="smart"
@@ -44,7 +49,8 @@ if [ ! -d "toolchains" ]; then
4449
mkdir -p toolchains
4550
fi
4651

47-
export EMSCRIPTEN_ROOT="$(pwd)/toolchains/emsdk"
52+
EMSCRIPTEN_ROOT="$(pwd)/toolchains/emsdk"
53+
export EMSCRIPTEN_ROOT
4854

4955
export EMSCRIPTEN_RELEASE_TAG="4.0.8"
5056

0 commit comments

Comments
 (0)