libdbusmenu-qt5/noqDebug-qWarnings.patch
Fabian Vogt f351be5b25 Accepting request 833181 from home:alarrosa:branches:KDE:Qt5
- Rework patch trusting the compiler will remove dead code properly
  when debug output is disabled (as it is in the spec file):
  * noqDebug-qWarnings.patch

- Update to 0.9.3+16.04.20160218:
  * Ported tests to Qt5
- Use a Source url that works

OBS-URL: https://build.opensuse.org/request/show/833181
OBS-URL: https://build.opensuse.org/package/show/KDE:Qt5/libdbusmenu-qt5?expand=0&rev=28
2020-09-12 13:12:01 +00:00

30 lines
1.1 KiB
Diff

Index: libdbusmenu-qt-0.9.3-16.04.20160218-0ubuntu1/CMakeLists.txt
===================================================================
--- libdbusmenu-qt-0.9.3-16.04.20160218-0ubuntu1.orig/CMakeLists.txt
+++ libdbusmenu-qt-0.9.3-16.04.20160218-0ubuntu1/CMakeLists.txt
@@ -107,7 +107,7 @@ install(FILES ${CMAKE_BINARY_DIR}/dbusme
)
add_subdirectory(src)
-add_subdirectory(tests)
+#add_subdirectory(tests)
add_subdirectory(tools)
if(WITH_DOC)
Index: libdbusmenu-qt-0.9.3-16.04.20160218-0ubuntu1/src/debug_p.h
===================================================================
--- libdbusmenu-qt-0.9.3-16.04.20160218-0ubuntu1.orig/src/debug_p.h
+++ libdbusmenu-qt-0.9.3-16.04.20160218-0ubuntu1/src/debug_p.h
@@ -26,7 +26,11 @@
#define _DMBLUE "\033[34m"
#define _DMRED "\033[31m"
#define _DMRESET "\033[0m"
+#ifndef QT_NO_DEBUG
#define _DMTRACE(level, color) (level().nospace() << color << __PRETTY_FUNCTION__ << _DMRESET ":").space()
+#else
+#define _DMTRACE(level, color) QT_NO_QDEBUG_MACRO()
+#endif
// Simple macros to get KDebug like support
#define DMDEBUG _DMTRACE(qDebug, _DMBLUE)