encode the MSVC version in our mkspecs
This will enable qmake and its users to make decisions based on the Visual Studio version without guessing it from the mkspec's name. Change-Id: I1bb46161111b109c2b4302bfc8c428b5f63c32d9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
d278695e56
commit
943fc7d782
@ -8,6 +8,7 @@ MAKEFILE_GENERATOR = MSVC.NET
|
|||||||
QMAKE_PLATFORM = win32
|
QMAKE_PLATFORM = win32
|
||||||
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
||||||
DEFINES += UNICODE WIN32
|
DEFINES += UNICODE WIN32
|
||||||
|
MSVC_VER = 8.0
|
||||||
QMAKE_COMPILER_DEFINES += _MSC_VER=1400 _WIN32
|
QMAKE_COMPILER_DEFINES += _MSC_VER=1400 _WIN32
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
DEFINES += WIN64
|
DEFINES += WIN64
|
||||||
|
@ -8,6 +8,7 @@ MAKEFILE_GENERATOR = MSVC.NET
|
|||||||
QMAKE_PLATFORM = win32
|
QMAKE_PLATFORM = win32
|
||||||
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
||||||
DEFINES += UNICODE WIN32
|
DEFINES += UNICODE WIN32
|
||||||
|
MSVC_VER = 9.0
|
||||||
QMAKE_COMPILER_DEFINES += _MSC_VER=1500 _WIN32
|
QMAKE_COMPILER_DEFINES += _MSC_VER=1500 _WIN32
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
DEFINES += WIN64
|
DEFINES += WIN64
|
||||||
|
@ -8,6 +8,7 @@ MAKEFILE_GENERATOR = MSBUILD
|
|||||||
QMAKE_PLATFORM = win32
|
QMAKE_PLATFORM = win32
|
||||||
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
||||||
DEFINES += UNICODE WIN32
|
DEFINES += UNICODE WIN32
|
||||||
|
MSVC_VER = 10.0
|
||||||
QMAKE_COMPILER_DEFINES += _MSC_VER=1600 _WIN32
|
QMAKE_COMPILER_DEFINES += _MSC_VER=1600 _WIN32
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
DEFINES += WIN64
|
DEFINES += WIN64
|
||||||
|
@ -8,6 +8,7 @@ MAKEFILE_GENERATOR = MSBUILD
|
|||||||
QMAKE_PLATFORM = win32
|
QMAKE_PLATFORM = win32
|
||||||
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
||||||
DEFINES += UNICODE WIN32
|
DEFINES += UNICODE WIN32
|
||||||
|
MSVC_VER = 11.0
|
||||||
QMAKE_COMPILER_DEFINES += _MSC_VER=1700 _WIN32
|
QMAKE_COMPILER_DEFINES += _MSC_VER=1700 _WIN32
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
DEFINES += WIN64
|
DEFINES += WIN64
|
||||||
|
@ -8,6 +8,7 @@ MAKEFILE_GENERATOR = MSBUILD
|
|||||||
QMAKE_PLATFORM = win32
|
QMAKE_PLATFORM = win32
|
||||||
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
CONFIG += incremental flat precompile_header autogen_precompile_source debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe
|
||||||
DEFINES += UNICODE WIN32
|
DEFINES += UNICODE WIN32
|
||||||
|
MSVC_VER = 12.0
|
||||||
QMAKE_COMPILER_DEFINES += _MSC_VER=1800 _WIN32
|
QMAKE_COMPILER_DEFINES += _MSC_VER=1800 _WIN32
|
||||||
contains(QMAKE_TARGET.arch, x86_64) {
|
contains(QMAKE_TARGET.arch, x86_64) {
|
||||||
DEFINES += WIN64
|
DEFINES += WIN64
|
||||||
|
Loading…
Reference in New Issue
Block a user