Changeset 3339 in kBuild
- Timestamp:
- May 19, 2020 12:45:34 PM (5 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/VCC142.kmk
r3334 r3339 1 1 # $Id$ 2 2 ## @file 3 # kBuild Tool Config - Visual C++ 14. 1 (aka Visual 2017 and MSC v19.10), targeting AMD64.3 # kBuild Tool Config - Visual C++ 14.2 (aka Visual 2019 and MSC v19.20), default target. 4 4 # 5 5 … … 32 32 # 33 33 34 TOOL_VCC14 1 := Visual C++ 14.1 (aka Visual 2017 and MSC v19.1), targeting $(KBUILD_TARGET).34 TOOL_VCC142 := Visual C++ 14.2 (aka Visual 2019 and MSC v19.20), targeting $(KBUILD_TARGET). 35 35 36 36 ifndef INCLUDED_WIN_COMMON_KMK … … 41 41 # Tool Specific Properties 42 42 # 43 ifndef PATH_TOOL_VCC14 144 PATH_TOOL_VCC14 1 := $(firstfile $(rsortfiles $(qwildcard ,$(KBUILD_DEVTOOLS)/win.amd64/vcc/v14.1*/Tools/MSVC/14.1?.*)))45 ifeq ($(PATH_TOOL_VCC14 1),)46 PATH_TOOL_VCC14 1 := $(firstfile $(rsortfiles $(qwildcard ,$(KBUILD_DEVTOOLS)/win.x86/vcc/v14.1*/Tools/MSVC/14.1?.*)))47 endif 48 ifeq ($(PATH_TOOL_VCC14 1),)49 PATH_TOOL_VCC14 1 := $(PATH_TOOL_VCC141X86)50 endif 51 ifeq ($(PATH_TOOL_VCC14 1),)52 PATH_TOOL_VCC14 1 := $(PATH_TOOL_VCC141)53 endif 54 ifeq ($(PATH_TOOL_VCC14 1),)55 PATH_TOOL_VCC14 1 := $(firstfile $(rsortfiles $(qwildcard ,$(KBUILD_DEVTOOLS)/win.x86/vcc/v14.1*/Tools/MSVC/14.1?.*)))56 ifeq ($(PATH_TOOL_VCC14 1),)57 PATH_TOOL_VCC14 1 := $(firstfile $(foreach ver,20172019,$(foreachfile progfilesdir,$(WINCMN_PROGRAM_FILES_LIST)\58 , $(rsortfiles $(qwildcard ,$(progfilesdir)/Microsoft\ Visual\ Studio/$(ver)/BuildTools/VC/Tools/MSVC/14. 1?.*)))))59 ifeq ($(PATH_TOOL_VCC14 1),)60 $(warning kBuild: PATH_TOOL_VCC14 1cannot be determined!)61 PATH_TOOL_VCC14 1 := $(KBUILD_DEVTOOLS)/win.x86/vcc/v14143 ifndef PATH_TOOL_VCC142 44 PATH_TOOL_VCC142 := $(firstfile $(rsortfiles $(qwildcard ,$(KBUILD_DEVTOOLS)/win.amd64/vcc/v14.2*/Tools/MSVC/14.2?.*))) 45 ifeq ($(PATH_TOOL_VCC142),) 46 PATH_TOOL_VCC142 := $(firstfile $(rsortfiles $(qwildcard ,$(KBUILD_DEVTOOLS)/win.x86/vcc/v14.2*/Tools/MSVC/14.2?.*))) 47 endif 48 ifeq ($(PATH_TOOL_VCC142),) 49 PATH_TOOL_VCC142 := $(PATH_TOOL_VCC142X86) 50 endif 51 ifeq ($(PATH_TOOL_VCC142),) 52 PATH_TOOL_VCC142 := $(PATH_TOOL_VCC142) 53 endif 54 ifeq ($(PATH_TOOL_VCC142),) 55 PATH_TOOL_VCC142 := $(firstfile $(rsortfiles $(qwildcard ,$(KBUILD_DEVTOOLS)/win.x86/vcc/v14.2*/Tools/MSVC/14.2?.*))) 56 ifeq ($(PATH_TOOL_VCC142),) 57 PATH_TOOL_VCC142 := $(firstfile $(foreach ver,2019,$(foreachfile progfilesdir,$(WINCMN_PROGRAM_FILES_LIST)\ 58 , $(rsortfiles $(qwildcard ,$(progfilesdir)/Microsoft\ Visual\ Studio/$(ver)/BuildTools/VC/Tools/MSVC/14.2?.*))))) 59 ifeq ($(PATH_TOOL_VCC142),) 60 $(warning kBuild: PATH_TOOL_VCC142 cannot be determined!) 61 PATH_TOOL_VCC142 := $(KBUILD_DEVTOOLS)/win.x86/vcc/v142 62 62 endif 63 63 endif … … 65 65 else 66 66 # Resolve any fancy stuff once and for all. 67 PATH_TOOL_VCC14 1 := $(PATH_TOOL_VCC141)68 endif 69 70 ifndef PATH_TOOL_VCC14 1_BASE_BIN71 PATH_TOOL_VCC14 1_BASE_BIN := $(PATH_TOOL_VCC141)/bin72 endif 73 ifndef PATH_TOOL_VCC14 1_HOST_BIN74 PATH_TOOL_VCC14 1_HOST_BIN := $(PATH_TOOL_VCC141_BASE_BIN)/Host$(WINCMN_MAP_ARCH.$(KBUILD_HOST_ARCH))75 endif 76 ifndef PATH_TOOL_VCC14 1_BIN77 PATH_TOOL_VCC14 1_BIN := $(PATH_TOOL_VCC141_HOST_BIN)/$(WINCMN_MAP_ARCH.$(KBUILD_TARGET_ARCH))78 endif 79 PATH_TOOL_VCC14 1_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC141_BIN))67 PATH_TOOL_VCC142 := $(PATH_TOOL_VCC142) 68 endif 69 70 ifndef PATH_TOOL_VCC142_BASE_BIN 71 PATH_TOOL_VCC142_BASE_BIN := $(PATH_TOOL_VCC142)/bin 72 endif 73 ifndef PATH_TOOL_VCC142_HOST_BIN 74 PATH_TOOL_VCC142_HOST_BIN := $(PATH_TOOL_VCC142_BASE_BIN)/Host$(WINCMN_MAP_ARCH.$(KBUILD_HOST_ARCH)) 75 endif 76 ifndef PATH_TOOL_VCC142_BIN 77 PATH_TOOL_VCC142_BIN := $(PATH_TOOL_VCC142_HOST_BIN)/$(WINCMN_MAP_ARCH.$(KBUILD_TARGET_ARCH)) 78 endif 79 PATH_TOOL_VCC142_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC142_BIN)) 80 80 81 81 # A bunch of DLLs are only in the subdir matching the host one, so we need to add it to the PATH when cross compiling. 82 ifndef PATH_TOOL_VCC14 1_HOST_DLL_BIN83 PATH_TOOL_VCC14 1_HOST_DLL_BIN := $(PATH_TOOL_VCC141_HOST_BIN)/$(WINCMN_MAP_ARCH.$(KBUILD_HOST_ARCH))84 endif 85 ifndef PATH_TOOL_VCC14 1_DLL_BIN86 ifneq ($(PATH_TOOL_VCC14 1_HOST_DLL_BIN),$(PATH_TOOL_VCC141_BIN))87 PATH_TOOL_VCC14 1_DLL_BIN := $(PATH_TOOL_VCC141_HOST_DLL_BIN)88 endif 89 endif 90 91 PATH_TOOL_VCC14 1_LIB.amd64 ?= $(PATH_TOOL_VCC141)/lib/x6492 PATH_TOOL_VCC14 1_LIB.arm32 ?= $(PATH_TOOL_VCC141)/lib/arm93 PATH_TOOL_VCC14 1_LIB.arm64 ?= $(PATH_TOOL_VCC141)/lib/arm6494 PATH_TOOL_VCC14 1_LIB.x86 ?= $(PATH_TOOL_VCC141)/lib/x8695 96 PATH_TOOL_VCC14 1_ONECORE_LIB.amd64 ?= $(PATH_TOOL_VCC141)/lib/onecore/x6497 PATH_TOOL_VCC14 1_ONECORE_LIB.arm32 ?= $(PATH_TOOL_VCC141)/lib/onecore/arm98 PATH_TOOL_VCC14 1_ONECORE_LIB.arm64 ?= $(PATH_TOOL_VCC141)/lib/onecore/arm6499 PATH_TOOL_VCC14 1_ONECORE_LIB.x86 ?= $(PATH_TOOL_VCC141)/lib/onecore/x86100 101 PATH_TOOL_VCC14 1_INC ?= $(PATH_TOOL_VCC141)/include102 103 PATH_TOOL_VCC14 1_ATLMFC ?= $(PATH_TOOL_VCC141)/atlmfc104 PATH_TOOL_VCC14 1_ATLMFC_INC ?= $(PATH_TOOL_VCC141_ATLMFC)/include105 PATH_TOOL_VCC14 1_ATLMFC_LIB.x86 ?= $(PATH_TOOL_VCC141_ATLMFC)/lib/x86106 PATH_TOOL_VCC14 1_ATLMFC_LIB.amd64 ?= $(PATH_TOOL_VCC141_ATLMFC)/lib/x64107 108 TOOL_VCC14 1_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/cl.exe109 TOOL_VCC14 1_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/cl.exe110 TOOL_VCC14 1_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/ml64.exe111 #TOOL_VCC14 1_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/lib.exe - just an exec wrapper for the below112 TOOL_VCC14 1_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/link.exe /LIB113 TOOL_VCC14 1_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/link.exe114 TOOL_VCC14 1_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/dumpbin.exe115 TOOL_VCC14 1_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141_BIN_QSH)/editbin.exe116 117 TOOL_VCC14 1_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC141_RC_CACHED)118 TOOL_VCC14 1_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC141_MT_CACHED)119 120 undefine TOOL_VCC14 1_USE_KSUBMIT # for now121 ifdef TOOL_VCC14 1_USE_KSUBMIT82 ifndef PATH_TOOL_VCC142_HOST_DLL_BIN 83 PATH_TOOL_VCC142_HOST_DLL_BIN := $(PATH_TOOL_VCC142_HOST_BIN)/$(WINCMN_MAP_ARCH.$(KBUILD_HOST_ARCH)) 84 endif 85 ifndef PATH_TOOL_VCC142_DLL_BIN 86 ifneq ($(PATH_TOOL_VCC142_HOST_DLL_BIN),$(PATH_TOOL_VCC142_BIN)) 87 PATH_TOOL_VCC142_DLL_BIN := $(PATH_TOOL_VCC142_HOST_DLL_BIN) 88 endif 89 endif 90 91 PATH_TOOL_VCC142_LIB.amd64 ?= $(PATH_TOOL_VCC142)/lib/x64 92 PATH_TOOL_VCC142_LIB.arm32 ?= $(PATH_TOOL_VCC142)/lib/arm 93 PATH_TOOL_VCC142_LIB.arm64 ?= $(PATH_TOOL_VCC142)/lib/arm64 94 PATH_TOOL_VCC142_LIB.x86 ?= $(PATH_TOOL_VCC142)/lib/x86 95 96 PATH_TOOL_VCC142_ONECORE_LIB.amd64 ?= $(PATH_TOOL_VCC142)/lib/onecore/x64 97 PATH_TOOL_VCC142_ONECORE_LIB.arm32 ?= $(PATH_TOOL_VCC142)/lib/onecore/arm 98 PATH_TOOL_VCC142_ONECORE_LIB.arm64 ?= $(PATH_TOOL_VCC142)/lib/onecore/arm64 99 PATH_TOOL_VCC142_ONECORE_LIB.x86 ?= $(PATH_TOOL_VCC142)/lib/onecore/x86 100 101 PATH_TOOL_VCC142_INC ?= $(PATH_TOOL_VCC142)/include 102 103 PATH_TOOL_VCC142_ATLMFC ?= $(PATH_TOOL_VCC142)/atlmfc 104 PATH_TOOL_VCC142_ATLMFC_INC ?= $(PATH_TOOL_VCC142_ATLMFC)/include 105 PATH_TOOL_VCC142_ATLMFC_LIB.x86 ?= $(PATH_TOOL_VCC142_ATLMFC)/lib/x86 106 PATH_TOOL_VCC142_ATLMFC_LIB.amd64 ?= $(PATH_TOOL_VCC142_ATLMFC)/lib/x64 107 108 TOOL_VCC142_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/cl.exe 109 TOOL_VCC142_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/cl.exe 110 TOOL_VCC142_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/ml64.exe 111 #TOOL_VCC142_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/lib.exe - just an exec wrapper for the below 112 TOOL_VCC142_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/link.exe /LIB 113 TOOL_VCC142_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/link.exe 114 TOOL_VCC142_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/dumpbin.exe 115 TOOL_VCC142_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142_BIN_QSH)/editbin.exe 116 117 TOOL_VCC142_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC142_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC142_RC_CACHED) 118 TOOL_VCC142_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC142_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC142_MT_CACHED) 119 120 undefine TOOL_VCC142_USE_KSUBMIT # for now 121 ifdef TOOL_VCC142_USE_KSUBMIT 122 122 ifeq ($(KBUILD_HOST),win) 123 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC14 1_BIN)),-3),64/)124 TOOL_VCC14 1_KSUBMIT ?= kmk_builtin_kSubmit --64-bit123 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC142_BIN)),-3),64/) 124 TOOL_VCC142_KSUBMIT ?= kmk_builtin_kSubmit --64-bit 125 125 else 126 TOOL_VCC14 1_KSUBMIT ?= kmk_builtin_kSubmit --32-bit126 TOOL_VCC142_KSUBMIT ?= kmk_builtin_kSubmit --32-bit 127 127 endif 128 ifdef PATH_TOOL_VCC14 1_DLL_BIN129 TOOL_VCC14 1_KSUBMIT := $(TOOL_VCC141_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141_DLL_BIN));"128 ifdef PATH_TOOL_VCC142_DLL_BIN 129 TOOL_VCC142_KSUBMIT := $(TOOL_VCC142_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC142_DLL_BIN));" 130 130 endif 131 TOOL_VCC14 1_KSUBMIT_DD := $(TOOL_VCC141_KSUBMIT) --132 endif 133 endif 134 ifdef PATH_TOOL_VCC14 1_DLL_BIN135 TOOL_VCC14 1_SETUP_ENV := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141_DLL_BIN));" --$(SP)136 ifndef TOOL_VCC14 1_KSUBMIT_DD137 TOOL_VCC14 1_KSUBMIT_DD := $(TOOL_VCC141_SETUP_ENV)131 TOOL_VCC142_KSUBMIT_DD := $(TOOL_VCC142_KSUBMIT) -- 132 endif 133 endif 134 ifdef PATH_TOOL_VCC142_DLL_BIN 135 TOOL_VCC142_SETUP_ENV := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC142_DLL_BIN));" --$(SP) 136 ifndef TOOL_VCC142_KSUBMIT_DD 137 TOOL_VCC142_KSUBMIT_DD := $(TOOL_VCC142_SETUP_ENV) 138 138 endif 139 139 endif … … 141 141 142 142 ## Helper for finding rc.exe and mt.exe in the SDK. 143 TOOL_VCC14 1_FN_FIND_SDK_TOOL_SUB = $(eval $3 := $(qfirstfile sh,\143 TOOL_VCC142_FN_FIND_SDK_TOOL_SUB = $(eval $3 := $(qfirstfile sh,\ 144 144 $(if-expr defined(PATH_SDK_WINSDK10_BIN) , $(qwildcard ,$(PATH_SDK_WINSDK10_BIN)/$2)) \ 145 145 $(if-expr defined(PATH_SDK_WINPSDK71_BIN), $(qwildcard ,$(PATH_SDK_WINPSDK71_BIN)/$2)) \ … … 148 148 $(rsortfiles $(qwildcard ,$(KBUILD_DEVTOOLS_HST_ALT)/sdk/*/[Bb][Ii][Nn]/$2)) \ 149 149 $1)) 150 TOOL_VCC14 1_FN_FIND_SDK_TOOL = $(if-expr !defined($3),$(TOOL_VCC141_FN_FIND_SDK_TOOL_SUB),)$($3)150 TOOL_VCC142_FN_FIND_SDK_TOOL = $(if-expr !defined($3),$(TOOL_VCC142_FN_FIND_SDK_TOOL_SUB),)$($3) 151 151 152 152 ## Constructs the correct .pdb name (the name is lowercased). 153 153 # @param $(1) Base name, no extention. 154 154 # @param $(2) The extension. 155 TOOL_VCC14 1_PDB = $(dir $(1))$(tolower $(notdir $(1))).$(2)155 TOOL_VCC142_PDB = $(dir $(1))$(tolower $(notdir $(1))).$(2) 156 156 157 157 # … … 159 159 # doesn't necessarily match that of the compiler. 160 160 # 161 ifeq ($(tolower $(substr $(qdir u,$(PATH_TOOL_VCC14 1)), -12)),/tools/msvc/)162 PATH_TOOL_VCC14 1_REDIST ?= $(firstfile $(qwildcard ,$(substr $(qdir ,$(PATH_TOOL_VCC141)), 1, -12)/Redist/MSVC/14.1*))161 ifeq ($(tolower $(substr $(qdir u,$(PATH_TOOL_VCC142)), -12)),/tools/msvc/) 162 PATH_TOOL_VCC142_REDIST ?= $(firstfile $(qwildcard ,$(substr $(qdir ,$(PATH_TOOL_VCC142)), 1, -12)/Redist/MSVC/14.2*)) 163 163 else 164 PATH_TOOL_VCC141_REDIST ?= $(qabspath ,$(firstfile $(qwildcard ,\ 165 $(PATH_TOOL_VCC141)/Redist \ 166 $(PATH_TOOL_VCC141)/../Redist \ 167 $(PATH_TOOL_VCC141)/../../Redist \ 168 $(PATH_TOOL_VCC141)/../../../Redist \ 169 $(PATH_TOOL_VCC141)/../../../../Redist))) 170 endif 171 PATH_TOOL_VCC141_REDIST_DEBUG ?= $(PATH_TOOL_VCC141_REDIST)/debug_nonredist 172 173 # Updates may add more msvcp140_[0-9].dll images as the product matures. 174 # ASSUMES all platforms end up with the same number of DLLs. 175 TOOL_VCC141_REDIST_CRT_SUBDIR := Microsoft.VC141.CRT 176 TOOL_VCC141_REDIST_DEBUG_CRT_SUBDIR := Microsoft.VC141.DebugCRT 177 TOOL_VCC141_REDIST_CRT_DLLS = vcruntime140.dll \ 178 $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\ 179 $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/vcruntime140_*.dll, x86 x64 arm arm64))))) 180 TOOL_VCC141_REDIST_CONCRT_DLLS = concrt140.dll \ 181 $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\ 182 $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/concrt140_*.dll, x86 x64 arm arm64))))) 183 TOOL_VCC141_REDIST_CPP_DLLS = msvcp140.dll \ 184 $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\ 185 $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/msvcp140_*.dll, x86 x64 arm arm64))))) 186 TOOL_VCC141_REDIST_WINRT_DLLS = vccorlib140.dll \ 187 $(sortfiles $(qnotdir ,$(qwildcard ,$(qaddprefix ,$(requote unq,$(PATH_TOOL_VCC141_REDIST)/),\ 188 $(addsuffix /$(TOOL_VCC141_REDIST_CRT_SUBDIR)/concrt140_*.dll, x86 x64 arm arm64))))) 189 190 TOOL_VCC141_REDIST_CXXAMP_SUBDIR := Microsoft.VC141.CXXAMP 191 TOOL_VCC141_REDIST_MFC_SUBDIR := Microsoft.VC141.MFC 192 TOOL_VCC141_REDIST_MFCLOC_SUBDIR := Microsoft.VC141.MFCLOC 193 TOOL_VCC141_REDIST_OPENMP_SUBDIR := Microsoft.VC141.OpenMP 164 PATH_TOOL_VCC142_REDIST ?= $(qabspath ,$(firstfile $(qwildcard ,\ 165 $(PATH_TOOL_VCC142)/Redist \ 166 $(PATH_TOOL_VCC142)/../Redist \ 167 $(PATH_TOOL_VCC142)/../../Redist \ 168 $(PATH_TOOL_VCC142)/../../../Redist \ 169 $(PATH_TOOL_VCC142)/../../../../Redist))) 170 endif 171 PATH_TOOL_VCC142_REDIST_DEBUG ?= $(PATH_TOOL_VCC142_REDIST)/debug_nonredist 172 173 ## Updates may add more msvcp140_[0-9].dll images as the product matures. 174 # This helper locates them (can differ between archs). 175 # @param 1 Redist subdirectory. 176 # @param 2 The DLL basename (no suffix). 177 # @param 3 The VCC architecture name (for constructing the path). 178 FN_TOOL_VCC142_FIND_DLLS = $(2).dll \ 179 $(sortfiles $(qnotdir ,$(qwildcard ,$(PATH_TOOL_VCC142_REDIST)/$(3)/$(1)/$(2)_?.dll))) 180 181 TOOL_VCC142_REDIST_CRT_SUBDIR := Microsoft.VC142.CRT 182 TOOL_VCC142_REDIST_DEBUG_CRT_SUBDIR := Microsoft.VC142.DebugCRT 183 184 TOOL_VCC142_REDIST_CRT_DLLS.x86 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vcruntime140,x86) 185 TOOL_VCC142_REDIST_CRT_DLLS.amd64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vcruntime140,x64) 186 TOOL_VCC142_REDIST_CRT_DLLS.arm32 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vcruntime140,arm) 187 TOOL_VCC142_REDIST_CRT_DLLS.arm64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vcruntime140,arm64) 188 TOOL_VCC142_REDIST_CRT_DLLS = $(TOOL_VCC142_REDIST_CRT_DLLS.$(KBUILD_TARGET_ARCH)) 189 190 TOOL_VCC142_REDIST_CONCRT_DLLS.x86 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),concrt140,x86) 191 TOOL_VCC142_REDIST_CONCRT_DLLS.amd64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),concrt140,x64) 192 TOOL_VCC142_REDIST_CONCRT_DLLS.arm32 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),concrt140,arm) 193 TOOL_VCC142_REDIST_CONCRT_DLLS.arm64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),concrt140,arm64) 194 TOOL_VCC142_REDIST_CONCRT_DLLS = $(TOOL_VCC142_REDIST_CONCRT_DLLS.$(KBUILD_TARGET_ARCH)) 195 196 TOOL_VCC142_REDIST_CPP_DLLS.x86 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),msvcp140,x86) 197 TOOL_VCC142_REDIST_CPP_DLLS.amd64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),msvcp140,x64) 198 TOOL_VCC142_REDIST_CPP_DLLS.arm32 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),msvcp140,arm) 199 TOOL_VCC142_REDIST_CPP_DLLS.arm64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),msvcp140,arm64) 200 TOOL_VCC142_REDIST_CPP_DLLS = $(TOOL_VCC142_REDIST_CPP_DLLS.$(KBUILD_TARGET_ARCH)) 201 202 TOOL_VCC142_REDIST_WINRT_DLLS.x86 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vccorlib140,x86) 203 TOOL_VCC142_REDIST_WINRT_DLLS.amd64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vccorlib140,x64) 204 TOOL_VCC142_REDIST_WINRT_DLLS.arm32 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vccorlib140,arm) 205 TOOL_VCC142_REDIST_WINRT_DLLS.arm64 = $(call FN_TOOL_VCC142_FIND_DLLS,$(TOOL_VCC142_REDIST_CRT_SUBDIR),vccorlib140,arm64) 206 TOOL_VCC142_REDIST_WINRT_DLLS = $(TOOL_VCC142_REDIST_WINRT_DLLS.$(KBUILD_TARGET_ARCH)) 207 208 TOOL_VCC142_REDIST_CXXAMP_SUBDIR := Microsoft.VC142.CXXAMP 209 TOOL_VCC142_REDIST_MFC_SUBDIR := Microsoft.VC142.MFC 210 TOOL_VCC142_REDIST_MFCLOC_SUBDIR := Microsoft.VC142.MFCLOC 211 TOOL_VCC142_REDIST_OPENMP_SUBDIR := Microsoft.VC142.OpenMP 194 212 195 213 … … 197 215 # Properties used by kBuild 198 216 # 199 TOOL_VCC14 1_COBJSUFF ?= .obj200 TOOL_VCC14 1_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256201 TOOL_VCC14 1_CFLAGS.debug ?=202 TOOL_VCC14 1_CFLAGS.dbgopt ?= -O2203 TOOL_VCC14 1_CFLAGS.release ?= -O2204 TOOL_VCC14 1_CFLAGS.profile ?= -O2205 TOOL_VCC14 1_CINCS ?= $(PATH_TOOL_VCC141_INC)206 TOOL_VCC14 1_CDEFS ?=207 208 TOOL_VCC14 1_CXXOBJSUFF ?= .obj209 TOOL_VCC14 1_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256210 TOOL_VCC14 1_CXXFLAGS.debug ?=211 TOOL_VCC14 1_CXXFLAGS.dbgopt ?= -O2212 TOOL_VCC14 1_CXXFLAGS.release ?= -O2213 TOOL_VCC14 1_CXXFLAGS.profile ?= -O2214 TOOL_VCC14 1_CXXINCS ?= $(PATH_TOOL_VCC141_INC) $(PATH_TOOL_VCC141_ATLMFC_INC)215 TOOL_VCC14 1_CXXDEFS ?=216 217 TOOL_VCC14 1_ASOBJSUFF ?= .obj218 219 TOOL_VCC14 1_RCOBJSUFF ?= .res220 TOOL_VCC14 1_RCINCS ?= $(PATH_TOOL_VCC141_INC) $(PATH_TOOL_VCC141_ATLMFC_INC)221 222 TOOL_VCC14 1_ARFLAGS ?= -nologo223 TOOL_VCC14 1_ARFLAGS.x86 ?= -machine:x86224 TOOL_VCC14 1_ARFLAGS.amd64 ?= -machine:amd64225 TOOL_VCC14 1_ARFLAGS.arm32 ?= -machine:arm226 TOOL_VCC14 1_ARLIBSUFF ?= .lib227 228 TOOL_VCC14 1_LDFLAGS ?= -nologo229 TOOL_VCC14 1_LDFLAGS.x86 ?= -machine:x86230 TOOL_VCC14 1_LDFLAGS.amd64 ?= -machine:amd64231 TOOL_VCC14 1_LDFLAGS.arm32 ?= -machine:arm232 TOOL_VCC14 1_LDFLAGS.debug ?= -debug233 TOOL_VCC14 1_LDFLAGS.dbgopt ?= -debug234 TOOL_VCC14 1_LDFLAGS.profile ?= -debug235 TOOL_VCC14 1_LDFLAGS.release ?=217 TOOL_VCC142_COBJSUFF ?= .obj 218 TOOL_VCC142_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256 219 TOOL_VCC142_CFLAGS.debug ?= 220 TOOL_VCC142_CFLAGS.dbgopt ?= -O2 221 TOOL_VCC142_CFLAGS.release ?= -O2 222 TOOL_VCC142_CFLAGS.profile ?= -O2 223 TOOL_VCC142_CINCS ?= $(PATH_TOOL_VCC142_INC) 224 TOOL_VCC142_CDEFS ?= 225 226 TOOL_VCC142_CXXOBJSUFF ?= .obj 227 TOOL_VCC142_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256 228 TOOL_VCC142_CXXFLAGS.debug ?= 229 TOOL_VCC142_CXXFLAGS.dbgopt ?= -O2 230 TOOL_VCC142_CXXFLAGS.release ?= -O2 231 TOOL_VCC142_CXXFLAGS.profile ?= -O2 232 TOOL_VCC142_CXXINCS ?= $(PATH_TOOL_VCC142_INC) $(PATH_TOOL_VCC142_ATLMFC_INC) 233 TOOL_VCC142_CXXDEFS ?= 234 235 TOOL_VCC142_ASOBJSUFF ?= .obj 236 237 TOOL_VCC142_RCOBJSUFF ?= .res 238 TOOL_VCC142_RCINCS ?= $(PATH_TOOL_VCC142_INC) $(PATH_TOOL_VCC142_ATLMFC_INC) 239 240 TOOL_VCC142_ARFLAGS ?= -nologo 241 TOOL_VCC142_ARFLAGS.x86 ?= -machine:x86 242 TOOL_VCC142_ARFLAGS.amd64 ?= -machine:amd64 243 TOOL_VCC142_ARFLAGS.arm32 ?= -machine:arm 244 TOOL_VCC142_ARLIBSUFF ?= .lib 245 246 TOOL_VCC142_LDFLAGS ?= -nologo 247 TOOL_VCC142_LDFLAGS.x86 ?= -machine:x86 248 TOOL_VCC142_LDFLAGS.amd64 ?= -machine:amd64 249 TOOL_VCC142_LDFLAGS.arm32 ?= -machine:arm 250 TOOL_VCC142_LDFLAGS.debug ?= -debug 251 TOOL_VCC142_LDFLAGS.dbgopt ?= -debug 252 TOOL_VCC142_LDFLAGS.profile ?= -debug 253 TOOL_VCC142_LDFLAGS.release ?= 236 254 237 255 … … 250 268 # @param $(outbase) Output basename (full). Use this for list files and such. 251 269 # @param $(objsuff) Object suffix. 252 TOOL_VCC14 1_COMPILE_C_DEPEND =253 TOOL_VCC14 1_COMPILE_C_DEPORD =254 TOOL_VCC14 1_COMPILE_C_OUTPUT =255 TOOL_VCC14 1_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC141_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb)256 ifdef TOOL_VCC14 1_KSUBMIT257 TOOL_VCC14 1_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed258 define TOOL_VCC14 1_COMPILE_C_CMDS259 $(QUIET)$(TOOL_VCC14 1_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\260 -- $(TOOL_VCC14 1_CC) -c\270 TOOL_VCC142_COMPILE_C_DEPEND = 271 TOOL_VCC142_COMPILE_C_DEPORD = 272 TOOL_VCC142_COMPILE_C_OUTPUT = 273 TOOL_VCC142_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC142_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC142_PDB, $(outbase)-obj,idb) 274 ifdef TOOL_VCC142_KSUBMIT 275 TOOL_VCC142_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed 276 define TOOL_VCC142_COMPILE_C_CMDS 277 $(QUIET)$(TOOL_VCC142_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 278 -- $(TOOL_VCC142_CC) -c\ 261 279 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 262 280 -Fd$(outbase)-obj.pdb \ … … 265 283 endef 266 284 else 267 define TOOL_VCC14 1_COMPILE_C_CMDS268 $(QUIET)$(TOOL_VCC14 1_SETUP_ENV) $(TOOL_VCC141_CC) -c\285 define TOOL_VCC142_COMPILE_C_CMDS 286 $(QUIET)$(TOOL_VCC142_SETUP_ENV) $(TOOL_VCC142_CC) -c\ 269 287 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 270 288 -Fd$(outbase)-obj.pdb \ … … 273 291 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 274 292 endef 275 endif # !TOOL_VCC14 1_KSUBMIT293 endif # !TOOL_VCC142_KSUBMIT 276 294 277 295 … … 289 307 # @param $(outbase) Output basename (full). Use this for list files and such. 290 308 # @param $(objsuff) Object suffix. 291 TOOL_VCC14 1_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE)292 TOOL_VCC14 1_COMPILE_CXX_DEPORD =293 TOOL_VCC14 1_COMPILE_CXX_OUTPUT =294 TOOL_VCC14 1_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\295 ,,$(call TOOL_VCC14 1_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb))296 ifdef TOOL_VCC14 1_KSUBMIT297 TOOL_VCC14 1_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed298 define TOOL_VCC14 1_COMPILE_CXX_CMDS299 $(QUIET)$(TOOL_VCC14 1_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\300 -- $(TOOL_VCC14 1_CXX) -c\309 TOOL_VCC142_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE) 310 TOOL_VCC142_COMPILE_CXX_DEPORD = 311 TOOL_VCC142_COMPILE_CXX_OUTPUT = 312 TOOL_VCC142_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\ 313 ,,$(call TOOL_VCC142_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC142_PDB, $(outbase)-obj,idb)) 314 ifdef TOOL_VCC142_KSUBMIT 315 TOOL_VCC142_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed 316 define TOOL_VCC142_COMPILE_CXX_CMDS 317 $(QUIET)$(TOOL_VCC142_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 318 -- $(TOOL_VCC142_CXX) -c\ 301 319 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 302 320 $(if-expr defined($(target)_PCH_HDR)\ … … 307 325 endef 308 326 else 309 define TOOL_VCC14 1_COMPILE_CXX_CMDS310 $(QUIET)$(TOOL_VCC14 1_SETUP_ENV) $(TOOL_VCC141_CXX) -c\327 define TOOL_VCC142_COMPILE_CXX_CMDS 328 $(QUIET)$(TOOL_VCC142_SETUP_ENV) $(TOOL_VCC142_CXX) -c\ 311 329 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 312 330 $(if-expr defined($(target)_PCH_HDR)\ … … 317 335 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 318 336 endef 319 endif # !TOOL_VCC14 1_KSUBMIT337 endif # !TOOL_VCC142_KSUBMIT 320 338 321 339 … … 326 344 # related _1_VCC_PCH_FILE and add -Yc. 327 345 # 328 TOOL_VCC14 1-PCH := Helper for creating precompiled header using CXX handling.329 TOOL_VCC14 1-PCH_EXTENDS := VCC141330 TOOL_VCC14 1-PCH_CXXOBJSUFF := .obj331 TOOL_VCC14 1-PCH_CXXINCS = $(TOOL_VCC141_CXXINCS)332 TOOL_VCC14 1-PCH_CXXFLAGS = $(TOOL_VCC141_CXXFLAGS) -FS333 TOOL_VCC14 1-PCH_CXXFLAGS.debug = $(TOOL_VCC141_CXXFLAGS.debug)334 TOOL_VCC14 1-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC141_CXXFLAGS.dbgopt)335 TOOL_VCC14 1-PCH_CXXFLAGS.release = $(TOOL_VCC141_CXXFLAGS.release)336 TOOL_VCC14 1-PCH_CXXFLAGS.profile = $(TOOL_VCC141_CXXFLAGS.profile)337 TOOL_VCC14 1-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE)338 TOOL_VCC14 1-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE)339 TOOL_VCC14 1-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB)340 TOOL_VCC14 1-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE)341 ifdef TOOL_VCC14 1_KSUBMIT342 define TOOL_VCC14 1-PCH_COMPILE_CXX_CMDS346 TOOL_VCC142-PCH := Helper for creating precompiled header using CXX handling. 347 TOOL_VCC142-PCH_EXTENDS := VCC142 348 TOOL_VCC142-PCH_CXXOBJSUFF := .obj 349 TOOL_VCC142-PCH_CXXINCS = $(TOOL_VCC142_CXXINCS) 350 TOOL_VCC142-PCH_CXXFLAGS = $(TOOL_VCC142_CXXFLAGS) -FS 351 TOOL_VCC142-PCH_CXXFLAGS.debug = $(TOOL_VCC142_CXXFLAGS.debug) 352 TOOL_VCC142-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC142_CXXFLAGS.dbgopt) 353 TOOL_VCC142-PCH_CXXFLAGS.release = $(TOOL_VCC142_CXXFLAGS.release) 354 TOOL_VCC142-PCH_CXXFLAGS.profile = $(TOOL_VCC142_CXXFLAGS.profile) 355 TOOL_VCC142-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE) 356 TOOL_VCC142-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE) 357 TOOL_VCC142-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 358 TOOL_VCC142-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE) 359 ifdef TOOL_VCC142_KSUBMIT 360 define TOOL_VCC142-PCH_COMPILE_CXX_CMDS 343 361 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 344 $(QUIET)$(TOOL_VCC14 1_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\345 -- $(TOOL_VCC14 1_CXX) -c -Yc\362 $(QUIET)$(TOOL_VCC142_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\ 363 -- $(TOOL_VCC142_CXX) -c -Yc\ 346 364 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 347 365 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 352 370 endef 353 371 else 354 define TOOL_VCC14 1-PCH_COMPILE_CXX_CMDS372 define TOOL_VCC142-PCH_COMPILE_CXX_CMDS 355 373 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 356 $(QUIET)$(TOOL_VCC14 1_SETUP_ENV) $(TOOL_VCC141_CXX) -c -Yc\374 $(QUIET)$(TOOL_VCC142_SETUP_ENV) $(TOOL_VCC142_CXX) -c -Yc\ 357 375 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 358 376 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 364 382 365 383 endef 366 endif # !TOOL_VCC14 1_KSUBMIT384 endif # !TOOL_VCC142_KSUBMIT 367 385 368 386 … … 382 400 # @param $(outbase) Output basename (full). Use this for list files and such. 383 401 # @param $(objsuff) Object suffix. 384 TOOL_VCC14 1_COMPILE_RC_DEPEND =385 TOOL_VCC14 1_COMPILE_RC_DEPORD =386 TOOL_VCC14 1_COMPILE_RC_OUTPUT =387 define TOOL_VCC14 1_COMPILE_RC_CMDS388 $(QUIET)$(TOOL_VCC14 1_RC) \402 TOOL_VCC142_COMPILE_RC_DEPEND = 403 TOOL_VCC142_COMPILE_RC_DEPORD = 404 TOOL_VCC142_COMPILE_RC_OUTPUT = 405 define TOOL_VCC142_COMPILE_RC_CMDS 406 $(QUIET)$(TOOL_VCC142_RC) \ 389 407 $(flags) $(qaddprefix sh,/i, $(subst /,\\,$(incs))) $(qaddprefix sh,/d, $(defs))\ 390 408 /fo$(obj)\ … … 403 421 # @param $(outbase) Output basename (full). Use this for list files and such. 404 422 # 405 TOOL_VCC14 1_LINK_LIBRARY_DEPEND = $(othersrc)406 TOOL_VCC14 1_LINK_LIBRARY_DEPORD =407 TOOL_VCC14 1_LINK_LIBRARY_OUTPUT = $(outbase).rsp408 TOOL_VCC14 1_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb409 define TOOL_VCC14 1_LINK_LIBRARY_CMDS423 TOOL_VCC142_LINK_LIBRARY_DEPEND = $(othersrc) 424 TOOL_VCC142_LINK_LIBRARY_DEPORD = 425 TOOL_VCC142_LINK_LIBRARY_OUTPUT = $(outbase).rsp 426 TOOL_VCC142_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb 427 define TOOL_VCC142_LINK_LIBRARY_CMDS 410 428 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 411 429 $(qforeachfile u,arg, $(objs) $(filter-out %.def,$(othersrc)),$(quote-sh "$(subst /,\,$(arg))")) \ 412 430 $(qforeachfile u,arg, $(filter %.def,$(othersrc)),$(quote-sh "/DEF:$(subst /,\,$(arg))")) 413 $(QUIET)$(TOOL_VCC14 1_KSUBMIT_DD) $(TOOL_VCC141_AR) $(flags) /OUT:$(out) @$(outbase).rsp431 $(QUIET)$(TOOL_VCC142_KSUBMIT_DD) $(TOOL_VCC142_AR) $(flags) /OUT:$(out) @$(outbase).rsp 414 432 endef 415 433 … … 429 447 # @param $(outbase) Output basename (full). Use this for list files and such. 430 448 # 431 TOOL_VCC14 1_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)432 TOOL_VCC14 1_LINK_PROGRAM_DEPORD =433 TOOL_VCC14 1_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp434 TOOL_VCC14 1_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest435 TOOL_VCC14 1_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb436 TOOL_VCC14 1_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb437 define TOOL_VCC14 1_LINK_PROGRAM_CMDS449 TOOL_VCC142_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 450 TOOL_VCC142_LINK_PROGRAM_DEPORD = 451 TOOL_VCC142_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 452 TOOL_VCC142_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 453 TOOL_VCC142_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb 454 TOOL_VCC142_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 455 define TOOL_VCC142_LINK_PROGRAM_CMDS 438 456 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 439 457 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 440 $(QUIET)$(TOOL_VCC14 1_KSUBMIT_DD) $(TOOL_VCC141_LD) $(flags) \458 $(QUIET)$(TOOL_VCC142_KSUBMIT_DD) $(TOOL_VCC142_LD) $(flags) \ 441 459 /OUT:$(out) \ 442 460 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 446 464 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 447 465 @$(outbase).rsp 448 ifndef TOOL_VCC14 1_NO_AUTO_MANIFEST466 ifndef TOOL_VCC142_NO_AUTO_MANIFEST 449 467 $(QUIET)$(TEST) -f $(out).manifest -- \ 450 $(TOOL_VCC14 1_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out))468 $(TOOL_VCC142_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out)) 451 469 endif 452 470 endef … … 467 485 # 468 486 # @param $(outbase) Output basename (full). Use this for list files and such. 469 TOOL_VCC14 1_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)470 TOOL_VCC14 1_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB))471 TOOL_VCC14 1_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp472 TOOL_VCC14 1_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp473 TOOL_VCC14 1_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp474 TOOL_VCC14 1_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb475 TOOL_VCC14 1_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb476 define TOOL_VCC14 1_LINK_DLL_CMDS487 TOOL_VCC142_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 488 TOOL_VCC142_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 489 TOOL_VCC142_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp 490 TOOL_VCC142_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 491 TOOL_VCC142_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp 492 TOOL_VCC142_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb 493 TOOL_VCC142_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 494 define TOOL_VCC142_LINK_DLL_CMDS 477 495 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 478 496 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 479 $(QUIET)$(TOOL_VCC14 1_KSUBMIT_DD) $(TOOL_VCC141_LD) $(flags) \497 $(QUIET)$(TOOL_VCC142_KSUBMIT_DD) $(TOOL_VCC142_LD) $(flags) \ 480 498 /OUT:$(out) \ 481 499 /IMPLIB:$(outbase).lib \ … … 487 505 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 488 506 @$(outbase).rsp 489 ifndef TOOL_VCC14 1_NO_AUTO_MANIFEST507 ifndef TOOL_VCC142_NO_AUTO_MANIFEST 490 508 $(QUIET)$(TEST) -f $(out).manifest -- \ 491 $(TOOL_VCC14 1_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'509 $(TOOL_VCC142_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 492 510 endif 493 511 $(QUIET)$(TEST) -f $(outbase).lib -- $(KLIBTWEAKER_EXT) --clear-timestamps $(outbase).lib … … 511 529 # 512 530 # @param $(outbase) Output basename (full). Use this for list files and such. 513 TOOL_VCC14 1_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)514 TOOL_VCC14 1_LINK_SYSMOD_DEPORD =515 TOOL_VCC14 1_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest516 TOOL_VCC14 1_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp517 TOOL_VCC14 1_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb518 TOOL_VCC14 1_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb519 define TOOL_VCC14 1_LINK_SYSMOD_CMDS531 TOOL_VCC142_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 532 TOOL_VCC142_LINK_SYSMOD_DEPORD = 533 TOOL_VCC142_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 534 TOOL_VCC142_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 535 TOOL_VCC142_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb 536 TOOL_VCC142_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 537 define TOOL_VCC142_LINK_SYSMOD_CMDS 520 538 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 521 539 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 522 $(QUIET)$(TOOL_VCC14 1_KSUBMIT_DD) $(TOOL_VCC141_LD) $(flags) \540 $(QUIET)$(TOOL_VCC142_KSUBMIT_DD) $(TOOL_VCC142_LD) $(flags) \ 523 541 /OUT:$(out) \ 524 542 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 528 546 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 529 547 @$(outbase).rsp 530 ifndef TOOL_VCC14 1_NO_AUTO_MANIFEST548 ifndef TOOL_VCC142_NO_AUTO_MANIFEST 531 549 $(QUIET)$(TEST) -f $(out).manifest -- \ 532 $(TOOL_VCC14 1_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'550 $(TOOL_VCC142_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 533 551 endif 534 552 endef -
trunk/kBuild/tools/VCC142AMD64.kmk
r3332 r3339 1 1 # $Id$ 2 2 ## @file 3 # kBuild Tool Config - Visual C++ 14. 1 (aka Visual 2017 and MSC v19.10), targeting AMD64.3 # kBuild Tool Config - Visual C++ 14.2 (aka Visual 2019 and MSC v19.20), targeting AMD64. 4 4 # 5 5 … … 32 32 # 33 33 34 ifndef TOOL_VCC14 135 include $(KBUILD_PATH)/tools/VCC14 1.kmk36 endif 37 38 TOOL_VCC14 1AMD64 := Visual C++ 14.1 (aka Visual 2017 and MSC v19.1), targeting AMD6434 ifndef TOOL_VCC142 35 include $(KBUILD_PATH)/tools/VCC142.kmk 36 endif 37 38 TOOL_VCC142AMD64 := Visual C++ 14.2 (aka Visual 2019 and MSC v19.20), targeting AMD64 39 39 40 40 # 41 41 # Tool Specific Properties 42 42 # 43 ifndef PATH_TOOL_VCC14 1AMD6444 PATH_TOOL_VCC14 1AMD64 := $(PATH_TOOL_VCC141)43 ifndef PATH_TOOL_VCC142AMD64 44 PATH_TOOL_VCC142AMD64 := $(PATH_TOOL_VCC142) 45 45 else 46 46 # Resolve any fancy stuff once and for all. 47 PATH_TOOL_VCC14 1AMD64 := $(PATH_TOOL_VCC141AMD64)48 endif 49 50 ifndef PATH_TOOL_VCC14 1AMD64_BIN51 PATH_TOOL_VCC14 1AMD64_BIN := $(PATH_TOOL_VCC141_HOST_BIN)/x6447 PATH_TOOL_VCC142AMD64 := $(PATH_TOOL_VCC142AMD64) 48 endif 49 50 ifndef PATH_TOOL_VCC142AMD64_BIN 51 PATH_TOOL_VCC142AMD64_BIN := $(PATH_TOOL_VCC142_HOST_BIN)/x64 52 52 else 53 PATH_TOOL_VCC14 1AMD64_BIN := $(PATH_TOOL_VCC141_BIN)54 endif 55 PATH_TOOL_VCC14 1AMD64_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC141AMD64_BIN))53 PATH_TOOL_VCC142AMD64_BIN := $(PATH_TOOL_VCC142_BIN) 54 endif 55 PATH_TOOL_VCC142AMD64_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC142AMD64_BIN)) 56 56 57 57 # A bunch of DLLs are only in the subdir matching the host one, so we need to add it to the PATH when cross compiling. 58 ifndef PATH_TOOL_VCC14 1AMD64_DLL_BIN59 ifneq ($(PATH_TOOL_VCC14 1_HOST_DLL_BIN),$(PATH_TOOL_VCC141AMD64_BIN))60 PATH_TOOL_VCC14 1AMD64_DLL_BIN := $(PATH_TOOL_VCC141_HOST_DLL_BIN)58 ifndef PATH_TOOL_VCC142AMD64_DLL_BIN 59 ifneq ($(PATH_TOOL_VCC142_HOST_DLL_BIN),$(PATH_TOOL_VCC142AMD64_BIN)) 60 PATH_TOOL_VCC142AMD64_DLL_BIN := $(PATH_TOOL_VCC142_HOST_DLL_BIN) 61 61 endif 62 62 endif 63 63 64 ifndef PATH_TOOL_VCC14 1AMD64_LIB65 PATH_TOOL_VCC14 1AMD64_LIB := $(PATH_TOOL_VCC141_LIB.amd64)66 endif 67 ifndef PATH_TOOL_VCC14 1_ONECORE_LIB68 PATH_TOOL_VCC14 1_ONECORE_LIB := $(PATH_TOOL_VCC141_ONECORE_LIB.amd64)69 endif 70 71 ifndef PATH_TOOL_VCC14 1AMD64_INC72 PATH_TOOL_VCC14 1AMD64_INC := $(PATH_TOOL_VCC141_INC)73 endif 74 75 ifndef PATH_TOOL_VCC14 1AMD64_ATLMFC_INC76 PATH_TOOL_VCC14 1AMD64_ATLMFC_INC := $(PATH_TOOL_VCC141_ATLMFC_INC.amd64)77 endif 78 ifndef PATH_TOOL_VCC14 1AMD64_ATLMFC_LIB79 PATH_TOOL_VCC14 1AMD64_ATLMFC_LIB := $(PATH_TOOL_VCC141_ATLMFC_LIB.amd64)80 endif 81 82 TOOL_VCC14 1AMD64_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/cl.exe83 TOOL_VCC14 1AMD64_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/cl.exe84 TOOL_VCC14 1AMD64_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/ml64.exe85 #TOOL_VCC14 1AMD64_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/lib.exe - just an exec wrapper for the below86 TOOL_VCC14 1AMD64_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/link.exe /LIB87 TOOL_VCC14 1AMD64_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/link.exe88 TOOL_VCC14 1AMD64_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/dumpbin.exe89 TOOL_VCC14 1AMD64_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/editbin.exe90 91 TOOL_VCC14 1AMD64_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC141_RC_CACHED)92 TOOL_VCC14 1AMD64_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC141_MT_CACHED)93 94 undefine TOOL_VCC14 1AMD64_USE_KSUBMIT # for now95 ifdef TOOL_VCC14 1AMD64_USE_KSUBMIT64 ifndef PATH_TOOL_VCC142AMD64_LIB 65 PATH_TOOL_VCC142AMD64_LIB := $(PATH_TOOL_VCC142_LIB.amd64) 66 endif 67 ifndef PATH_TOOL_VCC142_ONECORE_LIB 68 PATH_TOOL_VCC142_ONECORE_LIB := $(PATH_TOOL_VCC142_ONECORE_LIB.amd64) 69 endif 70 71 ifndef PATH_TOOL_VCC142AMD64_INC 72 PATH_TOOL_VCC142AMD64_INC := $(PATH_TOOL_VCC142_INC) 73 endif 74 75 ifndef PATH_TOOL_VCC142AMD64_ATLMFC_INC 76 PATH_TOOL_VCC142AMD64_ATLMFC_INC := $(PATH_TOOL_VCC142_ATLMFC_INC.amd64) 77 endif 78 ifndef PATH_TOOL_VCC142AMD64_ATLMFC_LIB 79 PATH_TOOL_VCC142AMD64_ATLMFC_LIB := $(PATH_TOOL_VCC142_ATLMFC_LIB.amd64) 80 endif 81 82 TOOL_VCC142AMD64_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/cl.exe 83 TOOL_VCC142AMD64_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/cl.exe 84 TOOL_VCC142AMD64_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/ml64.exe 85 #TOOL_VCC142AMD64_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/lib.exe - just an exec wrapper for the below 86 TOOL_VCC142AMD64_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/link.exe /LIB 87 TOOL_VCC142AMD64_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/link.exe 88 TOOL_VCC142AMD64_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/dumpbin.exe 89 TOOL_VCC142AMD64_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142AMD64_BIN_QSH)/editbin.exe 90 91 TOOL_VCC142AMD64_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC142_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC142_RC_CACHED) 92 TOOL_VCC142AMD64_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC142_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC142_MT_CACHED) 93 94 undefine TOOL_VCC142AMD64_USE_KSUBMIT # for now 95 ifdef TOOL_VCC142AMD64_USE_KSUBMIT 96 96 ifeq ($(KBUILD_HOST),win) 97 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC14 1AMD64_BIN)),-3),64/)98 TOOL_VCC14 1AMD64_KSUBMIT ?= kmk_builtin_kSubmit --64-bit97 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC142AMD64_BIN)),-3),64/) 98 TOOL_VCC142AMD64_KSUBMIT ?= kmk_builtin_kSubmit --64-bit 99 99 else 100 TOOL_VCC14 1AMD64_KSUBMIT ?= kmk_builtin_kSubmit --32-bit100 TOOL_VCC142AMD64_KSUBMIT ?= kmk_builtin_kSubmit --32-bit 101 101 endif 102 ifdef PATH_TOOL_VCC14 1AMD64_DLL_BIN103 TOOL_VCC14 1AMD64_KSUBMIT := $(TOOL_VCC141AMD64_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141AMD64_DLL_BIN));"102 ifdef PATH_TOOL_VCC142AMD64_DLL_BIN 103 TOOL_VCC142AMD64_KSUBMIT := $(TOOL_VCC142AMD64_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC142AMD64_DLL_BIN));" 104 104 endif 105 TOOL_VCC14 1AMD64_KSUBMIT_DD := $(TOOL_VCC141AMD64_KSUBMIT) --105 TOOL_VCC142AMD64_KSUBMIT_DD := $(TOOL_VCC142AMD64_KSUBMIT) -- 106 106 endif 107 107 endif 108 ifdef PATH_TOOL_VCC14 1AMD64_DLL_BIN109 TOOL_VCC14 1AMD64_SETUP_ENV := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141AMD64_DLL_BIN));" --$(SP)110 ifndef TOOL_VCC14 1AMD64_KSUBMIT_DD111 TOOL_VCC14 1AMD64_KSUBMIT_DD := $(TOOL_VCC141AMD64_SETUP_ENV)108 ifdef PATH_TOOL_VCC142AMD64_DLL_BIN 109 TOOL_VCC142AMD64_SETUP_ENV := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC142AMD64_DLL_BIN));" --$(SP) 110 ifndef TOOL_VCC142AMD64_KSUBMIT_DD 111 TOOL_VCC142AMD64_KSUBMIT_DD := $(TOOL_VCC142AMD64_SETUP_ENV) 112 112 endif 113 113 endif 114 114 115 # Redist (more stuff in VCC141.kmk). 116 PATH_TOOL_VCC141AMD64_REDIST ?= $(PATH_TOOL_VCC141_REDIST)/x64 117 PATH_TOOL_VCC141AMD64_REDIST_CRT = $(PATH_TOOL_VCC141AMD64_REDIST)/$(TOOL_VCC141_REDIST_CRT_SUBDIR) 118 PATH_TOOL_VCC141AMD64_REDIST_DEBUG ?= $(PATH_TOOL_VCC141_REDIST_DEBUG)/x64 119 PATH_TOOL_VCC141AMD64_REDIST_DEBUG_CRT = $(PATH_TOOL_VCC141AMD64_REDIST_DEBUG)/$(TOOL_VCC141_REDIST_CRT_SUBDIR) 115 # Redist (more stuff in VCC142.kmk). 116 PATH_TOOL_VCC142AMD64_REDIST ?= $(PATH_TOOL_VCC142_REDIST)/x64 117 PATH_TOOL_VCC142AMD64_REDIST_CRT = $(PATH_TOOL_VCC142AMD64_REDIST)/$(TOOL_VCC142_REDIST_CRT_SUBDIR) 118 PATH_TOOL_VCC142AMD64_REDIST_DEBUG ?= $(PATH_TOOL_VCC142_REDIST_DEBUG)/x64 119 PATH_TOOL_VCC142AMD64_REDIST_DEBUG_CRT = $(PATH_TOOL_VCC142AMD64_REDIST_DEBUG)/$(TOOL_VCC142_REDIST_CRT_SUBDIR) 120 TOOL_VCC142AMD64_REDIST_CRT_DLLS = $(TOOL_VCC142_REDIST_CRT_DLLS.amd64) 121 TOOL_VCC142AMD64_REDIST_CONCRT_DLLS = $(TOOL_VCC142_REDIST_CONCRT_DLLS.amd64) 122 TOOL_VCC142AMD64_REDIST_CPP_DLLS = $(TOOL_VCC142_REDIST_CPP_DLLS.amd64) 123 TOOL_VCC142AMD64_REDIST_WINRT_DLLS = $(TOOL_VCC142_REDIST_WINRT_DLLS.amd64) 124 120 125 121 126 # 122 127 # Properties used by kBuild 123 128 # 124 TOOL_VCC14 1AMD64_COBJSUFF ?= .obj125 TOOL_VCC14 1AMD64_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256126 TOOL_VCC14 1AMD64_CFLAGS.debug ?=127 TOOL_VCC14 1AMD64_CFLAGS.dbgopt ?= -O2128 TOOL_VCC14 1AMD64_CFLAGS.release ?= -O2129 TOOL_VCC14 1AMD64_CFLAGS.profile ?= -O2130 TOOL_VCC14 1AMD64_CINCS ?= $(PATH_TOOL_VCC141AMD64_INC)131 TOOL_VCC14 1AMD64_CDEFS ?=132 133 TOOL_VCC14 1AMD64_CXXOBJSUFF ?= .obj134 TOOL_VCC14 1AMD64_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256135 TOOL_VCC14 1AMD64_CXXFLAGS.debug ?=136 TOOL_VCC14 1AMD64_CXXFLAGS.dbgopt ?= -O2137 TOOL_VCC14 1AMD64_CXXFLAGS.release ?= -O2138 TOOL_VCC14 1AMD64_CXXFLAGS.profile ?= -O2139 TOOL_VCC14 1AMD64_CXXINCS ?= $(PATH_TOOL_VCC141AMD64_INC) $(PATH_TOOL_VCC141AMD64_ATLMFC_INC)140 TOOL_VCC14 1AMD64_CXXDEFS ?=141 142 TOOL_VCC14 1AMD64_ASOBJSUFF ?= .obj143 144 TOOL_VCC14 1AMD64_RCOBJSUFF ?= .res145 TOOL_VCC14 1AMD64_RCINCS ?= $(PATH_TOOL_VCC141AMD64_INC) $(PATH_TOOL_VCC141AMD64_ATLMFC_INC)146 147 TOOL_VCC14 1AMD64_ARFLAGS ?= -nologo -machine:amd64148 TOOL_VCC14 1AMD64_ARLIBSUFF ?= .lib149 150 TOOL_VCC14 1AMD64_LDFLAGS ?= -nologo -machine:amd64151 TOOL_VCC14 1AMD64_LDFLAGS.debug ?= -debug152 TOOL_VCC14 1AMD64_LDFLAGS.dbgopt ?= -debug153 TOOL_VCC14 1AMD64_LDFLAGS.profile ?= -debug154 TOOL_VCC14 1AMD64_LDFLAGS.release ?=129 TOOL_VCC142AMD64_COBJSUFF ?= .obj 130 TOOL_VCC142AMD64_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256 131 TOOL_VCC142AMD64_CFLAGS.debug ?= 132 TOOL_VCC142AMD64_CFLAGS.dbgopt ?= -O2 133 TOOL_VCC142AMD64_CFLAGS.release ?= -O2 134 TOOL_VCC142AMD64_CFLAGS.profile ?= -O2 135 TOOL_VCC142AMD64_CINCS ?= $(PATH_TOOL_VCC142AMD64_INC) 136 TOOL_VCC142AMD64_CDEFS ?= 137 138 TOOL_VCC142AMD64_CXXOBJSUFF ?= .obj 139 TOOL_VCC142AMD64_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256 140 TOOL_VCC142AMD64_CXXFLAGS.debug ?= 141 TOOL_VCC142AMD64_CXXFLAGS.dbgopt ?= -O2 142 TOOL_VCC142AMD64_CXXFLAGS.release ?= -O2 143 TOOL_VCC142AMD64_CXXFLAGS.profile ?= -O2 144 TOOL_VCC142AMD64_CXXINCS ?= $(PATH_TOOL_VCC142AMD64_INC) $(PATH_TOOL_VCC142AMD64_ATLMFC_INC) 145 TOOL_VCC142AMD64_CXXDEFS ?= 146 147 TOOL_VCC142AMD64_ASOBJSUFF ?= .obj 148 149 TOOL_VCC142AMD64_RCOBJSUFF ?= .res 150 TOOL_VCC142AMD64_RCINCS ?= $(PATH_TOOL_VCC142AMD64_INC) $(PATH_TOOL_VCC142AMD64_ATLMFC_INC) 151 152 TOOL_VCC142AMD64_ARFLAGS ?= -nologo -machine:amd64 153 TOOL_VCC142AMD64_ARLIBSUFF ?= .lib 154 155 TOOL_VCC142AMD64_LDFLAGS ?= -nologo -machine:amd64 156 TOOL_VCC142AMD64_LDFLAGS.debug ?= -debug 157 TOOL_VCC142AMD64_LDFLAGS.dbgopt ?= -debug 158 TOOL_VCC142AMD64_LDFLAGS.profile ?= -debug 159 TOOL_VCC142AMD64_LDFLAGS.release ?= 155 160 156 161 … … 169 174 # @param $(outbase) Output basename (full). Use this for list files and such. 170 175 # @param $(objsuff) Object suffix. 171 TOOL_VCC14 1AMD64_COMPILE_C_DEPEND =172 TOOL_VCC14 1AMD64_COMPILE_C_DEPORD =173 TOOL_VCC14 1AMD64_COMPILE_C_OUTPUT =174 TOOL_VCC14 1AMD64_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC141_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb)175 ifdef TOOL_VCC14 1AMD64_KSUBMIT176 TOOL_VCC14 1AMD64_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed177 define TOOL_VCC14 1AMD64_COMPILE_C_CMDS178 $(QUIET)$(TOOL_VCC14 1AMD64_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\179 -- $(TOOL_VCC14 1AMD64_CC) -c\176 TOOL_VCC142AMD64_COMPILE_C_DEPEND = 177 TOOL_VCC142AMD64_COMPILE_C_DEPORD = 178 TOOL_VCC142AMD64_COMPILE_C_OUTPUT = 179 TOOL_VCC142AMD64_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC142_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC142_PDB, $(outbase)-obj,idb) 180 ifdef TOOL_VCC142AMD64_KSUBMIT 181 TOOL_VCC142AMD64_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed 182 define TOOL_VCC142AMD64_COMPILE_C_CMDS 183 $(QUIET)$(TOOL_VCC142AMD64_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 184 -- $(TOOL_VCC142AMD64_CC) -c\ 180 185 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 181 186 -Fd$(outbase)-obj.pdb \ … … 184 189 endef 185 190 else 186 define TOOL_VCC14 1AMD64_COMPILE_C_CMDS187 $(QUIET)$(TOOL_VCC14 1AMD64_SETUP_ENV)$(TOOL_VCC141AMD64_CC) -c\191 define TOOL_VCC142AMD64_COMPILE_C_CMDS 192 $(QUIET)$(TOOL_VCC142AMD64_SETUP_ENV)$(TOOL_VCC142AMD64_CC) -c\ 188 193 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 189 194 -Fd$(outbase)-obj.pdb \ … … 192 197 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 193 198 endef 194 endif # !TOOL_VCC14 1AMD64_KSUBMIT199 endif # !TOOL_VCC142AMD64_KSUBMIT 195 200 196 201 … … 208 213 # @param $(outbase) Output basename (full). Use this for list files and such. 209 214 # @param $(objsuff) Object suffix. 210 TOOL_VCC14 1AMD64_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE)211 TOOL_VCC14 1AMD64_COMPILE_CXX_DEPORD =212 TOOL_VCC14 1AMD64_COMPILE_CXX_OUTPUT =213 TOOL_VCC14 1AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\214 ,,$(call TOOL_VCC14 1_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb))215 ifdef TOOL_VCC14 1AMD64_KSUBMIT216 TOOL_VCC14 1AMD64_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed217 define TOOL_VCC14 1AMD64_COMPILE_CXX_CMDS218 $(QUIET)$(TOOL_VCC14 1AMD64_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\219 -- $(TOOL_VCC14 1AMD64_CXX) -c\215 TOOL_VCC142AMD64_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE) 216 TOOL_VCC142AMD64_COMPILE_CXX_DEPORD = 217 TOOL_VCC142AMD64_COMPILE_CXX_OUTPUT = 218 TOOL_VCC142AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\ 219 ,,$(call TOOL_VCC142_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC142_PDB, $(outbase)-obj,idb)) 220 ifdef TOOL_VCC142AMD64_KSUBMIT 221 TOOL_VCC142AMD64_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed 222 define TOOL_VCC142AMD64_COMPILE_CXX_CMDS 223 $(QUIET)$(TOOL_VCC142AMD64_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 224 -- $(TOOL_VCC142AMD64_CXX) -c\ 220 225 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 221 226 $(if-expr defined($(target)_PCH_HDR)\ … … 226 231 endef 227 232 else 228 define TOOL_VCC14 1AMD64_COMPILE_CXX_CMDS229 $(QUIET)$(TOOL_VCC14 1AMD64_SETUP_ENV)$(TOOL_VCC141AMD64_CXX) -c\233 define TOOL_VCC142AMD64_COMPILE_CXX_CMDS 234 $(QUIET)$(TOOL_VCC142AMD64_SETUP_ENV)$(TOOL_VCC142AMD64_CXX) -c\ 230 235 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 231 236 $(if-expr defined($(target)_PCH_HDR)\ … … 236 241 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 237 242 endef 238 endif # !TOOL_VCC14 1AMD64_KSUBMIT243 endif # !TOOL_VCC142AMD64_KSUBMIT 239 244 240 245 … … 245 250 # related _1_VCC_PCH_FILE and add -Yc. 246 251 # 247 TOOL_VCC14 1AMD64-PCH := Helper for creating precompiled header using CXX handling.248 TOOL_VCC14 1AMD64-PCH_EXTENDS := VCC141AMD64249 TOOL_VCC14 1AMD64-PCH_CXXOBJSUFF := .obj250 TOOL_VCC14 1AMD64-PCH_CXXINCS = $(TOOL_VCC141AMD64_CXXINCS)251 TOOL_VCC14 1AMD64-PCH_CXXFLAGS = $(TOOL_VCC141AMD64_CXXFLAGS) -FS252 TOOL_VCC14 1AMD64-PCH_CXXFLAGS.debug = $(TOOL_VCC141AMD64_CXXFLAGS.debug)253 TOOL_VCC14 1AMD64-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC141AMD64_CXXFLAGS.dbgopt)254 TOOL_VCC14 1AMD64-PCH_CXXFLAGS.release = $(TOOL_VCC141AMD64_CXXFLAGS.release)255 TOOL_VCC14 1AMD64-PCH_CXXFLAGS.profile = $(TOOL_VCC141AMD64_CXXFLAGS.profile)256 TOOL_VCC14 1AMD64-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE)257 TOOL_VCC14 1AMD64-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE)258 TOOL_VCC14 1AMD64-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB)259 TOOL_VCC14 1AMD64-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE)260 ifdef TOOL_VCC14 1AMD64_KSUBMIT261 define TOOL_VCC14 1AMD64-PCH_COMPILE_CXX_CMDS252 TOOL_VCC142AMD64-PCH := Helper for creating precompiled header using CXX handling. 253 TOOL_VCC142AMD64-PCH_EXTENDS := VCC142AMD64 254 TOOL_VCC142AMD64-PCH_CXXOBJSUFF := .obj 255 TOOL_VCC142AMD64-PCH_CXXINCS = $(TOOL_VCC142AMD64_CXXINCS) 256 TOOL_VCC142AMD64-PCH_CXXFLAGS = $(TOOL_VCC142AMD64_CXXFLAGS) -FS 257 TOOL_VCC142AMD64-PCH_CXXFLAGS.debug = $(TOOL_VCC142AMD64_CXXFLAGS.debug) 258 TOOL_VCC142AMD64-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC142AMD64_CXXFLAGS.dbgopt) 259 TOOL_VCC142AMD64-PCH_CXXFLAGS.release = $(TOOL_VCC142AMD64_CXXFLAGS.release) 260 TOOL_VCC142AMD64-PCH_CXXFLAGS.profile = $(TOOL_VCC142AMD64_CXXFLAGS.profile) 261 TOOL_VCC142AMD64-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE) 262 TOOL_VCC142AMD64-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE) 263 TOOL_VCC142AMD64-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 264 TOOL_VCC142AMD64-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE) 265 ifdef TOOL_VCC142AMD64_KSUBMIT 266 define TOOL_VCC142AMD64-PCH_COMPILE_CXX_CMDS 262 267 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 263 $(QUIET)$(TOOL_VCC14 1AMD64_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\264 -- $(TOOL_VCC14 1AMD64_CXX) -c -Yc\268 $(QUIET)$(TOOL_VCC142AMD64_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\ 269 -- $(TOOL_VCC142AMD64_CXX) -c -Yc\ 265 270 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 266 271 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 271 276 endef 272 277 else 273 define TOOL_VCC14 1AMD64-PCH_COMPILE_CXX_CMDS278 define TOOL_VCC142AMD64-PCH_COMPILE_CXX_CMDS 274 279 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 275 $(QUIET)$(TOOL_VCC14 1AMD64_SETUP_ENV)$(TOOL_VCC141AMD64_CXX) -c -Yc\280 $(QUIET)$(TOOL_VCC142AMD64_SETUP_ENV)$(TOOL_VCC142AMD64_CXX) -c -Yc\ 276 281 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 277 282 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 283 288 284 289 endef 285 endif # !TOOL_VCC14 1AMD64_KSUBMIT290 endif # !TOOL_VCC142AMD64_KSUBMIT 286 291 287 292 … … 301 306 # @param $(outbase) Output basename (full). Use this for list files and such. 302 307 # @param $(objsuff) Object suffix. 303 TOOL_VCC14 1AMD64_COMPILE_RC_DEPEND =304 TOOL_VCC14 1AMD64_COMPILE_RC_DEPORD =305 TOOL_VCC14 1AMD64_COMPILE_RC_OUTPUT =306 define TOOL_VCC14 1AMD64_COMPILE_RC_CMDS307 $(QUIET)$(TOOL_VCC14 1AMD64_RC) \308 TOOL_VCC142AMD64_COMPILE_RC_DEPEND = 309 TOOL_VCC142AMD64_COMPILE_RC_DEPORD = 310 TOOL_VCC142AMD64_COMPILE_RC_OUTPUT = 311 define TOOL_VCC142AMD64_COMPILE_RC_CMDS 312 $(QUIET)$(TOOL_VCC142AMD64_RC) \ 308 313 $(flags) $(qaddprefix sh,/i, $(subst /,\\,$(incs))) $(qaddprefix sh,/d, $(defs))\ 309 314 /fo$(obj)\ … … 322 327 # @param $(outbase) Output basename (full). Use this for list files and such. 323 328 # 324 TOOL_VCC14 1AMD64_LINK_LIBRARY_DEPEND = $(othersrc)325 TOOL_VCC14 1AMD64_LINK_LIBRARY_DEPORD =326 TOOL_VCC14 1AMD64_LINK_LIBRARY_OUTPUT = $(outbase).rsp327 TOOL_VCC14 1AMD64_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb328 define TOOL_VCC14 1AMD64_LINK_LIBRARY_CMDS329 TOOL_VCC142AMD64_LINK_LIBRARY_DEPEND = $(othersrc) 330 TOOL_VCC142AMD64_LINK_LIBRARY_DEPORD = 331 TOOL_VCC142AMD64_LINK_LIBRARY_OUTPUT = $(outbase).rsp 332 TOOL_VCC142AMD64_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb 333 define TOOL_VCC142AMD64_LINK_LIBRARY_CMDS 329 334 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 330 335 $(qforeachfile u,arg, $(objs) $(filter-out %.def,$(othersrc)),$(quote-sh "$(subst /,\,$(arg))")) \ 331 336 $(qforeachfile u,arg, $(filter %.def,$(othersrc)),$(quote-sh "/DEF:$(subst /,\,$(arg))")) 332 $(QUIET)$(TOOL_VCC14 1AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_AR) $(flags) /OUT:$(out) @$(outbase).rsp337 $(QUIET)$(TOOL_VCC142AMD64_KSUBMIT_DD) $(TOOL_VCC142AMD64_AR) $(flags) /OUT:$(out) @$(outbase).rsp 333 338 endef 334 339 … … 348 353 # @param $(outbase) Output basename (full). Use this for list files and such. 349 354 # 350 TOOL_VCC14 1AMD64_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)351 TOOL_VCC14 1AMD64_LINK_PROGRAM_DEPORD =352 TOOL_VCC14 1AMD64_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp353 TOOL_VCC14 1AMD64_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest354 TOOL_VCC14 1AMD64_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb355 TOOL_VCC14 1AMD64_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb356 define TOOL_VCC14 1AMD64_LINK_PROGRAM_CMDS355 TOOL_VCC142AMD64_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 356 TOOL_VCC142AMD64_LINK_PROGRAM_DEPORD = 357 TOOL_VCC142AMD64_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 358 TOOL_VCC142AMD64_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 359 TOOL_VCC142AMD64_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb 360 TOOL_VCC142AMD64_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 361 define TOOL_VCC142AMD64_LINK_PROGRAM_CMDS 357 362 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 358 363 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 359 $(QUIET)$(TOOL_VCC14 1AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_LD) $(flags) \364 $(QUIET)$(TOOL_VCC142AMD64_KSUBMIT_DD) $(TOOL_VCC142AMD64_LD) $(flags) \ 360 365 /OUT:$(out) \ 361 366 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 365 370 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 366 371 @$(outbase).rsp 367 ifndef TOOL_VCC14 1AMD64_NO_AUTO_MANIFEST372 ifndef TOOL_VCC142AMD64_NO_AUTO_MANIFEST 368 373 $(QUIET)$(TEST) -f $(out).manifest -- \ 369 $(TOOL_VCC14 1AMD64_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out))374 $(TOOL_VCC142AMD64_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out)) 370 375 endif 371 376 endef … … 386 391 # 387 392 # @param $(outbase) Output basename (full). Use this for list files and such. 388 TOOL_VCC14 1AMD64_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)389 TOOL_VCC14 1AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB))390 TOOL_VCC14 1AMD64_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp391 TOOL_VCC14 1AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp392 TOOL_VCC14 1AMD64_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp393 TOOL_VCC14 1AMD64_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb394 TOOL_VCC14 1AMD64_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb395 define TOOL_VCC14 1AMD64_LINK_DLL_CMDS393 TOOL_VCC142AMD64_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 394 TOOL_VCC142AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 395 TOOL_VCC142AMD64_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp 396 TOOL_VCC142AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 397 TOOL_VCC142AMD64_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp 398 TOOL_VCC142AMD64_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb 399 TOOL_VCC142AMD64_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 400 define TOOL_VCC142AMD64_LINK_DLL_CMDS 396 401 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 397 402 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 398 $(QUIET)$(TOOL_VCC14 1AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_LD) $(flags) \403 $(QUIET)$(TOOL_VCC142AMD64_KSUBMIT_DD) $(TOOL_VCC142AMD64_LD) $(flags) \ 399 404 /OUT:$(out) \ 400 405 /IMPLIB:$(outbase).lib \ … … 406 411 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 407 412 @$(outbase).rsp 408 ifndef TOOL_VCC14 1AMD64_NO_AUTO_MANIFEST413 ifndef TOOL_VCC142AMD64_NO_AUTO_MANIFEST 409 414 $(QUIET)$(TEST) -f $(out).manifest -- \ 410 $(TOOL_VCC14 1AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'415 $(TOOL_VCC142AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 411 416 endif 412 417 $(QUIET)$(TEST) -f $(outbase).lib -- $(KLIBTWEAKER_EXT) --clear-timestamps $(outbase).lib … … 430 435 # 431 436 # @param $(outbase) Output basename (full). Use this for list files and such. 432 TOOL_VCC14 1AMD64_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)433 TOOL_VCC14 1AMD64_LINK_SYSMOD_DEPORD =434 TOOL_VCC14 1AMD64_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest435 TOOL_VCC14 1AMD64_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp436 TOOL_VCC14 1AMD64_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb437 TOOL_VCC14 1AMD64_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb438 define TOOL_VCC14 1AMD64_LINK_SYSMOD_CMDS437 TOOL_VCC142AMD64_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 438 TOOL_VCC142AMD64_LINK_SYSMOD_DEPORD = 439 TOOL_VCC142AMD64_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 440 TOOL_VCC142AMD64_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 441 TOOL_VCC142AMD64_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb 442 TOOL_VCC142AMD64_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 443 define TOOL_VCC142AMD64_LINK_SYSMOD_CMDS 439 444 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 440 445 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 441 $(QUIET)$(TOOL_VCC14 1AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_LD) $(flags) \446 $(QUIET)$(TOOL_VCC142AMD64_KSUBMIT_DD) $(TOOL_VCC142AMD64_LD) $(flags) \ 442 447 /OUT:$(out) \ 443 448 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 447 452 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 448 453 @$(outbase).rsp 449 ifndef TOOL_VCC14 1AMD64_NO_AUTO_MANIFEST454 ifndef TOOL_VCC142AMD64_NO_AUTO_MANIFEST 450 455 $(QUIET)$(TEST) -f $(out).manifest -- \ 451 $(TOOL_VCC14 1AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'456 $(TOOL_VCC142AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 452 457 endif 453 458 endef -
trunk/kBuild/tools/VCC142X86.kmk
r3332 r3339 1 1 # $Id$ 2 2 ## @file 3 # kBuild Tool Config - Visual C++ 14. 1 (aka Visual 2017 and MSC v19.10), targeting x86.3 # kBuild Tool Config - Visual C++ 14.2 (aka Visual 2019 and MSC v19.20), targeting x86. 4 4 # 5 5 … … 32 32 # 33 33 34 ifndef TOOL_VCC14 135 include $(KBUILD_PATH)/tools/VCC14 1.kmk36 endif 37 38 TOOL_VCC14 1X86 := Visual C++ 14.1 (aka Visual 2017 and MSC v19.1), targeting x8634 ifndef TOOL_VCC142 35 include $(KBUILD_PATH)/tools/VCC142.kmk 36 endif 37 38 TOOL_VCC142X86 := Visual C++ 14.2 (aka Visual 2019 and MSC v19.20), targeting x86 39 39 40 40 # 41 41 # Tool Specific Properties 42 42 # 43 ifndef PATH_TOOL_VCC14 1X8644 PATH_TOOL_VCC14 1X86 := $(PATH_TOOL_VCC141)43 ifndef PATH_TOOL_VCC142X86 44 PATH_TOOL_VCC142X86 := $(PATH_TOOL_VCC142) 45 45 else 46 46 # Resolve any fancy stuff once and for all. 47 PATH_TOOL_VCC14 1X86 := $(PATH_TOOL_VCC141X86)48 endif 49 50 ifndef PATH_TOOL_VCC14 1X86_BIN51 PATH_TOOL_VCC14 1X86_BIN := $(PATH_TOOL_VCC141_HOST_BIN)/x8647 PATH_TOOL_VCC142X86 := $(PATH_TOOL_VCC142X86) 48 endif 49 50 ifndef PATH_TOOL_VCC142X86_BIN 51 PATH_TOOL_VCC142X86_BIN := $(PATH_TOOL_VCC142_HOST_BIN)/x86 52 52 else 53 PATH_TOOL_VCC14 1X86_BIN := $(PATH_TOOL_VCC141_BIN)54 endif 55 PATH_TOOL_VCC14 1X86_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC141X86_BIN))53 PATH_TOOL_VCC142X86_BIN := $(PATH_TOOL_VCC142_BIN) 54 endif 55 PATH_TOOL_VCC142X86_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC142X86_BIN)) 56 56 57 57 # A bunch of DLLs are only in the subdir matching the host one, so we need to add it to the PATH when cross compiling. 58 ifndef PATH_TOOL_VCC14 1X86_DLL_BIN59 ifneq ($(PATH_TOOL_VCC14 1_HOST_DLL_BIN),$(PATH_TOOL_VCC141X86_BIN))60 PATH_TOOL_VCC14 1X86_DLL_BIN := $(PATH_TOOL_VCC141_HOST_DLL_BIN)58 ifndef PATH_TOOL_VCC142X86_DLL_BIN 59 ifneq ($(PATH_TOOL_VCC142_HOST_DLL_BIN),$(PATH_TOOL_VCC142X86_BIN)) 60 PATH_TOOL_VCC142X86_DLL_BIN := $(PATH_TOOL_VCC142_HOST_DLL_BIN) 61 61 endif 62 62 endif 63 63 64 ifndef PATH_TOOL_VCC14 1X86_LIB65 PATH_TOOL_VCC14 1X86_LIB := $(PATH_TOOL_VCC141_LIB.x86)66 endif 67 ifndef PATH_TOOL_VCC14 1_ONECORE_LIB68 PATH_TOOL_VCC14 1_ONECORE_LIB := $(PATH_TOOL_VCC141_ONECORE_LIB.x86)69 endif 70 71 ifndef PATH_TOOL_VCC14 1X86_INC72 PATH_TOOL_VCC14 1X86_INC := $(PATH_TOOL_VCC141_INC)73 endif 74 75 ifndef PATH_TOOL_VCC14 1X86_ATLMFC_INC76 PATH_TOOL_VCC14 1X86_ATLMFC_INC := $(PATH_TOOL_VCC141_ATLMFC_INC.x86)77 endif 78 ifndef PATH_TOOL_VCC14 1X86_ATLMFC_LIB79 PATH_TOOL_VCC14 1X86_ATLMFC_LIB := $(PATH_TOOL_VCC141_ATLMFC_LIB.x86)80 endif 81 82 TOOL_VCC14 1X86_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/cl.exe83 TOOL_VCC14 1X86_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/cl.exe84 TOOL_VCC14 1X86_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/ml64.exe85 #TOOL_VCC14 1X86_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/lib.exe - just an exec wrapper for the below86 TOOL_VCC14 1X86_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/link.exe /LIB87 TOOL_VCC14 1X86_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/link.exe88 TOOL_VCC14 1X86_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/dumpbin.exe89 TOOL_VCC14 1X86_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/editbin.exe90 91 TOOL_VCC14 1X86_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC141_RC_CACHED)92 TOOL_VCC14 1X86_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC141_MT_CACHED)93 94 undefine TOOL_VCC14 1X86_USE_KSUBMIT # for now95 ifdef TOOL_VCC14 1X86_USE_KSUBMIT64 ifndef PATH_TOOL_VCC142X86_LIB 65 PATH_TOOL_VCC142X86_LIB := $(PATH_TOOL_VCC142_LIB.x86) 66 endif 67 ifndef PATH_TOOL_VCC142_ONECORE_LIB 68 PATH_TOOL_VCC142_ONECORE_LIB := $(PATH_TOOL_VCC142_ONECORE_LIB.x86) 69 endif 70 71 ifndef PATH_TOOL_VCC142X86_INC 72 PATH_TOOL_VCC142X86_INC := $(PATH_TOOL_VCC142_INC) 73 endif 74 75 ifndef PATH_TOOL_VCC142X86_ATLMFC_INC 76 PATH_TOOL_VCC142X86_ATLMFC_INC := $(PATH_TOOL_VCC142_ATLMFC_INC.x86) 77 endif 78 ifndef PATH_TOOL_VCC142X86_ATLMFC_LIB 79 PATH_TOOL_VCC142X86_ATLMFC_LIB := $(PATH_TOOL_VCC142_ATLMFC_LIB.x86) 80 endif 81 82 TOOL_VCC142X86_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/cl.exe 83 TOOL_VCC142X86_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/cl.exe 84 TOOL_VCC142X86_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/ml64.exe 85 #TOOL_VCC142X86_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/lib.exe - just an exec wrapper for the below 86 TOOL_VCC142X86_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/link.exe /LIB 87 TOOL_VCC142X86_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/link.exe 88 TOOL_VCC142X86_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/dumpbin.exe 89 TOOL_VCC142X86_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC142X86_BIN_QSH)/editbin.exe 90 91 TOOL_VCC142X86_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC142_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC142_RC_CACHED) 92 TOOL_VCC142X86_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC142_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC142_MT_CACHED) 93 94 undefine TOOL_VCC142X86_USE_KSUBMIT # for now 95 ifdef TOOL_VCC142X86_USE_KSUBMIT 96 96 ifeq ($(KBUILD_HOST),win) 97 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC14 1X86_BIN)),-3),64/)98 TOOL_VCC14 1X86_KSUBMIT ?= kmk_builtin_kSubmit --64-bit97 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC142X86_BIN)),-3),64/) 98 TOOL_VCC142X86_KSUBMIT ?= kmk_builtin_kSubmit --64-bit 99 99 else 100 TOOL_VCC14 1X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit100 TOOL_VCC142X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit 101 101 endif 102 ifdef PATH_TOOL_VCC14 1X86_DLL_BIN103 TOOL_VCC14 1X86_KSUBMIT := $(TOOL_VCC141X86_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141X86_DLL_BIN));"102 ifdef PATH_TOOL_VCC142X86_DLL_BIN 103 TOOL_VCC142X86_KSUBMIT := $(TOOL_VCC142X86_KSUBMIT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC142X86_DLL_BIN));" 104 104 endif 105 TOOL_VCC14 1X86_KSUBMIT_DD := $(TOOL_VCC141X86_KSUBMIT) --105 TOOL_VCC142X86_KSUBMIT_DD := $(TOOL_VCC142X86_KSUBMIT) -- 106 106 endif 107 107 endif 108 ifdef PATH_TOOL_VCC14 1X86_DLL_BIN109 TOOL_VCC14 1X86_SETUP_ENV := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC141X86_DLL_BIN));" --$(SP)110 ifndef TOOL_VCC14 1X86_KSUBMIT_DD111 TOOL_VCC14 1X86_KSUBMIT_DD := $(TOOL_VCC141X86_SETUP_ENV)108 ifdef PATH_TOOL_VCC142X86_DLL_BIN 109 TOOL_VCC142X86_SETUP_ENV := $(REDIRECT) --prepend "PATH=$(requote shell-in-dq,$(PATH_TOOL_VCC142X86_DLL_BIN));" --$(SP) 110 ifndef TOOL_VCC142X86_KSUBMIT_DD 111 TOOL_VCC142X86_KSUBMIT_DD := $(TOOL_VCC142X86_SETUP_ENV) 112 112 endif 113 113 endif 114 114 115 # Redist (more stuff in VCC141.kmk). 116 PATH_TOOL_VCC141X86_REDIST ?= $(PATH_TOOL_VCC141_REDIST)/x86 117 PATH_TOOL_VCC141X86_REDIST_CRT = $(PATH_TOOL_VCC141X86_REDIST)/$(TOOL_VCC141_REDIST_CRT_SUBDIR) 118 PATH_TOOL_VCC141X86_REDIST_DEBUG ?= $(PATH_TOOL_VCC141_REDIST_DEBUG)/x86 119 PATH_TOOL_VCC141X86_REDIST_DEBUG_CRT = $(PATH_TOOL_VCC141X86_REDIST_DEBUG)/$(TOOL_VCC141_REDIST_CRT_SUBDIR) 115 # Redist (more stuff in VCC142.kmk). 116 PATH_TOOL_VCC142X86_REDIST ?= $(PATH_TOOL_VCC142_REDIST)/x86 117 PATH_TOOL_VCC142X86_REDIST_CRT = $(PATH_TOOL_VCC142X86_REDIST)/$(TOOL_VCC142_REDIST_CRT_SUBDIR) 118 PATH_TOOL_VCC142X86_REDIST_DEBUG ?= $(PATH_TOOL_VCC142_REDIST_DEBUG)/x86 119 PATH_TOOL_VCC142X86_REDIST_DEBUG_CRT = $(PATH_TOOL_VCC142X86_REDIST_DEBUG)/$(TOOL_VCC142_REDIST_CRT_SUBDIR) 120 TOOL_VCC142X64_REDIST_CRT_DLLS = $(TOOL_VCC142_REDIST_CRT_DLLS.x86) 121 TOOL_VCC142X64_REDIST_CONCRT_DLLS = $(TOOL_VCC142_REDIST_CONCRT_DLLS.x86) 122 TOOL_VCC142X64_REDIST_CPP_DLLS = $(TOOL_VCC142_REDIST_CPP_DLLS.x86) 123 TOOL_VCC142X64_REDIST_WINRT_DLLS = $(TOOL_VCC142_REDIST_WINRT_DLLS.x86) 124 120 125 121 126 # 122 127 # Properties used by kBuild 123 128 # 124 TOOL_VCC14 1X86_COBJSUFF ?= .obj125 TOOL_VCC14 1X86_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256126 TOOL_VCC14 1X86_CFLAGS.debug ?=127 TOOL_VCC14 1X86_CFLAGS.dbgopt ?= -O2128 TOOL_VCC14 1X86_CFLAGS.release ?= -O2129 TOOL_VCC14 1X86_CFLAGS.profile ?= -O2130 TOOL_VCC14 1X86_CINCS ?= $(PATH_TOOL_VCC141X86_INC)131 TOOL_VCC14 1X86_CDEFS ?=132 133 TOOL_VCC14 1X86_CXXOBJSUFF ?= .obj134 TOOL_VCC14 1X86_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256135 TOOL_VCC14 1X86_CXXFLAGS.debug ?=136 TOOL_VCC14 1X86_CXXFLAGS.dbgopt ?= -O2137 TOOL_VCC14 1X86_CXXFLAGS.release ?= -O2138 TOOL_VCC14 1X86_CXXFLAGS.profile ?= -O2139 TOOL_VCC14 1X86_CXXINCS ?= $(PATH_TOOL_VCC141X86_INC) $(PATH_TOOL_VCC141X86_ATLMFC_INC)140 TOOL_VCC14 1X86_CXXDEFS ?=141 142 TOOL_VCC14 1X86_ASOBJSUFF ?= .obj143 144 TOOL_VCC14 1X86_RCOBJSUFF ?= .res145 TOOL_VCC14 1X86_RCINCS ?= $(PATH_TOOL_VCC141X86_INC) $(PATH_TOOL_VCC141X86_ATLMFC_INC)146 147 TOOL_VCC14 1X86_ARFLAGS ?= -nologo -machine:x86148 TOOL_VCC14 1X86_ARLIBSUFF ?= .lib149 150 TOOL_VCC14 1X86_LDFLAGS ?= -nologo -machine:x86151 TOOL_VCC14 1X86_LDFLAGS.debug ?= -debug152 TOOL_VCC14 1X86_LDFLAGS.dbgopt ?= -debug153 TOOL_VCC14 1X86_LDFLAGS.profile ?= -debug154 TOOL_VCC14 1X86_LDFLAGS.release ?=129 TOOL_VCC142X86_COBJSUFF ?= .obj 130 TOOL_VCC142X86_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256 131 TOOL_VCC142X86_CFLAGS.debug ?= 132 TOOL_VCC142X86_CFLAGS.dbgopt ?= -O2 133 TOOL_VCC142X86_CFLAGS.release ?= -O2 134 TOOL_VCC142X86_CFLAGS.profile ?= -O2 135 TOOL_VCC142X86_CINCS ?= $(PATH_TOOL_VCC142X86_INC) 136 TOOL_VCC142X86_CDEFS ?= 137 138 TOOL_VCC142X86_CXXOBJSUFF ?= .obj 139 TOOL_VCC142X86_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256 140 TOOL_VCC142X86_CXXFLAGS.debug ?= 141 TOOL_VCC142X86_CXXFLAGS.dbgopt ?= -O2 142 TOOL_VCC142X86_CXXFLAGS.release ?= -O2 143 TOOL_VCC142X86_CXXFLAGS.profile ?= -O2 144 TOOL_VCC142X86_CXXINCS ?= $(PATH_TOOL_VCC142X86_INC) $(PATH_TOOL_VCC142X86_ATLMFC_INC) 145 TOOL_VCC142X86_CXXDEFS ?= 146 147 TOOL_VCC142X86_ASOBJSUFF ?= .obj 148 149 TOOL_VCC142X86_RCOBJSUFF ?= .res 150 TOOL_VCC142X86_RCINCS ?= $(PATH_TOOL_VCC142X86_INC) $(PATH_TOOL_VCC142X86_ATLMFC_INC) 151 152 TOOL_VCC142X86_ARFLAGS ?= -nologo -machine:x86 153 TOOL_VCC142X86_ARLIBSUFF ?= .lib 154 155 TOOL_VCC142X86_LDFLAGS ?= -nologo -machine:x86 156 TOOL_VCC142X86_LDFLAGS.debug ?= -debug 157 TOOL_VCC142X86_LDFLAGS.dbgopt ?= -debug 158 TOOL_VCC142X86_LDFLAGS.profile ?= -debug 159 TOOL_VCC142X86_LDFLAGS.release ?= 155 160 156 161 … … 169 174 # @param $(outbase) Output basename (full). Use this for list files and such. 170 175 # @param $(objsuff) Object suffix. 171 TOOL_VCC14 1X86_COMPILE_C_DEPEND =172 TOOL_VCC14 1X86_COMPILE_C_DEPORD =173 TOOL_VCC14 1X86_COMPILE_C_OUTPUT =174 TOOL_VCC14 1X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC141_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb)175 ifdef TOOL_VCC14 1X86_KSUBMIT176 TOOL_VCC14 1X86_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed177 define TOOL_VCC14 1X86_COMPILE_C_CMDS178 $(QUIET)$(TOOL_VCC14 1X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\179 -- $(TOOL_VCC14 1X86_CC) -c\176 TOOL_VCC142X86_COMPILE_C_DEPEND = 177 TOOL_VCC142X86_COMPILE_C_DEPORD = 178 TOOL_VCC142X86_COMPILE_C_OUTPUT = 179 TOOL_VCC142X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC142_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC142_PDB, $(outbase)-obj,idb) 180 ifdef TOOL_VCC142X86_KSUBMIT 181 TOOL_VCC142X86_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed 182 define TOOL_VCC142X86_COMPILE_C_CMDS 183 $(QUIET)$(TOOL_VCC142X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 184 -- $(TOOL_VCC142X86_CC) -c\ 180 185 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 181 186 -Fd$(outbase)-obj.pdb \ … … 184 189 endef 185 190 else 186 define TOOL_VCC14 1X86_COMPILE_C_CMDS187 $(QUIET)$(TOOL_VCC14 1X86_SETUP_ENV)$(TOOL_VCC141X86_CC) -c\191 define TOOL_VCC142X86_COMPILE_C_CMDS 192 $(QUIET)$(TOOL_VCC142X86_SETUP_ENV)$(TOOL_VCC142X86_CC) -c\ 188 193 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 189 194 -Fd$(outbase)-obj.pdb \ … … 192 197 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 193 198 endef 194 endif # !TOOL_VCC14 1X86_KSUBMIT199 endif # !TOOL_VCC142X86_KSUBMIT 195 200 196 201 … … 208 213 # @param $(outbase) Output basename (full). Use this for list files and such. 209 214 # @param $(objsuff) Object suffix. 210 TOOL_VCC14 1X86_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE)211 TOOL_VCC14 1X86_COMPILE_CXX_DEPORD =212 TOOL_VCC14 1X86_COMPILE_CXX_OUTPUT =213 TOOL_VCC14 1X86_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\214 ,,$(call TOOL_VCC14 1_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb))215 ifdef TOOL_VCC14 1X86_KSUBMIT216 TOOL_VCC14 1X86_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed217 define TOOL_VCC14 1X86_COMPILE_CXX_CMDS218 $(QUIET)$(TOOL_VCC14 1X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\219 -- $(TOOL_VCC14 1X86_CXX) -c\215 TOOL_VCC142X86_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE) 216 TOOL_VCC142X86_COMPILE_CXX_DEPORD = 217 TOOL_VCC142X86_COMPILE_CXX_OUTPUT = 218 TOOL_VCC142X86_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\ 219 ,,$(call TOOL_VCC142_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC142_PDB, $(outbase)-obj,idb)) 220 ifdef TOOL_VCC142X86_KSUBMIT 221 TOOL_VCC142X86_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed 222 define TOOL_VCC142X86_COMPILE_CXX_CMDS 223 $(QUIET)$(TOOL_VCC142X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 224 -- $(TOOL_VCC142X86_CXX) -c\ 220 225 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 221 226 $(if-expr defined($(target)_PCH_HDR)\ … … 226 231 endef 227 232 else 228 define TOOL_VCC14 1X86_COMPILE_CXX_CMDS229 $(QUIET)$(TOOL_VCC14 1X86_SETUP_ENV)$(TOOL_VCC141X86_CXX) -c\233 define TOOL_VCC142X86_COMPILE_CXX_CMDS 234 $(QUIET)$(TOOL_VCC142X86_SETUP_ENV)$(TOOL_VCC142X86_CXX) -c\ 230 235 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 231 236 $(if-expr defined($(target)_PCH_HDR)\ … … 236 241 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 237 242 endef 238 endif # !TOOL_VCC14 1X86_KSUBMIT243 endif # !TOOL_VCC142X86_KSUBMIT 239 244 240 245 … … 245 250 # related _1_VCC_PCH_FILE and add -Yc. 246 251 # 247 TOOL_VCC14 1X86-PCH := Helper for creating precompiled header using CXX handling.248 TOOL_VCC14 1X86-PCH_EXTENDS := VCC141X86249 TOOL_VCC14 1X86-PCH_CXXOBJSUFF := .obj250 TOOL_VCC14 1X86-PCH_CXXINCS = $(TOOL_VCC141X86_CXXINCS)251 TOOL_VCC14 1X86-PCH_CXXFLAGS = $(TOOL_VCC141X86_CXXFLAGS) -FS252 TOOL_VCC14 1X86-PCH_CXXFLAGS.debug = $(TOOL_VCC141X86_CXXFLAGS.debug)253 TOOL_VCC14 1X86-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC141X86_CXXFLAGS.dbgopt)254 TOOL_VCC14 1X86-PCH_CXXFLAGS.release = $(TOOL_VCC141X86_CXXFLAGS.release)255 TOOL_VCC14 1X86-PCH_CXXFLAGS.profile = $(TOOL_VCC141X86_CXXFLAGS.profile)256 TOOL_VCC14 1X86-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE)257 TOOL_VCC14 1X86-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE)258 TOOL_VCC14 1X86-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB)259 TOOL_VCC14 1X86-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE)260 ifdef TOOL_VCC14 1X86_KSUBMIT261 define TOOL_VCC14 1X86-PCH_COMPILE_CXX_CMDS252 TOOL_VCC142X86-PCH := Helper for creating precompiled header using CXX handling. 253 TOOL_VCC142X86-PCH_EXTENDS := VCC142X86 254 TOOL_VCC142X86-PCH_CXXOBJSUFF := .obj 255 TOOL_VCC142X86-PCH_CXXINCS = $(TOOL_VCC142X86_CXXINCS) 256 TOOL_VCC142X86-PCH_CXXFLAGS = $(TOOL_VCC142X86_CXXFLAGS) -FS 257 TOOL_VCC142X86-PCH_CXXFLAGS.debug = $(TOOL_VCC142X86_CXXFLAGS.debug) 258 TOOL_VCC142X86-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC142X86_CXXFLAGS.dbgopt) 259 TOOL_VCC142X86-PCH_CXXFLAGS.release = $(TOOL_VCC142X86_CXXFLAGS.release) 260 TOOL_VCC142X86-PCH_CXXFLAGS.profile = $(TOOL_VCC142X86_CXXFLAGS.profile) 261 TOOL_VCC142X86-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE) 262 TOOL_VCC142X86-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE) 263 TOOL_VCC142X86-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 264 TOOL_VCC142X86-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE) 265 ifdef TOOL_VCC142X86_KSUBMIT 266 define TOOL_VCC142X86-PCH_COMPILE_CXX_CMDS 262 267 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 263 $(QUIET)$(TOOL_VCC14 1X86_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\264 -- $(TOOL_VCC14 1X86_CXX) -c -Yc\268 $(QUIET)$(TOOL_VCC142X86_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\ 269 -- $(TOOL_VCC142X86_CXX) -c -Yc\ 265 270 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 266 271 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 271 276 endef 272 277 else 273 define TOOL_VCC14 1X86-PCH_COMPILE_CXX_CMDS278 define TOOL_VCC142X86-PCH_COMPILE_CXX_CMDS 274 279 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 275 $(QUIET)$(TOOL_VCC14 1X86_SETUP_ENV)$(TOOL_VCC141X86_CXX) -c -Yc\280 $(QUIET)$(TOOL_VCC142X86_SETUP_ENV)$(TOOL_VCC142X86_CXX) -c -Yc\ 276 281 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 277 282 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 283 288 284 289 endef 285 endif # !TOOL_VCC14 1X86_KSUBMIT290 endif # !TOOL_VCC142X86_KSUBMIT 286 291 287 292 … … 301 306 # @param $(outbase) Output basename (full). Use this for list files and such. 302 307 # @param $(objsuff) Object suffix. 303 TOOL_VCC14 1X86_COMPILE_RC_DEPEND =304 TOOL_VCC14 1X86_COMPILE_RC_DEPORD =305 TOOL_VCC14 1X86_COMPILE_RC_OUTPUT =306 define TOOL_VCC14 1X86_COMPILE_RC_CMDS307 $(QUIET)$(TOOL_VCC14 1X86_RC) \308 TOOL_VCC142X86_COMPILE_RC_DEPEND = 309 TOOL_VCC142X86_COMPILE_RC_DEPORD = 310 TOOL_VCC142X86_COMPILE_RC_OUTPUT = 311 define TOOL_VCC142X86_COMPILE_RC_CMDS 312 $(QUIET)$(TOOL_VCC142X86_RC) \ 308 313 $(flags) $(qaddprefix sh,/i, $(subst /,\\,$(incs))) $(qaddprefix sh,/d, $(defs))\ 309 314 /fo$(obj)\ … … 322 327 # @param $(outbase) Output basename (full). Use this for list files and such. 323 328 # 324 TOOL_VCC14 1X86_LINK_LIBRARY_DEPEND = $(othersrc)325 TOOL_VCC14 1X86_LINK_LIBRARY_DEPORD =326 TOOL_VCC14 1X86_LINK_LIBRARY_OUTPUT = $(outbase).rsp327 TOOL_VCC14 1X86_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb328 define TOOL_VCC14 1X86_LINK_LIBRARY_CMDS329 TOOL_VCC142X86_LINK_LIBRARY_DEPEND = $(othersrc) 330 TOOL_VCC142X86_LINK_LIBRARY_DEPORD = 331 TOOL_VCC142X86_LINK_LIBRARY_OUTPUT = $(outbase).rsp 332 TOOL_VCC142X86_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb 333 define TOOL_VCC142X86_LINK_LIBRARY_CMDS 329 334 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 330 335 $(qforeachfile u,arg, $(objs) $(filter-out %.def,$(othersrc)),$(quote-sh "$(subst /,\,$(arg))")) \ 331 336 $(qforeachfile u,arg, $(filter %.def,$(othersrc)),$(quote-sh "/DEF:$(subst /,\,$(arg))")) 332 $(QUIET)$(TOOL_VCC14 1X86_KSUBMIT_DD) $(TOOL_VCC141X86_AR) $(flags) /OUT:$(out) @$(outbase).rsp337 $(QUIET)$(TOOL_VCC142X86_KSUBMIT_DD) $(TOOL_VCC142X86_AR) $(flags) /OUT:$(out) @$(outbase).rsp 333 338 endef 334 339 … … 348 353 # @param $(outbase) Output basename (full). Use this for list files and such. 349 354 # 350 TOOL_VCC14 1X86_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)351 TOOL_VCC14 1X86_LINK_PROGRAM_DEPORD =352 TOOL_VCC14 1X86_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp353 TOOL_VCC14 1X86_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest354 TOOL_VCC14 1X86_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb355 TOOL_VCC14 1X86_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb356 define TOOL_VCC14 1X86_LINK_PROGRAM_CMDS355 TOOL_VCC142X86_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 356 TOOL_VCC142X86_LINK_PROGRAM_DEPORD = 357 TOOL_VCC142X86_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 358 TOOL_VCC142X86_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 359 TOOL_VCC142X86_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb 360 TOOL_VCC142X86_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 361 define TOOL_VCC142X86_LINK_PROGRAM_CMDS 357 362 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 358 363 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 359 $(QUIET)$(TOOL_VCC14 1X86_KSUBMIT_DD) $(TOOL_VCC141X86_LD) $(flags) \364 $(QUIET)$(TOOL_VCC142X86_KSUBMIT_DD) $(TOOL_VCC142X86_LD) $(flags) \ 360 365 /OUT:$(out) \ 361 366 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 365 370 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 366 371 @$(outbase).rsp 367 ifndef TOOL_VCC14 1X86_NO_AUTO_MANIFEST372 ifndef TOOL_VCC142X86_NO_AUTO_MANIFEST 368 373 $(QUIET)$(TEST) -f $(out).manifest -- \ 369 $(TOOL_VCC14 1X86_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out))374 $(TOOL_VCC142X86_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out)) 370 375 endif 371 376 endef … … 386 391 # 387 392 # @param $(outbase) Output basename (full). Use this for list files and such. 388 TOOL_VCC14 1X86_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)389 TOOL_VCC14 1X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB))390 TOOL_VCC14 1X86_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp391 TOOL_VCC14 1X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp392 TOOL_VCC14 1X86_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp393 TOOL_VCC14 1X86_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb394 TOOL_VCC14 1X86_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb395 define TOOL_VCC14 1X86_LINK_DLL_CMDS393 TOOL_VCC142X86_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 394 TOOL_VCC142X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 395 TOOL_VCC142X86_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp 396 TOOL_VCC142X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 397 TOOL_VCC142X86_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp 398 TOOL_VCC142X86_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb 399 TOOL_VCC142X86_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 400 define TOOL_VCC142X86_LINK_DLL_CMDS 396 401 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 397 402 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 398 $(QUIET)$(TOOL_VCC14 1X86_KSUBMIT_DD) $(TOOL_VCC141X86_LD) $(flags) \403 $(QUIET)$(TOOL_VCC142X86_KSUBMIT_DD) $(TOOL_VCC142X86_LD) $(flags) \ 399 404 /OUT:$(out) \ 400 405 /IMPLIB:$(outbase).lib \ … … 406 411 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 407 412 @$(outbase).rsp 408 ifndef TOOL_VCC14 1X86_NO_AUTO_MANIFEST413 ifndef TOOL_VCC142X86_NO_AUTO_MANIFEST 409 414 $(QUIET)$(TEST) -f $(out).manifest -- \ 410 $(TOOL_VCC14 1X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'415 $(TOOL_VCC142X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 411 416 endif 412 417 $(QUIET)$(TEST) -f $(outbase).lib -- $(KLIBTWEAKER_EXT) --clear-timestamps $(outbase).lib … … 430 435 # 431 436 # @param $(outbase) Output basename (full). Use this for list files and such. 432 TOOL_VCC14 1X86_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)433 TOOL_VCC14 1X86_LINK_SYSMOD_DEPORD =434 TOOL_VCC14 1X86_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest435 TOOL_VCC14 1X86_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp436 TOOL_VCC14 1X86_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb437 TOOL_VCC14 1X86_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb438 define TOOL_VCC14 1X86_LINK_SYSMOD_CMDS437 TOOL_VCC142X86_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 438 TOOL_VCC142X86_LINK_SYSMOD_DEPORD = 439 TOOL_VCC142X86_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 440 TOOL_VCC142X86_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 441 TOOL_VCC142X86_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb 442 TOOL_VCC142X86_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 443 define TOOL_VCC142X86_LINK_SYSMOD_CMDS 439 444 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 440 445 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 441 $(QUIET)$(TOOL_VCC14 1X86_KSUBMIT_DD) $(TOOL_VCC141X86_LD) $(flags) \446 $(QUIET)$(TOOL_VCC142X86_KSUBMIT_DD) $(TOOL_VCC142X86_LD) $(flags) \ 442 447 /OUT:$(out) \ 443 448 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 447 452 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 448 453 @$(outbase).rsp 449 ifndef TOOL_VCC14 1X86_NO_AUTO_MANIFEST454 ifndef TOOL_VCC142X86_NO_AUTO_MANIFEST 450 455 $(QUIET)$(TEST) -f $(out).manifest -- \ 451 $(TOOL_VCC14 1X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'456 $(TOOL_VCC142X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 452 457 endif 453 458 endef
Note:
See TracChangeset
for help on using the changeset viewer.