Skip to content

Godot-cpp compile for Android #328

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

Merged
merged 2 commits into from
Sep 21, 2019

Conversation

TGRCdev
Copy link
Contributor

@TGRCdev TGRCdev commented Sep 18, 2019

This PR adds the ability to compile for the various Android architectures using the Android NDK toolchain. The following Scons options have been added:

  • android_arch: The target Android architecture to compile for. Allowed values: armv7, arm64v8, x86, x86_64
  • android_api_level: The Android API level to target (defaults to 18 for 32-bit architectures, 21 for 64-bit)
  • ANDROID_NDK_ROOT: The path to an Android NDK installation on your machine. By default, fetches from the system's environment variables.

The only requirement is that the user download the Android NDK.

This branch has been tested on Windows, Linux and OSX using my nightly CI build of Godot's SQLite plugin. The resulting binaries were tested on a Samsung S10E.

Thank you @Jayanth-L for the original work that I built off of. Before this, I had absolutely no knowledge of the NDK toolchain, and their commit pushed me in the right direction.

@TGRCdev TGRCdev changed the title GDNative compile for Android Godot-cpp compile for Android Sep 18, 2019
@BastiaanOlij BastiaanOlij merged commit 123d9f0 into godotengine:master Sep 21, 2019
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.

3 participants