summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2023-08-24 08:30:23 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-08-25 15:56:43 +0000
commiteb1d0f5d05b20712fdcdea9988bace66674e9009 (patch)
tree165e0b1842e4b033c437fdbf0c83926a7b904fdd /qmake
parentac2c9b21c919429c83bbeba26cb52bc41e7114f5 (diff)
Doc: Document TR_EXCLUDE
Change-Id: Ib2e06e46f44564a2c7581ff4d7f3d8a29d2756c9 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io> (cherry picked from commit bfca8c6d2447558609b4cce71d112a8ab34b8bec) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/doc/snippets/code/doc_src_qmake-manual.pro22
-rw-r--r--qmake/doc/src/qmake-manual.qdoc19
2 files changed, 41 insertions, 0 deletions
diff --git a/qmake/doc/snippets/code/doc_src_qmake-manual.pro b/qmake/doc/snippets/code/doc_src_qmake-manual.pro
index 76f0eec2fe..bb803d11b6 100644
--- a/qmake/doc/snippets/code/doc_src_qmake-manual.pro
+++ b/qmake/doc/snippets/code/doc_src_qmake-manual.pro
@@ -961,3 +961,25 @@ translations_de.files = $$PWD/de.lproj/InfoPlist.strings
QMAKE_BUNDLE_DATA += translations_en translations_de
#! [189]
+
+#! [TR_EXCLUDE sources]
+SOURCES += main.cpp \
+ excluded.cpp \
+ 3rdparty/sqlite3.h \
+ 3rdparty/sqlite3.c
+TR_EXCLUDE += excluded.cpp 3rdparty/*
+#! [TR_EXCLUDE sources]
+
+#! [TR_EXCLUDE SUBDIRS]
+SUBDIRS += \
+ libs \
+ apps \
+ tests
+TR_EXCLUDE += tests
+#! [TR_EXCLUDE SUBDIRS]
+
+#! [TR_EXCLUDE include paths]
+linux {
+ TR_EXCLUDE += /usr/include/boost/*
+}
+#! [TR_EXCLUDE include paths]
diff --git a/qmake/doc/src/qmake-manual.qdoc b/qmake/doc/src/qmake-manual.qdoc
index 350e9e02cc..875a1ac56d 100644
--- a/qmake/doc/src/qmake-manual.qdoc
+++ b/qmake/doc/src/qmake-manual.qdoc
@@ -3146,6 +3146,25 @@
See the \l{Qt Linguist Manual} for more information about
internationalization (i18n) and localization (l10n) with Qt.
+ \section1 TR_EXCLUDE
+
+ Specifies a list of paths (source files, subdirectories, and C++ include
+ paths) to be excluded from handling in \c{lupdate}. The paths may contain
+ wildcards. Relative paths are considered to be relative to
+ \l{_PRO_FILE_PWD_}.
+
+ For example, to exclude source files:
+
+ \snippet code/doc_src_qmake-manual.pro TR_EXCLUDE sources
+
+ To exclude subdirectories of a \c SUBDIRS project:
+
+ \snippet code/doc_src_qmake-manual.pro TR_EXCLUDE SUBDIRS
+
+ To speed up lupdate's C++ parser, exclude include paths:
+
+ \snippet code/doc_src_qmake-manual.pro TR_EXCLUDE include paths
+
\section1 UI_DIR
Specifies the directory where all intermediate files from uic