diff options
author | Fredia Huya-Kouadio <fhuya@meta.com> | 2023-09-05 23:46:18 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuya@meta.com> | 2023-09-05 23:46:18 -0700 |
commit | 7ea3c406a6ea5d08fa69b71ba7b4a357c9211366 (patch) | |
tree | fcf50811a2cfcc933bfe5f7efcac38d090105f2f | |
parent | d2ab505421d02d862a7c370290a2e8cac7cd451a (diff) | |
download | godot-android-samples-7ea3c406a6ea5d08fa69b71ba7b4a357c9211366.tar.gz godot-android-samples-7ea3c406a6ea5d08fa69b71ba7b4a357c9211366.tar.bz2 godot-android-samples-7ea3c406a6ea5d08fa69b71ba7b4a357c9211366.zip |
Update the godot android library dependency now that PR refactoring the plugin logic is merged in `main`
-rw-r--r-- | config.gradle | 2 | ||||
-rw-r--r-- | plugins/hello_gdextension/README.md | 4 | ||||
-rw-r--r-- | plugins/hello_gdextension/src/main/java/fhuyakou/godot/plugin/android/hellogdextension/HelloGDExtensionPlugin.kt | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/config.gradle b/config.gradle index 5249c4b..8ce0343 100644 --- a/config.gradle +++ b/config.gradle @@ -1,4 +1,4 @@ -final snapshotGodotAndroidLib = "io.github.m4gr3d:godot:4.2.0.dev-SNAPSHOT" +final snapshotGodotAndroidLib = "org.godotengine:godot:4.2.0.dev-SNAPSHOT" final stableGodotAndroidLib = "org.godotengine:godot:4.1.0.stable" ext { diff --git a/plugins/hello_gdextension/README.md b/plugins/hello_gdextension/README.md index c7bd3aa..d3742fe 100644 --- a/plugins/hello_gdextension/README.md +++ b/plugins/hello_gdextension/README.md @@ -20,7 +20,9 @@ git submodule update --init ### Building the C++ bindings -To generate and compile the C++ bindings, use the following commands: +To generate and compile the C++ bindings, use the following commands. To speed up compilation, +add `-jN` at the end of the SCons command line where `N` is the number of CPU threads you have +on your system. The example below uses 4 threads. ``` cd Godot-Android-Samples/plugins/hello_gdextension/godot-cpp diff --git a/plugins/hello_gdextension/src/main/java/fhuyakou/godot/plugin/android/hellogdextension/HelloGDExtensionPlugin.kt b/plugins/hello_gdextension/src/main/java/fhuyakou/godot/plugin/android/hellogdextension/HelloGDExtensionPlugin.kt index 85a28ab..ed220ca 100644 --- a/plugins/hello_gdextension/src/main/java/fhuyakou/godot/plugin/android/hellogdextension/HelloGDExtensionPlugin.kt +++ b/plugins/hello_gdextension/src/main/java/fhuyakou/godot/plugin/android/hellogdextension/HelloGDExtensionPlugin.kt @@ -40,7 +40,7 @@ class HelloGDExtensionPlugin(godot: Godot) : GodotPlugin(godot) { override fun getPluginName() = "HelloGDExtension" - override fun getPluginGDExtensionModulesPaths() = setOf("res://addons/hello_gdextension_plugin/hello_gdextension.gdextension") + override fun getPluginGDExtensionLibrariesPaths() = setOf("res://addons/hello_gdextension_plugin/hello_gdextension.gdextension") private external fun nativeAddGDExampleNode(parentNodePath: String) |