codecat / godot-tbloader

TrenchBroom Loader for Godot 4. (Alternative to Qodot)
MIT License
232 stars 29 forks source link

Fix GDExtension format #87

Open greenfox1505 opened 10 months ago

greenfox1505 commented 10 months ago

This version of tbloader.gdextension allows TBLoader to be used in exports (debug and release):

[configuration]
entry_symbol = "tbloader_init"
compatibility_minimum = "4.1"

[libraries]
windows.release.x86_64 = "bin/tbloader.windows.x86_64.dll"
windows.debug.x86_64 = "bin/tbloader.windows.x86_64.dll"

linux.release.x86_64 = "bin/libtbloader.linux.x86_64.so"
linux.debug.x86_64 = "bin/libtbloader.linux.x86_64.so"

macos.debug.x86_64 = "bin/libtbloader.macos.universal.dylib"
macos.release.x86_64 = "bin/libtbloader.macos.universal.dylib"

You will also need to make sure map files are included in your build. I could have included a "ignore autosaves" thing, but it only saves a few megs.

codecat commented 10 months ago

Good call, thanks! I also notice in the godot-cpp example project that libraries could be included as resources too. I wonder if that's worth looking into, as well.