Make GDNative DLLs work on UWP
This commit is contained in:
parent
abf416f922
commit
2a023a425d
5 changed files with 65 additions and 2 deletions
|
|
@ -130,6 +130,9 @@ bool GDNative::initialize() {
|
|||
// we should pass library name to dlopen(). The library name is flattened
|
||||
// during export.
|
||||
String path = lib_path.get_file();
|
||||
#elif defined(UWP_ENABLED)
|
||||
// On UWP we use a relative path from the app
|
||||
String path = lib_path.replace("res://", "");
|
||||
#else
|
||||
String path = ProjectSettings::get_singleton()->globalize_path(lib_path);
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -299,8 +299,8 @@ GDNativeLibraryEditor::GDNativeLibraryEditor() {
|
|||
NativePlatformConfig platform_uwp;
|
||||
platform_uwp.name = "Windows Universal";
|
||||
platform_uwp.entries.push_back("arm");
|
||||
platform_uwp.entries.push_back("x86");
|
||||
platform_uwp.entries.push_back("x64");
|
||||
platform_uwp.entries.push_back("32");
|
||||
platform_uwp.entries.push_back("64");
|
||||
platform_uwp.library_extension = "*.dll";
|
||||
platforms["UWP"] = platform_uwp;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue