mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Build cross platform desktop apps with JavaScript, HTML, and CSS. It's easier than you think. If you can build a website, you can build a desktop app. Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS. It takes care of the hard parts so you can focus on the core of your application. WWW: https://electronjs.org/
53 lines
1.2 KiB
C++
53 lines
1.2 KiB
C++
--- ui/gtk/gtk_compat.cc.orig 2025-04-06 11:53:46 UTC
|
|
+++ ui/gtk/gtk_compat.cc
|
|
@@ -62,22 +62,38 @@ void* GetLibGio() {
|
|
}
|
|
|
|
void* GetLibGio() {
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ static void* libgio = DlOpen("libgio-2.0.so");
|
|
+#else
|
|
static void* libgio = DlOpen("libgio-2.0.so.0");
|
|
+#endif
|
|
return libgio;
|
|
}
|
|
|
|
void* GetLibGdk3() {
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ static void* libgdk3 = DlOpen("libgdk-3.so");
|
|
+#else
|
|
static void* libgdk3 = DlOpen("libgdk-3.so.0");
|
|
+#endif
|
|
return libgdk3;
|
|
}
|
|
|
|
void* GetLibGtk3(bool check = true) {
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ static void* libgtk3 = DlOpen("libgtk-3.so", check);
|
|
+#else
|
|
static void* libgtk3 = DlOpen("libgtk-3.so.0", check);
|
|
+#endif
|
|
return libgtk3;
|
|
}
|
|
|
|
void* GetLibGtk4(bool check = true) {
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ static void* libgtk4 = DlOpen("libgtk-4.so", check);
|
|
+#else
|
|
static void* libgtk4 = DlOpen("libgtk-4.so.1", check);
|
|
+#endif
|
|
return libgtk4;
|
|
}
|
|
|
|
@@ -130,7 +146,11 @@ void* GetLibGdkPixbuf() {
|
|
} // namespace
|
|
|
|
void* GetLibGdkPixbuf() {
|
|
+#if BUILDFLAG(IS_BSD)
|
|
+ static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so");
|
|
+#else
|
|
static void* libgdk_pixbuf = DlOpen("libgdk_pixbuf-2.0.so.0");
|
|
+#endif
|
|
return libgdk_pixbuf;
|
|
}
|
|
|