* Enable Wayland QPA plugin * Enable icon themes * Avoid regular Harfbuzz CMake find module from being used
49 lines
1.2 KiB
Diff
49 lines
1.2 KiB
Diff
From c32b8866da5b01a75b61c26a288d4c1497bd197b Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Thu, 5 Nov 2020 21:13:19 +0100
|
|
Subject: [PATCH 03/12] Fix using static PCRE2 and DBus-1
|
|
|
|
When making a static build of Qt we're using the static version of these
|
|
libraries and must define the corresponding macros.
|
|
|
|
Change-Id: I2387b79462b6d183b71f9433dd937f63fc7ef26e
|
|
---
|
|
src/corelib/text/qregularexpression.cpp | 5 +++++
|
|
src/dbus/qdbus_symbols_p.h | 4 ++++
|
|
2 files changed, 9 insertions(+)
|
|
|
|
diff --git a/src/corelib/text/qregularexpression.cpp b/src/corelib/text/qregularexpression.cpp
|
|
index 1db27fc4e4..0438d1401a 100644
|
|
--- a/src/corelib/text/qregularexpression.cpp
|
|
+++ b/src/corelib/text/qregularexpression.cpp
|
|
@@ -57,6 +57,11 @@
|
|
#endif
|
|
|
|
#define PCRE2_CODE_UNIT_WIDTH 16
|
|
+#ifdef QT_STATIC
|
|
+#define PCRE_STATIC
|
|
+#define PCRE2_STATIC
|
|
+#endif
|
|
+#define PCRE2_EXP_DECL Q_CORE_EXPORT
|
|
|
|
#include <pcre2.h>
|
|
|
|
diff --git a/src/dbus/qdbus_symbols_p.h b/src/dbus/qdbus_symbols_p.h
|
|
index accaa4f5ed..4b11c74caa 100644
|
|
--- a/src/dbus/qdbus_symbols_p.h
|
|
+++ b/src/dbus/qdbus_symbols_p.h
|
|
@@ -57,6 +57,10 @@
|
|
|
|
#ifndef QT_NO_DBUS
|
|
|
|
+#ifdef QT_STATIC
|
|
+# define DBUS_STATIC_BUILD
|
|
+#endif
|
|
+
|
|
#ifdef QT_LINKED_LIBDBUS
|
|
# include <dbus/dbus.h>
|
|
#else
|
|
--
|
|
2.36.0
|
|
|