Windows: Automatically set metadata for all Qt apps

Move the logic to set default values for VERSION,
QMAKE_TARGET_DESCRIPTION to qt_app.prf. This way,
a lot more executables get sane defaults.

Change-Id: I8394418c118a8877cec792eddc8894397c0fbf2d
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Kai Koehne 2017-07-27 10:32:23 +02:00
parent 79737d03bc
commit 6b7b37cf2e
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,10 @@ TEMPLATE = app
load(qt_build_paths)
DESTDIR = $$MODULE_BASE_OUTDIR/bin
isEmpty(VERSION): VERSION = $$MODULE_VERSION
isEmpty(QMAKE_TARGET_DESCRIPTION): \
QMAKE_TARGET_DESCRIPTION = "Qt $$title($$TARGET)"
isEmpty(QMAKE_INFO_PLIST): CONFIG -= app_bundle
# This decreases the binary size for tools if statically linked

View File

@ -10,9 +10,6 @@
#
CONFIG += no_launch_target
isEmpty(VERSION): VERSION = $$MODULE_VERSION
isEmpty(QMAKE_TARGET_DESCRIPTION): \
QMAKE_TARGET_DESCRIPTION = "Qt $$title($$TARGET)"
load(qt_app)
CONFIG += console