Android, GraalVM and iOS inputs
These properties supply SDK paths and native-image configuration to the platform build tasks. The debug tasks
write their artifacts into jvm/debug/, the release tasks into jvm/release/; an export packs the variant
matching its export type.
Android build inputs
Used by:
buildAndroidbuildAndroidRelease
The Android export tasks are compatible with configuration cache, so buildAndroid and lower-level Android packaging tasks can be run with --configuration-cache.
android.d8ToolPath
Path to the d8 executable used for dex generation, as a string.
Default:
- the
d8executable of the highest-namedbuild-toolsdirectory under$ANDROID_HOME, when one is found
1 2 3 | |
android.compileSdkDirectory
Path to the Android platform directory used for compilation, as a string.
Default:
- the highest-named directory under
$ANDROID_HOME/platformsthat contains anandroid.jar, when one is found
1 2 3 | |
android.minApiLevel
Minimum Android API level passed to d8.
Default:
24, Godot's own minimum
1 2 3 | |
GraalVM and iOS build inputs
Used by:
buildGraalNativeImagebuildGraalNativeImageReleasebuildIOSbuildIOSRelease
The desktop GraalVM and iOS export tasks are also compatible with configuration cache.
Optimization level
Debug builds (buildGraalNativeImage, buildIOS) pass native-image's quick build mode, -Ob, which shortens the image build considerably in exchange for a slower image. Release builds (buildGraalNativeImageRelease, buildIOSRelease) use the fully optimized default, -O2. This is not configurable: the release image is what ships, and debug iteration speed matters more than debug runtime speed.
graal.homeDirectory
Path to the GraalVM home directory, as a string. It is used to locate the native-image executable.
Default:
- the value of the
GRAALVM_HOMEenvironment variable, when it is set
1 2 3 | |
graal.windowsDeveloperVcVarsPath
Windows-only path to the Visual Studio VCVARS script used by native-image builds, as a string.
Default:
- the value of the
VC_VARS_PATHenvironment variable, when it is set
1 2 3 | |
graal.additionalJniConfigurationFiles
Additional JNI configuration files, resolved relative to the project's graal/ directory.
1 2 3 4 5 | |
graal.additionalReflectionConfigurationFiles
Additional reflection configuration files passed directly to native-image. Use absolute paths so they resolve regardless of the build's working directory.
1 2 3 4 5 | |
graal.additionalResourceConfigurationFiles
Additional resource configuration files passed directly to native-image. Use absolute paths so they resolve regardless of the build's working directory.
1 2 3 4 5 | |
graal.verbose
Turns on verbose mode for native-image generation.
Default:
false
1 2 3 | |
graal.strictImageHeapEnabled
Passes --strict-image-heap to native-image generation. Reflection based code might need it to build successfully, at the cost of a bigger image and a longer build time.
Default:
false
1 2 3 4 5 | |