Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ jobs:
run: |
# https://github.com/actions/virtual-environments/issues/5595
SDKMANAGER="${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager"
echo "y" | $SDKMANAGER "ndk;21.4.7075529"
echo "y" | $SDKMANAGER "ndk;29.0.14206865"
- name: Install tox4j dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: sudo apt-get update && sudo apt install yasm
- name: Build tox4j
if: steps.cache.outputs.cache-hit != 'true'
run: |
export ANDROID_NDK_HOME="${ANDROID_SDK_ROOT}/ndk/21.4.7075529"
export ANDROID_NDK_HOME="${ANDROID_SDK_ROOT}/ndk/29.0.14206865"
./scripts/build-all -j$(nproc)
- name: Upload tox4j
uses: actions/upload-artifact@v6
Expand Down
5 changes: 3 additions & 2 deletions scripts/android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SYSROOT := $(TOOLCHAIN)/sysroot
PREFIX := $(DESTDIR)/$(TARGET)
TOOLCHAIN_FILE := $(SRCDIR)/$(TARGET).cmake
TOOLCHAIN_CLANG_BIN := $(TOOLCHAIN)/bin/$(TARGET)$(NDK_API)
TOOLCHAIN_BIN := $(TOOLCHAIN)/bin/$(BASE_TARGET)
TOOLCHAIN_BIN := $(TOOLCHAIN)/bin/llvm
PROTOC := $(DESTDIR)/host/bin/protoc

export CC := $(TOOLCHAIN_CLANG_BIN)-clang
Expand All @@ -32,7 +32,8 @@ endif
protobuf_CONFIGURE := --prefix=$(PREFIX) --host=$(TARGET) --with-sysroot=$(SYSROOT) --disable-shared --with-protoc=$(PROTOC)
libsodium_CONFIGURE := --prefix=$(PREFIX) --host=$(TARGET) --with-sysroot=$(SYSROOT) --disable-shared
opus_CONFIGURE := --prefix=$(PREFIX) --host=$(TARGET) --with-sysroot=$(SYSROOT) --disable-shared
libvpx_CONFIGURE := --prefix=$(PREFIX) --libc=$(SYSROOT) --target=$(VPX_TARGET) --disable-examples --disable-unit-tests --enable-pic
# TODO(robinlinden): Investigate how to get neon-asm working for armv7a again.
libvpx_CONFIGURE := --prefix=$(PREFIX) --libc=$(SYSROOT) --target=$(VPX_TARGET) --disable-examples --disable-unit-tests --enable-pic --disable-neon-asm
toxcore_CONFIGURE := -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX) -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) -DANDROID_CPU_FEATURES=$(NDK_HOME)/sources/android/cpufeatures/cpu-features.c -DENABLE_STATIC=ON -DENABLE_SHARED=OFF
tox4j_CONFIGURE := -DCMAKE_INSTALL_PREFIX:PATH=$(PREFIX) -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) -DANDROID_CPU_FEATURES=$(NDK_HOME)/sources/android/cpufeatures/cpu-features.c

Expand Down
1 change: 0 additions & 1 deletion scripts/build-aarch64-linux-android
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/make -f

TARGET := aarch64-linux-android
BASE_TARGET := $(TARGET)

include scripts/common.mk

Expand Down
1 change: 0 additions & 1 deletion scripts/build-arm-linux-androideabi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/make -f

TARGET := armv7a-linux-androideabi
BASE_TARGET := arm-linux-androideabi

include scripts/common.mk

Expand Down
1 change: 0 additions & 1 deletion scripts/build-i686-linux-android
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/make -f

TARGET := i686-linux-android
BASE_TARGET := $(TARGET)

include scripts/common.mk

Expand Down
1 change: 0 additions & 1 deletion scripts/build-x86_64-linux-android
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/make -f

TARGET := x86_64-linux-android
BASE_TARGET := $(TARGET)

include scripts/common.mk

Expand Down
4 changes: 2 additions & 2 deletions scripts/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export LDFLAGS :=
export PATH := $(DESTDIR)/host/bin:$(PATH)

# Android NDK
NDK_DIR := android-ndk-r21e
NDK_PACKAGE := $(NDK_DIR)-$(shell perl -e 'print $$^O')-x86_64.zip
NDK_DIR := android-ndk-r29
NDK_PACKAGE := $(NDK_DIR)-$(shell perl -e 'print $$^O').zip
NDK_URL := http://dl.google.com/android/repository/$(NDK_PACKAGE)

NDK_COMMON_FILES := \
Expand Down
Loading