summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <[email protected]>2023-08-24 08:30:23 +0200
committerJoerg Bornemann <[email protected]>2023-08-25 17:56:28 +0200
commitbfca8c6d2447558609b4cce71d112a8ab34b8bec (patch)
tree39520dbf6171c4e63a4ecfa89159639b0bd7b61c
parent639a7a6f6c351d560d74aa89686032800d64e3d4 (diff)
Doc: Document TR_EXCLUDE
Pick-to: 6.5 6.6 Change-Id: Ib2e06e46f44564a2c7581ff4d7f3d8a29d2756c9 Reviewed-by: Edward Welbourne <[email protected]> Reviewed-by: Kai Köhne <[email protected]>
-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 76f0eec2fec..bb803d11b6d 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 350e9e02ccd..875a1ac56d1 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