add: termux building support - #333
Merged
Merged
Conversation
This commit brings support to Termux building by checking if `$TERMUX_VERSION` is set and then using the path's binaries for building instead or the ones provided by NDK and adapts the install[...] options when building to also support to be ran on Termux. Signed-off-by: TheSillyOk <194730369+TheSillyOk@users.noreply.github.com>
ThePedroo
self-requested a review
April 25, 2026 00:59
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Changes
Add checks for when
$TERMUX_VERSIONis set, indicating builds done on Termux, and then adding a special case to use the PATH's clang, llvm-ar and strip commands instead of the ones inside the ndk toolchain directory which cannot be used on Termux. And also adapts the install[...] commands to support being ran on Termux by not using adb to run them.Additionally it also removes the -latomic arg which causes a building error on my environment and should be fine to remove.
Why
Makes it easier to build ReZygisk on Termux, allowing more future contributions while not adding much complexity to the existing building system.
Checkmarks
Additional information
Pending merge to update submodules to fully build RZ from Termux: