aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 16:48:53 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 16:48:53 +0200
commitd2793dd583041941348d5a984764160ddd48102b (patch)
treec78bd68eaf44bd652b6c7deed2e4ffffd4c8670c
parent8fa9911f2088b8510c4175c8f961eb9900e389e0 (diff)
downloadqtmaildir-d2793dd583041941348d5a984764160ddd48102b.tar.gz
qtmaildir-d2793dd583041941348d5a984764160ddd48102b.zip
build: link Qt6::Network for the single-instance socket
A unix domain socket between two copies of this program, for item 200. Not network protocol work: the rule in AGENTS.md is about IMAP and SMTP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--CMakeLists.txt7
-rw-r--r--src/CMakeLists.txt3
2 files changed, 8 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59cd578..9cb396f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,7 +17,12 @@ option(QTMAILDIR_BUILD_TESTS "Build the test suite" ON)
# SlackBuild builds from a tarball that carries no counter at all.
option(QTMAILDIR_BUILD_NUMBER "Number each build of a dev tree" ON)
-set(QTMAILDIR_QT_COMPONENTS Widgets Svg WebEngineWidgets)
+# Network is for QLocalServer/QLocalSocket only, which is a unix domain socket
+# between two copies of this program (item 200). It is NOT network protocol
+# work: the rule in AGENTS.md is about IMAP and SMTP, and nothing here speaks
+# either. Slackware ships it inside the monolithic qt6 package, so this adds no
+# new build dependency.
+set(QTMAILDIR_QT_COMPONENTS Widgets Svg WebEngineWidgets Network)
if(QTMAILDIR_BUILD_TESTS)
list(APPEND QTMAILDIR_QT_COMPONENTS Test)
endif()
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 65404db..0940e4f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -66,7 +66,8 @@ if(TARGET qtmaildir_buildnumber)
endif()
target_link_libraries(qtmaildir_lib
- PUBLIC Qt6::Widgets Qt6::Svg Qt6::WebEngineWidgets PkgConfig::GMIME
+ PUBLIC Qt6::Widgets Qt6::Svg Qt6::WebEngineWidgets Qt6::Network
+ PkgConfig::GMIME
PkgConfig::LIBICAL ${NOTMUCH_LIBRARY} PkgConfig::CMARK_GFM
${CMARK_GFM_EXTENSIONS_LIBRARY})