Skip to content

Commit

Permalink
more changes for pipeline linter
Browse files Browse the repository at this point in the history
  • Loading branch information
TCROC committed Jun 27, 2024
1 parent 080341e commit 82805ed
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/toolchain/export-android.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@
NOTE: Keep track of where you install the Android Command Line Tools and JDK 17

Exporting with gdext for Godot requires some of the same pieces that are required for building Godot from source.
Specifically, the Android SDK Command Line Tools and JDK 17 as mentioned in Godot's documentation [here]
(https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html#requirements)
Specifically, the Android SDK Command Line Tools and JDK 17 as mentioned in Godot's documentation
[here](https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html#requirements)

Once you have those installed, you then need to follow Godot's instructions for setting up the build system [here]
(https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html#setting-up-the-buildsystem)
Once you have those installed, you then need to follow Godot's instructions for setting up the build system
[here](https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html#setting-up-the-buildsystem)

As of writing this, it is not entirely clear if JDK 17 is required in order for Android Command Line Tools to function properly.
It has not been not tested without it. To be safe, it is included in the documentation for now.


## Compiling

The environment variable `CLANG_PATH` is used by bindgen's clang-sys dependency. See also [clang-sys documentation]
(https://github.com/KyleMayes/clang-sys?tab=readme-ov-file#environment-variables)
The environment variable `CLANG_PATH` is used by bindgen's clang-sys dependency. See also
[clang-sys documentation](https://github.com/KyleMayes/clang-sys?tab=readme-ov-file#environment-variables)

Set the environment variable `CLANG_PATH` to point to Android's build of clang. Example:

Expand Down Expand Up @@ -72,8 +73,8 @@ Android target as of the writing of this.
Assuming 2 things:

1. Android CLI is installed in the `$HOME` folder.
2. Godot is still relying on Android ndk version: 23.2.8568313. Check [here]
(https://github.com/godotengine/godot/blob/4a0160241fd0c1e874e297f6b08676cf0761e5e8/platform/android/java/app/config.gradle#L14).
2. Godot is still relying on Android ndk version: 23.2.8568313. Check
[here](https://github.com/godotengine/godot/blob/4a0160241fd0c1e874e297f6b08676cf0761e5e8/platform/android/java/app/config.gradle#L14).
3. The downloaded Android CLI version is: 11076708_latest (update this to be the version you downloaded).
4. This is being ran on linux. Change the `linux-x86_64` folder in `CLANG_PATH` and `CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER`
to be your host machine's operating system.
Expand Down

0 comments on commit 82805ed

Please sign in to comment.