diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2016-08-20 11:07:15 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2016-08-21 18:36:28 +0300 |
commit | 2ad58a5432375f1288c12e27d90786ac635c61cc (patch) | |
tree | 541c05270f54a08f9b400f2a184acc6cbbb08d6c /toolchain/win32-msvc2015 | |
parent | 1603d085510331cfe2f0f5dbe8ac2573597d2ef3 (diff) |
toolchain: add MSVC2015 toolchain.
Diffstat (limited to 'toolchain/win32-msvc2015')
-rw-r--r-- | toolchain/win32-msvc2015/x64.toolchain | 39 | ||||
-rw-r--r-- | toolchain/win32-msvc2015/x86-xp.toolchain | 37 | ||||
-rw-r--r-- | toolchain/win32-msvc2015/x86.toolchain | 29 |
3 files changed, 105 insertions, 0 deletions
diff --git a/toolchain/win32-msvc2015/x64.toolchain b/toolchain/win32-msvc2015/x64.toolchain new file mode 100644 index 000000000..ad5c9d7d1 --- /dev/null +++ b/toolchain/win32-msvc2015/x64.toolchain @@ -0,0 +1,39 @@ +# Copyright 2005-2016 The Mumble Developers. All rights reserved.
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file at the root of the
+# Mumble source tree or at <https://www.mumble.info/LICENSE>.
+
+# This file describes the x64 toolchain of
+# MSVC2015 compiler.
+#
+# This file can be included in a .pro file
+# to cause the target in that file to be
+# built for the x64 architecture, regardless
+# of the native architecture of the build
+# environment.
+
+# Use the x86-based amd64 cross compiler by default.
+QMAKE_CC = "\"$$(VCINSTALLDIR)bin\\x86_amd64\\cl.exe\""
+QMAKE_CXX = "\"$$(VCINSTALLDIR)bin\\x86_amd64\\cl.exe\""
+QMAKE_LINK = \""$$(VCINSTALLDIR)\\bin\\x86_amd64\\link.exe\""
+QMAKE_LIB = \""$$(VCINSTALLDIR)\\bin\\x86_amd64\\lib.exe\""
+
+# ...but use the native amd64 compiler if it is available.
+exists($$(VCINSTALLDIR)\\bin\\amd64) {
+ QMAKE_CC = "\"$$(VCINSTALLDIR)bin\\amd64\\cl.exe\""
+ QMAKE_CXX = "\"$$(VCINSTALLDIR)bin\\amd64\\cl.exe\""
+ QMAKE_LINK = \""$$(VCINSTALLDIR)\\bin\\amd64\\link.exe\""
+ QMAKE_LIB = \""$$(VCINSTALLDIR)\\bin\\amd64\\lib.exe\""
+}
+
+QMAKE_RC = \""$$(WindowsSdkDir)\\bin\\x64\\rc.exe\""
+
+INCLUDEPATH *= "$$(VCINSTALLDIR)\\include"
+INCLUDEPATH *= "$$(VCINSTALLDIR)\\atlmfc\\include"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\shared"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\um"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\winrt"
+
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(VCINSTALLDIR)\\lib\\amd64\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(VCINSTALLDIR)\\atlmfc\\lib\\amd64\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(WindowsSdkDir)\\lib\\$$(WindowsSDKLibVersion)um\\x64\""
diff --git a/toolchain/win32-msvc2015/x86-xp.toolchain b/toolchain/win32-msvc2015/x86-xp.toolchain new file mode 100644 index 000000000..f6f637743 --- /dev/null +++ b/toolchain/win32-msvc2015/x86-xp.toolchain @@ -0,0 +1,37 @@ +# Copyright 2005-2016 The Mumble Developers. All rights reserved.
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file at the root of the
+# Mumble source tree or at <https://www.mumble.info/LICENSE>.
+
+# This file describes the x86-xp toolchain of
+# MSVC2015 compiler. This is a special toolchain
+# that is designed to be backwards compatible
+# with Windows XP.
+#
+# This file can be included in a .pro file
+# to cause the target in that file to be
+# built for the x86 architecture targetting
+# Windows XP, regardless of the native
+# architecture of the build environment.
+
+WIN7_XP_SDK_DIR="C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.1A"
+
+QMAKE_CC = "\"$$(VCINSTALLDIR)bin\\cl.exe\" /D_USING_V110_SDK71_"
+QMAKE_CXX = "\"$$(VCINSTALLDIR)bin\\cl.exe\" /D_USING_V110_SDK71_"
+QMAKE_LINK = \""$$(VCINSTALLDIR)\\bin\\link.exe\""
+QMAKE_LIB = \""$$(VCINSTALLDIR)\\bin\\lib.exe\""
+QMAKE_RC = \""$${WIN7_XP_SDK_DIR}\\bin\\rc.exe\" /D_USING_V110_SDK71_"
+
+INCLUDEPATH *= "$$(DXSDK_DIR)\\include"
+INCLUDEPATH *= "$${WIN7_XP_SDK_DIR}\\include"
+INCLUDEPATH *= "$$(VCINSTALLDIR)\\include"
+INCLUDEPATH *= "$$(VCINSTALLDIR)\\atlmfc\\include"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\shared"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\um"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\winrt"
+
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(DXSDK_DIR)\\lib\\x86\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(VCINSTALLDIR)\\lib\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(VCINSTALLDIR)\\atlmfc\\lib\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(WindowsSdkDir)\\lib\\$$(WindowsSDKLibVersion)um\\x86\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(WindowsSdkDir)\\lib\\$$(WindowsSDKLibVersion)ucrt\\x86\""
diff --git a/toolchain/win32-msvc2015/x86.toolchain b/toolchain/win32-msvc2015/x86.toolchain new file mode 100644 index 000000000..983e8f9db --- /dev/null +++ b/toolchain/win32-msvc2015/x86.toolchain @@ -0,0 +1,29 @@ +# Copyright 2005-2016 The Mumble Developers. All rights reserved.
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file at the root of the
+# Mumble source tree or at <https://www.mumble.info/LICENSE>.
+
+# This file describes the x86 toolchain of
+# MSVC2015 compiler.
+#
+# This file can be included in a .pro file
+# to cause the target in that file to be
+# built for the x86 architecture, regardless
+# of the native architecture of the build
+# environment.
+
+QMAKE_CC = "\"$$(VCINSTALLDIR)bin\\cl.exe\""
+QMAKE_CXX = "\"$$(VCINSTALLDIR)bin\\cl.exe\""
+QMAKE_LINK = \""$$(VCINSTALLDIR)\\bin\\link.exe\""
+QMAKE_LIB = \""$$(VCINSTALLDIR)\\bin\\lib.exe\""
+QMAKE_RC = \""$$(WindowsSdkDir)\\bin\\x86\\rc.exe\""
+
+INCLUDEPATH *= "$$(VCINSTALLDIR)\\include"
+INCLUDEPATH *= "$$(VCINSTALLDIR)\\atlmfc\\include"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\shared"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\um"
+INCLUDEPATH *= "$$(WindowsSdkDir)\\include\\winrt"
+
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(VCINSTALLDIR)\\lib\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(VCINSTALLDIR)\\atlmfc\\lib\""
+QMAKE_LFLAGS *= "/LIBPATH:\"$$(WindowsSdkDir)\\lib\\$$(WindowsSDKLibVersion)um\\x86\""
|