Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

.NET: Exclude `.a` files from Android exports

Raul Santosde392ca3382c
diff --git a/modules/mono/editor/GodotTools/GodotTools/Export/ExportPlugin.cs b/modules/mono/editor/GodotTools/GodotTools/Export/ExportPlugin.cs
index fc38b6ab9dc..a9837031040 100644
--- a/modules/mono/editor/GodotTools/GodotTools/Export/ExportPlugin.cs
+++ b/modules/mono/editor/GodotTools/GodotTools/Export/ExportPlugin.cs
@@ -365,6 +365,12 @@ namespace GodotTools.Export
path = newPath;
}
+ if (fileName.EndsWith(".a"))
+ {
+ // Don't export static libraries for Android.
+ return;
+ }
+
AddSharedObject(path, tags: new string[] { arch },
Path.Join(projectDataDirName,
Path.GetRelativePath(publishOutputDir,