diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-07-05 10:28:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 10:28:29 +0200 |
commit | a149e412f75e9eef87e8ff54e21402f90161f65b (patch) | |
tree | 22b36e565fe883fdf51a9c83a0b57e985d27179b /modules | |
parent | a9ad1e6692af85fbe8aab36361c304b81ed376f4 (diff) | |
parent | 40f4d3cf0fea814e23de33db1f1f02ebe05292ab (diff) |
Merge pull request #24086 from RandomShaper/bundle-pck-to-executable
Enhance game export
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdnative/register_types.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/gdnative/register_types.cpp b/modules/gdnative/register_types.cpp index 55d44ceec8..6ff6262b56 100644 --- a/modules/gdnative/register_types.cpp +++ b/modules/gdnative/register_types.cpp @@ -100,6 +100,11 @@ void GDNativeExportPlugin::_export_file(const String &p_path, const String &p_ty } String entry_lib_path = config->get_value("entry", key); + if (!entry_lib_path.begins_with("res://")) { + print_line("Skipping export of out-of-project library " + entry_lib_path); + continue; + } + add_shared_object(entry_lib_path, tags); } } @@ -129,6 +134,10 @@ void GDNativeExportPlugin::_export_file(const String &p_path, const String &p_ty Vector<String> dependency_paths = config->get_value("dependencies", key); for (int i = 0; i < dependency_paths.size(); i++) { + if (!dependency_paths[i].begins_with("res://")) { + print_line("Skipping export of out-of-project library " + dependency_paths[i]); + continue; + } add_shared_object(dependency_paths[i], tags); } } |