genode/repos/libports/src/lib/qt5/patches/qt5_qtbase_qconfig.patch

247 lines
7.0 KiB
Diff

qt5_qtbase_qconfig.patch
From: Christian Prochaska <christian.prochaska@genode-labs.com>
---
qtbase/src/corelib/global/qconfig.cpp | 39 +++++++
qtbase/src/corelib/global/qconfig.h | 183 +++++++++++++++++++++++++++++++++
2 files changed, 222 insertions(+)
create mode 100644 qtbase/src/corelib/global/qconfig.cpp
create mode 100644 qtbase/src/corelib/global/qconfig.h
diff --git a/qtbase/src/corelib/global/qconfig.cpp b/qtbase/src/corelib/global/qconfig.cpp
new file mode 100644
index 0000000..15523a3
--- /dev/null
+++ b/qtbase/src/corelib/global/qconfig.cpp
@@ -0,0 +1,39 @@
+/* License Info */
+static const char qt_configure_licensee_str [256 + 12] = "qt_lcnsuser=Open Source";
+static const char qt_configure_licensed_products_str [256 + 12] = "qt_lcnsprod=OpenSource";
+
+/* Installation date */
+static const char qt_configure_installation [12+11] = "qt_instdate=2013-05-23";
+
+/* Installation Info */
+static const char qt_configure_prefix_path_strs[][256 + 12] = {
+ "qt_prfxpath=/qt",
+ "qt_docspath=/qt/doc",
+ "qt_hdrspath=/qt/include",
+ "qt_libspath=/qt/lib",
+ "qt_lbexpath=/qt/libexec",
+ "qt_binspath=/qt/bin",
+ "qt_plugpath=/qt/plugins",
+ "qt_impspath=/qt/imports",
+ "qt_qml2path=/qt/qml",
+ "qt_adatpath=/qt",
+ "qt_datapath=/qt",
+ "qt_trnspath=/qt/translations",
+ "qt_xmplpath=/qt/examples",
+ "qt_tstspath=/qt/tests",
+#ifdef QT_BUILD_QMAKE
+ "qt_ssrtpath=",
+ "qt_hpfxpath=/qt",
+ "qt_hbinpath=/qt/bin",
+ "qt_hdatpath=/qt",
+ "qt_targspec=genode-g++",
+ "qt_hostspec=linux-g++",
+#endif
+};
+static const char qt_configure_settings_path_str[256 + 12] = "qt_stngpath=/qt/etc/xdg";
+
+/* strlen( "qt_lcnsxxxx" ) == 12 */
+#define QT_CONFIGURE_LICENSEE qt_configure_licensee_str + 12;
+#define QT_CONFIGURE_LICENSED_PRODUCTS qt_configure_licensed_products_str + 12;
+
+#define QT_CONFIGURE_SETTINGS_PATH qt_configure_settings_path_str + 12;
diff --git a/qtbase/src/corelib/global/qconfig.h b/qtbase/src/corelib/global/qconfig.h
new file mode 100644
index 0000000..bcf7dc1
--- /dev/null
+++ b/qtbase/src/corelib/global/qconfig.h
@@ -0,0 +1,183 @@
+#ifndef QT_BOOTSTRAPPED
+#include "qconfig-genode.h"
+#endif
+
+/* Qt Edition */
+#ifndef QT_EDITION
+# define QT_EDITION QT_EDITION_OPENSOURCE
+#endif
+
+/* Compile time features */
+#ifdef QT_ARCH_X86_64
+# define QT_POINTER_SIZE 8
+#endif
+#ifdef QT_ARCH_I386
+# define QT_POINTER_SIZE 4
+#endif
+
+//#define QT_REDUCE_RELOCATIONS
+
+// Compiler sub-arch support
+
+#if defined(QT_BUILTIN_GIF_READER) && defined(QT_NO_BUILTIN_GIF_READER)
+# undef QT_BUILTIN_GIF_READER
+#elif !defined(QT_BUILTIN_GIF_READER) && !defined(QT_NO_BUILTIN_GIF_READER)
+# define QT_BUILTIN_GIF_READER 1
+#endif
+
+#if defined(QT_LINKED_OPENSSL) && defined(QT_NO_LINKED_OPENSSL)
+# undef QT_LINKED_OPENSSL
+#elif !defined(QT_LINKED_OPENSSL) && !defined(QT_NO_LINKED_OPENSSL)
+# define QT_LINKED_OPENSSL
+#endif
+
+#if defined(QT_NO_ACCESSIBILITY) && defined(QT_ACCESSIBILITY)
+# undef QT_NO_ACCESSIBILITY
+#elif !defined(QT_NO_ACCESSIBILITY) && !defined(QT_ACCESSIBILITY)
+# define QT_NO_ACCESSIBILITY
+#endif
+
+#if defined(QT_NO_CLOCK_MONOTONIC) && defined(QT_CLOCK_MONOTONIC)
+# undef QT_NO_CLOCK_MONOTONIC
+#elif !defined(QT_NO_CLOCK_MONOTONIC) && !defined(QT_CLOCK_MONOTONIC)
+# define QT_NO_CLOCK_MONOTONIC
+#endif
+
+#if defined(QT_NO_CUPS) && defined(QT_CUPS)
+# undef QT_NO_CUPS
+#elif !defined(QT_NO_CUPS) && !defined(QT_CUPS)
+# define QT_NO_CUPS
+#endif
+
+#if defined(QT_NO_DBUS) && defined(QT_DBUS)
+# undef QT_NO_DBUS
+#elif !defined(QT_NO_DBUS) && !defined(QT_DBUS)
+# define QT_NO_DBUS
+#endif
+
+#if defined(QT_NO_EGLFS) && defined(QT_EGLFS)
+# undef QT_NO_EGLFS
+#elif !defined(QT_NO_EGLFS) && !defined(QT_EGLFS)
+# define QT_NO_EGLFS
+#endif
+
+#if defined(QT_NO_EVENTFD) && defined(QT_EVENTFD)
+# undef QT_NO_EVENTFD
+#elif !defined(QT_NO_EVENTFD) && !defined(QT_EVENTFD)
+# define QT_NO_EVENTFD
+#endif
+
+#if defined(QT_NO_FONTCONFIG) && defined(QT_FONTCONFIG)
+# undef QT_NO_FONTCONFIG
+#elif !defined(QT_NO_FONTCONFIG) && !defined(QT_FONTCONFIG)
+# define QT_NO_FONTCONFIG
+#endif
+
+#if defined(QT_NO_GLIB) && defined(QT_GLIB)
+# undef QT_NO_GLIB
+#elif !defined(QT_NO_GLIB) && !defined(QT_GLIB)
+# define QT_NO_GLIB
+#endif
+
+#if defined(QT_NO_GSTREAMER) && defined(QT_GSTREAMER)
+# undef QT_NO_GSTREAMER
+#elif !defined(QT_NO_GSTREAMER) && !defined(QT_GSTREAMER)
+# define QT_NO_GSTREAMER
+#endif
+
+#if defined(QT_NO_ICONV) && defined(QT_ICONV)
+# undef QT_NO_ICONV
+#elif !defined(QT_NO_ICONV) && !defined(QT_ICONV)
+# define QT_NO_ICONV
+#endif
+
+#if defined(QT_NO_NIS) && defined(QT_NIS)
+# undef QT_NO_NIS
+#elif !defined(QT_NO_NIS) && !defined(QT_NIS)
+# define QT_NO_NIS
+#endif
+
+#if defined(QT_NO_OPENVG) && defined(QT_OPENVG)
+# undef QT_NO_OPENVG
+#elif !defined(QT_NO_OPENVG) && !defined(QT_OPENVG)
+# define QT_NO_OPENVG
+#endif
+
+#if defined(QT_NO_PULSEAUDIO) && defined(QT_PULSEAUDIO)
+# undef QT_NO_PULSEAUDIO
+#elif !defined(QT_NO_PULSEAUDIO) && !defined(QT_PULSEAUDIO)
+# define QT_NO_PULSEAUDIO
+#endif
+
+#if defined(QT_NO_STYLE_GTK) && defined(QT_STYLE_GTK)
+# undef QT_NO_STYLE_GTK
+#elif !defined(QT_NO_STYLE_GTK) && !defined(QT_STYLE_GTK)
+# define QT_NO_STYLE_GTK
+#endif
+
+#if defined(QT_NO_ZLIB) && defined(QT_ZLIB)
+# undef QT_NO_ZLIB
+#elif !defined(QT_NO_ZLIB) && !defined(QT_ZLIB)
+# define QT_NO_ZLIB
+#endif
+
+#if defined(QT_RUNTIME_XCURSOR) && defined(QT_NO_RUNTIME_XCURSOR)
+# undef QT_RUNTIME_XCURSOR
+#elif !defined(QT_RUNTIME_XCURSOR) && !defined(QT_NO_RUNTIME_XCURSOR)
+# define QT_RUNTIME_XCURSOR
+#endif
+
+#if defined(QT_RUNTIME_XFIXES) && defined(QT_NO_RUNTIME_XFIXES)
+# undef QT_RUNTIME_XFIXES
+#elif !defined(QT_RUNTIME_XFIXES) && !defined(QT_NO_RUNTIME_XFIXES)
+# define QT_RUNTIME_XFIXES
+#endif
+
+#if defined(QT_RUNTIME_XINERAMA) && defined(QT_NO_RUNTIME_XINERAMA)
+# undef QT_RUNTIME_XINERAMA
+#elif !defined(QT_RUNTIME_XINERAMA) && !defined(QT_NO_RUNTIME_XINERAMA)
+# define QT_RUNTIME_XINERAMA
+#endif
+
+#if defined(QT_RUNTIME_XINPUT) && defined(QT_NO_RUNTIME_XINPUT)
+# undef QT_RUNTIME_XINPUT
+#elif !defined(QT_RUNTIME_XINPUT) && !defined(QT_NO_RUNTIME_XINPUT)
+# define QT_RUNTIME_XINPUT
+#endif
+
+#if defined(QT_RUNTIME_XRANDR) && defined(QT_NO_RUNTIME_XRANDR)
+# undef QT_RUNTIME_XRANDR
+#elif !defined(QT_RUNTIME_XRANDR) && !defined(QT_NO_RUNTIME_XRANDR)
+# define QT_RUNTIME_XRANDR
+#endif
+
+#if defined(QT_USE_MATH_H_FLOATS) && defined(QT_NO_USE_MATH_H_FLOATS)
+# undef QT_USE_MATH_H_FLOATS
+#elif !defined(QT_USE_MATH_H_FLOATS) && !defined(QT_NO_USE_MATH_H_FLOATS)
+# define QT_USE_MATH_H_FLOATS
+#endif
+
+#ifndef Q_WS_QPA
+# define Q_WS_QPA
+#endif
+
+#define QT_VISIBILITY_AVAILABLE
+
+#define QT_QPA_DEFAULT_PLATFORM_NAME "nitpicker"
+
+/* needed for QtScript classic */
+#ifndef QT_STATIC
+# if defined(QT_BUILD_SCRIPT_LIB)
+# define Q_SCRIPT_EXPORT Q_DECL_EXPORT
+# else
+# define Q_SCRIPT_EXPORT Q_DECL_IMPORT
+# endif
+# if defined(QT_BUILD_SCRIPTTOOLS_LIB)
+# define Q_SCRIPTTOOLS_EXPORT Q_DECL_EXPORT
+# else
+# define Q_SCRIPTTOOLS_EXPORT Q_DECL_IMPORT
+# endif
+#else
+# define Q_SCRIPT_EXPORT
+# define Q_SCRIPTTOOLS_EXPORT
+#endif