summaryrefslogtreecommitdiffstats
path: root/installerfw.pri
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-08-25 18:12:32 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2020-08-26 07:14:37 +0000
commit2efc27fc698e18afc98f1c414e5519cf455d95c2 (patch)
tree8e3d1b26107163d4342eea5714795f48fb21e337 /installerfw.pri
parent7ab0658e79f44e98dba9baba05c3e704adc4d0ee (diff)
Allow disabling translation features with environment variable
'IFW_DISABLE_TRANSLATIONS' can be used to disable translation features with a value of '1', '0' or any other values are ignored. The variable is evaluated at the time of running qmake. Task-number: QTIFW-1911 Change-Id: I99c472eae4229b8add109fcf7f764f670909231d Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'installerfw.pri')
-rw-r--r--installerfw.pri5
1 files changed, 5 insertions, 0 deletions
diff --git a/installerfw.pri b/installerfw.pri
index ad2369d4d..4c8e7175e 100644
--- a/installerfw.pri
+++ b/installerfw.pri
@@ -12,6 +12,11 @@ IFW_VERSION_STR_WIN32 = $$IFW_VERSION_STR\0
IFW_REPOSITORY_FORMAT_VERSION = 1.0.0
IFW_NEWLINE = $$escape_expand(\\n\\t)
+isEmpty(IFW_DISABLE_TRANSLATIONS): IFW_DISABLE_TRANSLATIONS = $$(IFW_DISABLE_TRANSLATIONS)
+isEqual(IFW_DISABLE_TRANSLATIONS, 1) {
+ DEFINES += IFW_DISABLE_TRANSLATIONS
+}
+
defineTest(minQtVersion) {
maj = $$1
min = $$2