Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android setup: More aggressive change #3642

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

leamas
Copy link
Collaborator

@leamas leamas commented Feb 9, 2024

This is a more aggressive alternative to #3632. Key changes:

  • Move definitions from ci/build-android-armhf.sh to the toolchain file buildandroid/build-android.cmake.
  • Trust CMAKE_ANDROID_NDK rather than separate definitions for compiler, linker, sysroot, etc.
  • Change QT_ANDROID to ANDROID everywhere.

Interestingly, this setup reveals two Android build errors which are not visible in #3632 or master. Somehow, this seems more picky which then would be for the better

Alec Leamas added 8 commits February 9, 2024 11:14
Adding the official definitions for a cmake Android NDK cross build.
Overall, this should simplify things over time. Notably, it makes
the cmake ANDROID variable defined. This is the "official" way to
determine an Android build and makes it possible to detect an Android
build without resorting to the OpenCPN specific QT_ANDROID

Definitions copied form shipdriver where they have been used for long.

Merging this PR will need updating the complete Android buld chain
with similar definitions.
@leamas
Copy link
Collaborator Author

leamas commented Feb 9, 2024

The build errors are because I accidentally aborted the build. It does build by me, though

EDIT: all ok after rebuilding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant