Use relative paths for the `.gdextension` file such that the extension can be placed in any folder.

pull/73/head
Lukas Tenbrink 2025-02-02 14:54:16 +01:00
parent f9a50b5ef5
commit dede668c59
1 changed files with 19 additions and 19 deletions

View File

@ -4,22 +4,22 @@ entry_symbol = "example_library_init"
compatibility_minimum = "4.1"
[libraries]
macos.debug = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_debug"
macos.release = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_release"
ios.debug = "res://bin/ios/ios.framework/libEXTENSION-NAME.ios.template_debug"
ios.release = "res://bin/ios/ios.framework/libEXTENSION-NAME.ios.template_release"
windows.debug.x86_32 = "res://bin/windows/libEXTENSION-NAME.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "res://bin/windows/libEXTENSION-NAME.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "res://bin/windows/libEXTENSION-NAME.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "res://bin/windows/libEXTENSION-NAME.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.x86_64.so"
linux.release.x86_64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.x86_64.so"
linux.debug.arm64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.arm64.so"
linux.release.arm64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.arm64.so"
linux.debug.rv64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.rv64.so"
linux.release.rv64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.rv64.so"
android.debug.x86_64 = "res://bin/android/libEXTENSION-NAME.android.template_debug.x86_64.so"
android.release.x86_64 = "res://bin/android/libEXTENSION-NAME.android.template_release.x86_64.so"
android.debug.arm64 = "res://bin/android/libEXTENSION-NAME.android.template_debug.arm64.so"
android.release.arm64 = "res://bin/android/libEXTENSION-NAME.android.template_release.arm64.so"
; Relative paths ensure that our GDExtension can be placed anywhere in the project directory.
macos.debug = "./macos/macos.framework/libEXTENSION-NAME.macos.template_debug"
macos.release = "./macos/macos.framework/libEXTENSION-NAME.macos.template_release"
ios.debug = "./ios/ios.framework/libEXTENSION-NAME.ios.template_debug"
ios.release = "./ios/ios.framework/libEXTENSION-NAME.ios.template_release"
windows.debug.x86_32 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_32.dll"
windows.release.x86_32 = "./windows/libEXTENSION-NAME.windows.template_release.x86_32.dll"
windows.debug.x86_64 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_64.dll"
windows.release.x86_64 = "./windows/libEXTENSION-NAME.windows.template_release.x86_64.dll"
linux.debug.x86_64 = "./linux/libEXTENSION-NAME.linux.template_debug.x86_64.so"
linux.release.x86_64 = "./linux/libEXTENSION-NAME.linux.template_release.x86_64.so"
linux.debug.arm64 = "./linux/libEXTENSION-NAME.linux.template_debug.arm64.so"
linux.release.arm64 = "./linux/libEXTENSION-NAME.linux.template_release.arm64.so"
linux.debug.rv64 = "./linux/libEXTENSION-NAME.linux.template_debug.rv64.so"
linux.release.rv64 = "./linux/libEXTENSION-NAME.linux.template_release.rv64.so"
android.debug.x86_64 = "./android/libEXTENSION-NAME.android.template_debug.x86_64.so"
android.release.x86_64 = "./android/libEXTENSION-NAME.android.template_release.x86_64.so"
android.debug.arm64 = "./android/libEXTENSION-NAME.android.template_debug.arm64.so"
android.release.arm64 = "./android/libEXTENSION-NAME.android.template_release.arm64.so"