From 8333ff641457f5c18bfbc6f9b4ec523ae8526b61 Mon Sep 17 00:00:00 2001 From: Paul Wicking Date: Tue, 22 Sep 2020 07:28:17 +0200 Subject: [PATCH] Doc: Make network snippets a subdirs/lib project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTBUG-86497 Pick-to: 5.15 Change-Id: I45eb22344beb777dd4ad20ba669b28e50cbfc3ec Reviewed-by: Qt CI Bot Reviewed-by: Tor Arne Vestbø --- src/network/doc/snippets/network/network.pro | 6 ++++++ src/network/doc/snippets/snippets.pro | 14 ++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 src/network/doc/snippets/network/network.pro diff --git a/src/network/doc/snippets/network/network.pro b/src/network/doc/snippets/network/network.pro new file mode 100644 index 0000000000..7d3d2415ff --- /dev/null +++ b/src/network/doc/snippets/network/network.pro @@ -0,0 +1,6 @@ +TEMPLATE = lib +TARGET = network_snippet +QT = core network + +SOURCES = \ + tcpwait.cpp diff --git a/src/network/doc/snippets/snippets.pro b/src/network/doc/snippets/snippets.pro index d4598f7265..745511da7b 100644 --- a/src/network/doc/snippets/snippets.pro +++ b/src/network/doc/snippets/snippets.pro @@ -1,11 +1,9 @@ -TEMPLATE = app - +TEMPLATE = subdirs TARGET = network_cppsnippets +SUBDIRS = -# ![0] -QT += network -# ![0] +contains(QT_BUILD_PARTS, tests) { + SUBDIRS += \ + network +} -SOURCES += network/tcpwait.cpp - -load(qt_common)