Skip to content

Commit dede668

Browse files
committed
Use relative paths for the .gdextension file such that the extension can be placed in any folder.
1 parent f9a50b5 commit dede668

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

demo/bin/example.gdextension

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ entry_symbol = "example_library_init"
44
compatibility_minimum = "4.1"
55

66
[libraries]
7-
8-
macos.debug = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_debug"
9-
macos.release = "res://bin/macos/macos.framework/libEXTENSION-NAME.macos.template_release"
10-
ios.debug = "res://bin/ios/ios.framework/libEXTENSION-NAME.ios.template_debug"
11-
ios.release = "res://bin/ios/ios.framework/libEXTENSION-NAME.ios.template_release"
12-
windows.debug.x86_32 = "res://bin/windows/libEXTENSION-NAME.windows.template_debug.x86_32.dll"
13-
windows.release.x86_32 = "res://bin/windows/libEXTENSION-NAME.windows.template_release.x86_32.dll"
14-
windows.debug.x86_64 = "res://bin/windows/libEXTENSION-NAME.windows.template_debug.x86_64.dll"
15-
windows.release.x86_64 = "res://bin/windows/libEXTENSION-NAME.windows.template_release.x86_64.dll"
16-
linux.debug.x86_64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.x86_64.so"
17-
linux.release.x86_64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.x86_64.so"
18-
linux.debug.arm64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.arm64.so"
19-
linux.release.arm64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.arm64.so"
20-
linux.debug.rv64 = "res://bin/linux/libEXTENSION-NAME.linux.template_debug.rv64.so"
21-
linux.release.rv64 = "res://bin/linux/libEXTENSION-NAME.linux.template_release.rv64.so"
22-
android.debug.x86_64 = "res://bin/android/libEXTENSION-NAME.android.template_debug.x86_64.so"
23-
android.release.x86_64 = "res://bin/android/libEXTENSION-NAME.android.template_release.x86_64.so"
24-
android.debug.arm64 = "res://bin/android/libEXTENSION-NAME.android.template_debug.arm64.so"
25-
android.release.arm64 = "res://bin/android/libEXTENSION-NAME.android.template_release.arm64.so"
7+
; Relative paths ensure that our GDExtension can be placed anywhere in the project directory.
8+
macos.debug = "./macos/macos.framework/libEXTENSION-NAME.macos.template_debug"
9+
macos.release = "./macos/macos.framework/libEXTENSION-NAME.macos.template_release"
10+
ios.debug = "./ios/ios.framework/libEXTENSION-NAME.ios.template_debug"
11+
ios.release = "./ios/ios.framework/libEXTENSION-NAME.ios.template_release"
12+
windows.debug.x86_32 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_32.dll"
13+
windows.release.x86_32 = "./windows/libEXTENSION-NAME.windows.template_release.x86_32.dll"
14+
windows.debug.x86_64 = "./windows/libEXTENSION-NAME.windows.template_debug.x86_64.dll"
15+
windows.release.x86_64 = "./windows/libEXTENSION-NAME.windows.template_release.x86_64.dll"
16+
linux.debug.x86_64 = "./linux/libEXTENSION-NAME.linux.template_debug.x86_64.so"
17+
linux.release.x86_64 = "./linux/libEXTENSION-NAME.linux.template_release.x86_64.so"
18+
linux.debug.arm64 = "./linux/libEXTENSION-NAME.linux.template_debug.arm64.so"
19+
linux.release.arm64 = "./linux/libEXTENSION-NAME.linux.template_release.arm64.so"
20+
linux.debug.rv64 = "./linux/libEXTENSION-NAME.linux.template_debug.rv64.so"
21+
linux.release.rv64 = "./linux/libEXTENSION-NAME.linux.template_release.rv64.so"
22+
android.debug.x86_64 = "./android/libEXTENSION-NAME.android.template_debug.x86_64.so"
23+
android.release.x86_64 = "./android/libEXTENSION-NAME.android.template_release.x86_64.so"
24+
android.debug.arm64 = "./android/libEXTENSION-NAME.android.template_debug.arm64.so"
25+
android.release.arm64 = "./android/libEXTENSION-NAME.android.template_release.arm64.so"

0 commit comments

Comments
 (0)