build-android: modernize for NDK 26 / libc++;#2021
Open
haithngn wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Android build targeted the 2016 gnustl + NDK r17 toolchain, removed in NDK r18+. Port it to libc++ / NDK 26 and adjust for modern devices so the .aar links, loads, and runs.
Build system (build-android/):
Application.mk (new): APP_STL := c++_static,APP_PLATFORM := android-23, -Wl,-z,max-page-size=16384 (16 KB-page alignment for Android 15+ / Play 2025).
Android.mk: drop gnustl includes/LDLIBS; add -DUSE_FILE32API; add a prebuilt iconv module; link order etpan sasl2 ssl crypto iconv icu4c xml2 tidy ctemplate.
build.sh: use APP_ABI/APP_PLATFORM (drop the GCC 4.9 pin); ABIs armeabi-v7a/arm64-v8a/x86 (drop removed armeabi +unsupported x86_64); stop copying libc++_shared (static libc++); pass
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 for CMake 4; extract pre-existing dep zips; rm stale .aar before re-zipping.
Replace example with Kotlin app.