about summary refs log tree commit diff stats
path: root/src/wrapped/wrappedpango.c
diff options
context:
space:
mode:
authorKreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com>2024-02-06 08:26:50 -0300
committerGitHub <noreply@github.com>2024-02-06 12:26:50 +0100
commit16423270154ab75987b05723ae45f30cdd8a0e3d (patch)
tree68a15bc90574814d89ce7e532905498f27852908 /src/wrapped/wrappedpango.c
parent399478d635c352a986aaa891ac824d840ae19e56 (diff)
downloadbox64-16423270154ab75987b05723ae45f30cdd8a0e3d.tar.gz
box64-16423270154ab75987b05723ae45f30cdd8a0e3d.zip
[ANDROID] Fix GLib and GObject Library Names (#1247)
* [ANDROID] Fix GLib and GObject Library Names

* [ANDROID] Fix gdk3, gdkpixbuf2, gio2, gmodule2, gtkx112, gdkx112, pangocairo Library Names
Diffstat (limited to 'src/wrapped/wrappedpango.c')
-rw-r--r--src/wrapped/wrappedpango.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/wrapped/wrappedpango.c b/src/wrapped/wrappedpango.c
index 438ab7d7..d5d0d3bc 100644
--- a/src/wrapped/wrappedpango.c
+++ b/src/wrapped/wrappedpango.c
@@ -17,7 +17,11 @@
 #include "box64context.h"
 #include "emu/x64emu_private.h"
 
-const char* pangoName = "libpango-1.0.so.0";
+#ifdef ANDROID
+    const char* pangoName = "libpango-1.0.so";
+#else
+    const char* pangoName = "libpango-1.0.so.0";
+#endif
 #define LIBNAME pango
 
 #include "generated/wrappedpangotypes.h"
@@ -96,9 +100,15 @@ EXPORT void my_pango_attribute_init(x64emu_t* emu, void* attr, my_PangoAttrClass
     if(box64_nogtk) \
         return -1;
 
+#ifdef ANDROID
+#define CUSTOM_INIT \
+    getMy(lib); \
+    setNeededLibs(lib, 2, "libgobject-2.0.so", "libglib-2.0.so");
+#else
 #define CUSTOM_INIT \
     getMy(lib); \
     setNeededLibs(lib, 2, "libgobject-2.0.so.0", "libglib-2.0.so.0");
+#endif
 
 #define CUSTOM_FINI \
     freeMy();