MINGW-packages/mingw-w64-kdeconnect/0002-kdeconnect-cmake-add-fexceptions.patch
Biswapriyo Nath 50c7e3da63 kdeconnect: Enable pausemusic and systemvolume plugins
mingw-w64 was missing some symbols for those plugins which were added in
d08d56ea1f
2024-10-01 20:51:59 +05:30

31 lines
1.2 KiB
Diff

--- a/indicator/CMakeLists.txt
+++ b/indicator/CMakeLists.txt
@@ -46,6 +46,7 @@
target_link_libraries(kdeconnect-indicator Qt::Widgets KF6::CoreAddons KF6::I18n KF6::Notifications KF6::DBusAddons KF6::KCMUtils KF6::Crash kdeconnectinterfaces kdeconnectcore kdeconnectversion)
if (WIN32)
+ target_compile_options(kdeconnect-indicator PUBLIC -fexceptions)
target_link_libraries(kdeconnect-indicator windowsapp)
else()
target_link_libraries(kdeconnect-indicator KF6::StatusNotifierItem)
--- a/plugins/pausemusic/CMakeLists.txt
+++ b/plugins/pausemusic/CMakeLists.txt
@@ -13,6 +13,7 @@
Qt::DBus
)
if (WIN32)
+ target_compile_options(kdeconnect_pausemusic PUBLIC -fexceptions)
target_link_libraries(kdeconnect_pausemusic windowsapp)
else()
target_link_libraries(kdeconnect_pausemusic KF6::PulseAudioQt)
--- a/plugins/sendnotifications/CMakeLists.txt
+++ b/plugins/sendnotifications/CMakeLists.txt
@@ -16,6 +16,7 @@
if(WIN32)
+target_compile_options(kdeconnect_sendnotifications PUBLIC -fexceptions)
target_sources(kdeconnect_sendnotifications PRIVATE windowsnotificationslistener.cpp)
target_link_libraries(kdeconnect_sendnotifications runtimeobject windowsapp)
else()