summaryrefslogtreecommitdiffstats
path: root/header.LGPL21
diff options
context:
space:
mode:
authorM. Moellney <mail@michaelmoellney.de>2015-03-31 17:34:18 +0200
committerMichael Möllney <mail@michaelmoellney.de>2015-04-08 15:47:12 +0000
commitfa1b2dc4a012c3dc11db35f6b33a41d326b820b6 (patch)
tree0033df66696c6eb11f86c18b853a1de06e3259fa /header.LGPL21
parente63752e6bb886d83af0c22faa673ea4cf99729f0 (diff)
Fix qmake generating bizarre msvc /VERSION values
The msvc_nmake and msvc_vcproj generators deduced the exe/dll header version number from the VERSION variable in a "bizarre" way: VERSION=1.2.3.4567 was converted to /VERSION:1.234567. But a minor number beyond 65535 is not accepted by the linker. This fix deduces the major and minor from the major and minor of VERSION: VERSION=1.2.3.4567 leads to /VERSION:1.2. In addition, a new variable is introduced: VERSION_PE_HEADER. With this variable, legacy pro files that rely on the bizarre behavior can re-create it: VERSION=1.2.3.45 and VERSION_PE_HEADER=1.2345 lead to the old result: /VERSION:1.2345 by just taking the VERSION_PE_HEADER to overrule the new behavior. Task-number: QTBUG-44823 Change-Id: Ie093ade83290c098fe2b2a429ce5d6ed6dc750ea Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'header.LGPL21')
0 files changed, 0 insertions, 0 deletions