Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more precise information about library paths #9572

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions tutorials/scripting/gdextension/gdextension_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,34 +148,38 @@ Dependencies section
In this section you set the paths of the GDExtension dependencies. This is used internally to export the dependencies
when exporting your game executable. You are able to set which dependency is loaded depending on the feature flags
of the exported executable. In addition, you are able to set an optional subdirectory to move your dependencies into.
In the following example the libraries are moved into a subdirectory called ``libraries``.
If no path is supplied Godot will move the libraries into the same directory as your game executable.

.. warning::
In MacOS it is necessary to have shared libraries inside a folder called ``Frameworks`` with a directory structure
like this: ``Game.app/Contents/Frameworks``.

.. code-block:: none

[dependencies]

macos.debug = {
"res://bin/libdependency.macos.template_debug.framework" : "libraries"
"res://bin/libdependency.macos.template_debug.framework" : "Contents/Frameworks"
}
macos.release = {
"res://bin/libdependency.macos.template_release.framework" : "libraries"
"res://bin/libdependency.macos.template_release.framework" : "Contents/Frameworks"
}
windows.debug = {
"res://bin/libdependency.windows.template_debug.x86_64.dll" : "libraries",
"res://bin/libdependency.windows.template_debug.x86_32.dll" : "libraries"
"res://bin/libdependency.windows.template_debug.x86_64.dll" : "",
"res://bin/libdependency.windows.template_debug.x86_32.dll" : ""
}
windows.release = {
"res://bin/libdependency.windows.template_release.x86_64.dll" : "libraries",
"res://bin/libdependency.windows.template_release.x86_32.dll" : "libraries"
"res://bin/libdependency.windows.template_release.x86_64.dll" : "",
"res://bin/libdependency.windows.template_release.x86_32.dll" : ""
}
linux.debug = {
"res://bin/libdependency.linux.template_debug.x86_64.so" : "libraries",
"res://bin/libdependency.linux.template_debug.arm64.so" : "libraries",
"res://bin/libdependency.linux.template_debug.rv64.so" : "libraries"
"res://bin/libdependency.linux.template_debug.x86_64.so" : "",
"res://bin/libdependency.linux.template_debug.arm64.so" : "",
"res://bin/libdependency.linux.template_debug.rv64.so" : ""
}
linux.release = {
"res://bin/libdependency.linux.template_release.x86_64.so" : "libraries",
"res://bin/libdependency.linux.template_release.arm64.so" : "libraries",
"res://bin/libdependency.linux.template_release.rv64.so" : "libraries"
"res://bin/libdependency.linux.template_release.x86_64.so" : "",
"res://bin/libdependency.linux.template_release.arm64.so" : "",
"res://bin/libdependency.linux.template_release.rv64.so" : ""
}