godotengine / godot-cpp-template

Quickstart template for GDExtension development with Godot
https://docs.godotengine.org/en/stable/tutorials/scripting/gdextension/what_is_gdextension.html
The Unlicense
145 stars 55 forks source link

mismatched paths for binaries & within .gdextension file #50

Closed Lcbx closed 2 months ago

Lcbx commented 2 months ago

Godot version

any

godot-cpp version

any

System information

any

Issue description

supersedes #38

the lib generated has this path/name : bin/{platform}/{full_libname}

it is then copied to demo as : demo/bin/{platform}/lib{full_libname} ⭢ notice the extra 'lib' suffix compared to the original lib.

meanwhile the .gdextension file expects : demo/bin/lib{full_libname} ⭢ notice the missing {platform} directory in path.

These inconsistencies make the demo nonfunctional as-is. PR #44 is the minimal change to fix this, though it would be convenient if all paths matched.

relevant code : line 79, 85, 91 of SConstruct file demo's .gdextension file