Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
windows:mingw:win64
mingw64-knotifications
0001-make-libsnoretoast-optional.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-make-libsnoretoast-optional.patch of Package mingw64-knotifications
--- knotifications-5.65.0/CMakeLists.txt.orig 2020-08-09 09:07:58.948771383 +0200 +++ knotifications-5.65.0/CMakeLists.txt 2020-08-09 09:08:19.388605551 +0200 @@ -69,8 +69,8 @@ find_package(Qt5MacExtras ${REQUIRED_QT_VERSION} REQUIRED NO_MODULE) endif() if (WIN32) - find_package(LibSnoreToast REQUIRED) - set_package_properties(LibSnoreToast PROPERTIES TYPE REQUIRED + find_package(LibSnoreToast) + set_package_properties(LibSnoreToast PROPERTIES TYPE OPTIONAL PURPOSE "for the Windows Toast Notifications" DESCRIPTION "A command line application, capable of creating Windows Toast notifications on Windows (>=)8 " --- knotifications-5.65.0/src/CMakeLists.txt.orig 2020-08-09 09:21:11.562347080 +0200 +++ knotifications-5.65.0/src/CMakeLists.txt 2020-08-09 09:23:40.333142603 +0200 @@ -38,8 +38,9 @@ list(APPEND knotifications_SRCS notifybyandroid.cpp knotifications.qrc) endif() -if (WIN32) +if (WIN32 AND LibSnoreToast_FOUND) list(APPEND knotifications_SRCS notifybysnore.cpp) + add_definitions(HAVE_SNORETOAST) endif () if (APPLE) --- knotifications-5.65.0/src/knotificationmanager.cpp.orig 2020-08-09 09:25:07.268438938 +0200 +++ knotifications-5.65.0/src/knotificationmanager.cpp 2020-08-09 09:23:33.797195511 +0200 @@ -42,7 +42,7 @@ #include "notifybyandroid.h" #elif defined(Q_OS_MACOS) #include "notifybymacosnotificationcenter.h" -#elif defined(Q_OS_WIN) +#elif defined(HAVE_SNORETOAST) #include "notifybysnore.h" #else #include "notifybypopup.h" @@ -137,7 +137,7 @@ if (action == QLatin1String("Popup")) { #if defined(Q_OS_ANDROID) plugin = new NotifyByAndroid(this); -#elif defined(Q_OS_WIN) +#elif defined(HAVE_SNORETOAST) plugin = new NotifyBySnore(this); #elif defined(Q_OS_MACOS) plugin = new NotifyByMacOSNotificationCenter(this);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor