Changeset 3325 in kBuild
- Timestamp:
- Apr 17, 2020 2:02:23 AM (5 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/VCC141.kmk
r3323 r3325 141 141 # 142 142 TOOL_VCC141_COBJSUFF ?= .obj 143 TOOL_VCC141_CFLAGS ?= -TC -nologo -Zi 143 TOOL_VCC141_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256 144 144 TOOL_VCC141_CFLAGS.debug ?= 145 145 TOOL_VCC141_CFLAGS.dbgopt ?= -O2 … … 150 150 151 151 TOOL_VCC141_CXXOBJSUFF ?= .obj 152 TOOL_VCC141_CXXFLAGS ?= -TP -nologo -Zi 152 TOOL_VCC141_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256 153 153 TOOL_VCC141_CXXFLAGS.debug ?= 154 154 TOOL_VCC141_CXXFLAGS.dbgopt ?= -O2 -
trunk/kBuild/tools/VCC141AMD64.kmk
r3323 r3325 103 103 # 104 104 TOOL_VCC141AMD64_COBJSUFF ?= .obj 105 TOOL_VCC141AMD64_CFLAGS ?= -TC -nologo -Zi 105 TOOL_VCC141AMD64_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256 106 106 TOOL_VCC141AMD64_CFLAGS.debug ?= 107 107 TOOL_VCC141AMD64_CFLAGS.dbgopt ?= -O2 … … 112 112 113 113 TOOL_VCC141AMD64_CXXOBJSUFF ?= .obj 114 TOOL_VCC141AMD64_CXXFLAGS ?= -TP -nologo -Zi 114 TOOL_VCC141AMD64_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256 115 115 TOOL_VCC141AMD64_CXXFLAGS.debug ?= 116 116 TOOL_VCC141AMD64_CXXFLAGS.dbgopt ?= -O2 -
trunk/kBuild/tools/VCC141X86.kmk
r3323 r3325 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.1 (aka Visual 2017 and MSC v19.10), targeting x86. 4 4 # 5 5 … … 36 36 endif 37 37 38 TOOL_VCC141 AMD64 := Visual C++ 14.1 (aka Visual 2017 and MSC v19.1), targeting AMD6438 TOOL_VCC141X86 := Visual C++ 14.1 (aka Visual 2017 and MSC v19.1), targeting x86 39 39 40 40 # 41 41 # Tool Specific Properties 42 42 # 43 ifndef PATH_TOOL_VCC141 AMD6444 PATH_TOOL_VCC141 AMD64:= $(PATH_TOOL_VCC141)43 ifndef PATH_TOOL_VCC141X86 44 PATH_TOOL_VCC141X86 := $(PATH_TOOL_VCC141) 45 45 else 46 46 # Resolve any fancy stuff once and for all. 47 PATH_TOOL_VCC141 AMD64 := $(PATH_TOOL_VCC141AMD64)48 endif 49 50 ifndef PATH_TOOL_VCC141 AMD64_BIN51 PATH_TOOL_VCC141 AMD64_BIN := $(PATH_TOOL_VCC141_HOST_BIN)/x6447 PATH_TOOL_VCC141X86 := $(PATH_TOOL_VCC141X86) 48 endif 49 50 ifndef PATH_TOOL_VCC141X86_BIN 51 PATH_TOOL_VCC141X86_BIN := $(PATH_TOOL_VCC141_HOST_BIN)/x86 52 52 else 53 PATH_TOOL_VCC141 AMD64_BIN := $(PATH_TOOL_VCC141_BIN)54 endif 55 PATH_TOOL_VCC141 AMD64_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC141AMD64_BIN))56 57 ifndef PATH_TOOL_VCC141 AMD64_LIB58 PATH_TOOL_VCC141 AMD64_LIB := $(PATH_TOOL_VCC141_LIB.amd64)53 PATH_TOOL_VCC141X86_BIN := $(PATH_TOOL_VCC141_BIN) 54 endif 55 PATH_TOOL_VCC141X86_BIN_QSH := $(requote sh,$(PATH_TOOL_VCC141X86_BIN)) 56 57 ifndef PATH_TOOL_VCC141X86_LIB 58 PATH_TOOL_VCC141X86_LIB := $(PATH_TOOL_VCC141_LIB.x86) 59 59 endif 60 60 ifndef PATH_TOOL_VCC141_ONECORE_LIB 61 PATH_TOOL_VCC141_ONECORE_LIB := $(PATH_TOOL_VCC141_ONECORE_LIB. amd64)62 endif 63 64 ifndef PATH_TOOL_VCC141 AMD64_INC65 PATH_TOOL_VCC141 AMD64_INC := $(PATH_TOOL_VCC141_INC)66 endif 67 68 ifndef PATH_TOOL_VCC141 AMD64_ATLMFC_INC69 PATH_TOOL_VCC141 AMD64_ATLMFC_INC := $(PATH_TOOL_VCC141_ATLMFC_INC.amd64)70 endif 71 ifndef PATH_TOOL_VCC141 AMD64_ATLMFC_LIB72 PATH_TOOL_VCC141 AMD64_ATLMFC_LIB := $(PATH_TOOL_VCC141_ATLMFC_LIB.amd64)73 endif 74 75 TOOL_VCC141 AMD64_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/cl.exe76 TOOL_VCC141 AMD64_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/cl.exe77 TOOL_VCC141 AMD64_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/ml64.exe78 #TOOL_VCC141 AMD64_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/lib.exe - just an exec wrapper for the below79 TOOL_VCC141 AMD64_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/link.exe /LIB80 TOOL_VCC141 AMD64_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/link.exe81 TOOL_VCC141 AMD64_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/dumpbin.exe82 TOOL_VCC141 AMD64_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141AMD64_BIN_QSH)/editbin.exe83 84 TOOL_VCC141 AMD64_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC141_RC_CACHED)85 TOOL_VCC141 AMD64_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC141_MT_CACHED)86 87 undefine TOOL_VCC141 AMD64_USE_KSUBMIT # for now88 ifdef TOOL_VCC141 AMD64_USE_KSUBMIT61 PATH_TOOL_VCC141_ONECORE_LIB := $(PATH_TOOL_VCC141_ONECORE_LIB.x86) 62 endif 63 64 ifndef PATH_TOOL_VCC141X86_INC 65 PATH_TOOL_VCC141X86_INC := $(PATH_TOOL_VCC141_INC) 66 endif 67 68 ifndef PATH_TOOL_VCC141X86_ATLMFC_INC 69 PATH_TOOL_VCC141X86_ATLMFC_INC := $(PATH_TOOL_VCC141_ATLMFC_INC.x86) 70 endif 71 ifndef PATH_TOOL_VCC141X86_ATLMFC_LIB 72 PATH_TOOL_VCC141X86_ATLMFC_LIB := $(PATH_TOOL_VCC141_ATLMFC_LIB.x86) 73 endif 74 75 TOOL_VCC141X86_CC ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/cl.exe 76 TOOL_VCC141X86_CXX ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/cl.exe 77 TOOL_VCC141X86_AS ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/ml64.exe 78 #TOOL_VCC141X86_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/lib.exe - just an exec wrapper for the below 79 TOOL_VCC141X86_AR ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/link.exe /LIB 80 TOOL_VCC141X86_LD ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/link.exe 81 TOOL_VCC141X86_DUMPBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/dumpbin.exe 82 TOOL_VCC141X86_EDITBIN ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC141X86_BIN_QSH)/editbin.exe 83 84 TOOL_VCC141X86_RC ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,rc.exe,[Rr][Cc].[Ee][Xx][Ee],TOOL_VCC141_RC_CACHED) 85 TOOL_VCC141X86_MT ?= $(EXEC_X86_WIN32) $(call TOOL_VCC141_FN_FIND_SDK_TOOL,mt.exe,[Mm][Tt].[Ee][Xx][Ee],TOOL_VCC141_MT_CACHED) 86 87 undefine TOOL_VCC141X86_USE_KSUBMIT # for now 88 ifdef TOOL_VCC141X86_USE_KSUBMIT 89 89 ifeq ($(KBUILD_HOST),win) 90 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC141 AMD64_BIN)),-3),64/)91 TOOL_VCC141 AMD64_KSUBMIT ?= kmk_builtin_kSubmit --64-bit92 TOOL_VCC141 AMD64_KSUBMIT_DD = $(TOOL_VCC141AMD64_KSUBMIT) --90 ifneq ($(substr $(qdir un,$(PATH_TOOL_VCC141X86_BIN)),-3),64/) 91 TOOL_VCC141X86_KSUBMIT ?= kmk_builtin_kSubmit --64-bit 92 TOOL_VCC141X86_KSUBMIT_DD = $(TOOL_VCC141X86_KSUBMIT) -- 93 93 else 94 TOOL_VCC141 AMD64_KSUBMIT ?= kmk_builtin_kSubmit --32-bit95 TOOL_VCC141 AMD64_KSUBMIT_DD = $(TOOL_VCC141AMD64_KSUBMIT) --94 TOOL_VCC141X86_KSUBMIT ?= kmk_builtin_kSubmit --32-bit 95 TOOL_VCC141X86_KSUBMIT_DD = $(TOOL_VCC141X86_KSUBMIT) -- 96 96 endif 97 97 endif … … 102 102 # Properties used by kBuild 103 103 # 104 TOOL_VCC141 AMD64_COBJSUFF ?= .obj105 TOOL_VCC141 AMD64_CFLAGS ?= -TC -nologo -Zi106 TOOL_VCC141 AMD64_CFLAGS.debug ?=107 TOOL_VCC141 AMD64_CFLAGS.dbgopt ?= -O2108 TOOL_VCC141 AMD64_CFLAGS.release ?= -O2109 TOOL_VCC141 AMD64_CFLAGS.profile ?= -O2110 TOOL_VCC141 AMD64_CINCS ?= $(PATH_TOOL_VCC141AMD64_INC)111 TOOL_VCC141 AMD64_CDEFS ?=112 113 TOOL_VCC141 AMD64_CXXOBJSUFF ?= .obj114 TOOL_VCC141 AMD64_CXXFLAGS ?= -TP -nologo -Zi115 TOOL_VCC141 AMD64_CXXFLAGS.debug ?=116 TOOL_VCC141 AMD64_CXXFLAGS.dbgopt ?= -O2117 TOOL_VCC141 AMD64_CXXFLAGS.release ?= -O2118 TOOL_VCC141 AMD64_CXXFLAGS.profile ?= -O2119 TOOL_VCC141 AMD64_CXXINCS ?= $(PATH_TOOL_VCC141AMD64_INC) $(PATH_TOOL_VCC141AMD64_ATLMFC_INC)120 TOOL_VCC141 AMD64_CXXDEFS ?=121 122 TOOL_VCC141 AMD64_ASOBJSUFF ?= .obj123 124 TOOL_VCC141 AMD64_RCOBJSUFF ?= .res125 TOOL_VCC141 AMD64_RCINCS ?= $(PATH_TOOL_VCC141AMD64_INC) $(PATH_TOOL_VCC141AMD64_ATLMFC_INC)126 127 TOOL_VCC141 AMD64_ARFLAGS ?= -nologo -machine:amd64128 TOOL_VCC141 AMD64_ARLIBSUFF ?= .lib129 130 TOOL_VCC141 AMD64_LDFLAGS ?= -nologo -machine:amd64131 TOOL_VCC141 AMD64_LDFLAGS.debug ?= -debug132 TOOL_VCC141 AMD64_LDFLAGS.dbgopt ?= -debug133 TOOL_VCC141 AMD64_LDFLAGS.profile ?= -debug134 TOOL_VCC141 AMD64_LDFLAGS.release ?=104 TOOL_VCC141X86_COBJSUFF ?= .obj 105 TOOL_VCC141X86_CFLAGS ?= -TC -nologo -Zi -ZH:SHA_256 106 TOOL_VCC141X86_CFLAGS.debug ?= 107 TOOL_VCC141X86_CFLAGS.dbgopt ?= -O2 108 TOOL_VCC141X86_CFLAGS.release ?= -O2 109 TOOL_VCC141X86_CFLAGS.profile ?= -O2 110 TOOL_VCC141X86_CINCS ?= $(PATH_TOOL_VCC141X86_INC) 111 TOOL_VCC141X86_CDEFS ?= 112 113 TOOL_VCC141X86_CXXOBJSUFF ?= .obj 114 TOOL_VCC141X86_CXXFLAGS ?= -TP -nologo -Zi -ZH:SHA_256 115 TOOL_VCC141X86_CXXFLAGS.debug ?= 116 TOOL_VCC141X86_CXXFLAGS.dbgopt ?= -O2 117 TOOL_VCC141X86_CXXFLAGS.release ?= -O2 118 TOOL_VCC141X86_CXXFLAGS.profile ?= -O2 119 TOOL_VCC141X86_CXXINCS ?= $(PATH_TOOL_VCC141X86_INC) $(PATH_TOOL_VCC141X86_ATLMFC_INC) 120 TOOL_VCC141X86_CXXDEFS ?= 121 122 TOOL_VCC141X86_ASOBJSUFF ?= .obj 123 124 TOOL_VCC141X86_RCOBJSUFF ?= .res 125 TOOL_VCC141X86_RCINCS ?= $(PATH_TOOL_VCC141X86_INC) $(PATH_TOOL_VCC141X86_ATLMFC_INC) 126 127 TOOL_VCC141X86_ARFLAGS ?= -nologo -machine:x86 128 TOOL_VCC141X86_ARLIBSUFF ?= .lib 129 130 TOOL_VCC141X86_LDFLAGS ?= -nologo -machine:x86 131 TOOL_VCC141X86_LDFLAGS.debug ?= -debug 132 TOOL_VCC141X86_LDFLAGS.dbgopt ?= -debug 133 TOOL_VCC141X86_LDFLAGS.profile ?= -debug 134 TOOL_VCC141X86_LDFLAGS.release ?= 135 135 136 136 … … 149 149 # @param $(outbase) Output basename (full). Use this for list files and such. 150 150 # @param $(objsuff) Object suffix. 151 TOOL_VCC141 AMD64_COMPILE_C_DEPEND =152 TOOL_VCC141 AMD64_COMPILE_C_DEPORD =153 TOOL_VCC141 AMD64_COMPILE_C_OUTPUT =154 TOOL_VCC141 AMD64_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC141_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb)155 ifdef TOOL_VCC141 AMD64_KSUBMIT156 TOOL_VCC141 AMD64_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed157 define TOOL_VCC141 AMD64_COMPILE_C_CMDS158 $(QUIET)$(TOOL_VCC141 AMD64_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\159 -- $(TOOL_VCC141 AMD64_CC) -c\151 TOOL_VCC141X86_COMPILE_C_DEPEND = 152 TOOL_VCC141X86_COMPILE_C_DEPORD = 153 TOOL_VCC141X86_COMPILE_C_OUTPUT = 154 TOOL_VCC141X86_COMPILE_C_OUTPUT_MAYBE = $(call TOOL_VCC141_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb) 155 ifdef TOOL_VCC141X86_KSUBMIT 156 TOOL_VCC141X86_COMPILE_C_DONT_PURGE_OUTPUT := 1 # speed 157 define TOOL_VCC141X86_COMPILE_C_CMDS 158 $(QUIET)$(TOOL_VCC141X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 159 -- $(TOOL_VCC141X86_CC) -c\ 160 160 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 161 161 -Fd$(outbase)-obj.pdb \ … … 164 164 endef 165 165 else 166 define TOOL_VCC141 AMD64_COMPILE_C_CMDS167 $(QUIET)$(TOOL_VCC141 AMD64_CC) -c\166 define TOOL_VCC141X86_COMPILE_C_CMDS 167 $(QUIET)$(TOOL_VCC141X86_CC) -c\ 168 168 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 169 169 -Fd$(outbase)-obj.pdb \ … … 172 172 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 173 173 endef 174 endif # !TOOL_VCC141 AMD64_KSUBMIT174 endif # !TOOL_VCC141X86_KSUBMIT 175 175 176 176 … … 188 188 # @param $(outbase) Output basename (full). Use this for list files and such. 189 189 # @param $(objsuff) Object suffix. 190 TOOL_VCC141 AMD64_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE)191 TOOL_VCC141 AMD64_COMPILE_CXX_DEPORD =192 TOOL_VCC141 AMD64_COMPILE_CXX_OUTPUT =193 TOOL_VCC141 AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\190 TOOL_VCC141X86_COMPILE_CXX_DEPEND = $($(target)_1_VCC_PCH_FILE) 191 TOOL_VCC141X86_COMPILE_CXX_DEPORD = 192 TOOL_VCC141X86_COMPILE_CXX_OUTPUT = 193 TOOL_VCC141X86_COMPILE_CXX_OUTPUT_MAYBE = $(if-expr defined($(target)_1_VCC_COMMON_OBJ_PDB)\ 194 194 ,,$(call TOOL_VCC141_PDB, $(outbase)-obj,pdb) $(call TOOL_VCC141_PDB, $(outbase)-obj,idb)) 195 ifdef TOOL_VCC141 AMD64_KSUBMIT196 TOOL_VCC141 AMD64_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed197 define TOOL_VCC141 AMD64_COMPILE_CXX_CMDS198 $(QUIET)$(TOOL_VCC141 AMD64_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\199 -- $(TOOL_VCC141 AMD64_CXX) -c\195 ifdef TOOL_VCC141X86_KSUBMIT 196 TOOL_VCC141X86_COMPILE_CXX_DONT_PURGE_OUTPUT := 1 # speed 197 define TOOL_VCC141X86_COMPILE_CXX_CMDS 198 $(QUIET)$(TOOL_VCC141X86_KSUBMIT) -P $(DEP_OBJ_INT) -f -s -q -o $(dep) -t $(obj) $(obj)\ 199 -- $(TOOL_VCC141X86_CXX) -c\ 200 200 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 201 201 $(if-expr defined($(target)_PCH_HDR)\ … … 206 206 endef 207 207 else 208 define TOOL_VCC141 AMD64_COMPILE_CXX_CMDS209 $(QUIET)$(TOOL_VCC141 AMD64_CXX) -c\208 define TOOL_VCC141X86_COMPILE_CXX_CMDS 209 $(QUIET)$(TOOL_VCC141X86_CXX) -c\ 210 210 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 211 211 $(if-expr defined($(target)_PCH_HDR)\ … … 216 216 $(QUIET)$(DEP_OBJ) -f -s -q -o $(dep) -t $(obj) $(obj) 217 217 endef 218 endif # !TOOL_VCC141 AMD64_KSUBMIT218 endif # !TOOL_VCC141X86_KSUBMIT 219 219 220 220 … … 225 225 # related _1_VCC_PCH_FILE and add -Yc. 226 226 # 227 TOOL_VCC141 AMD64-PCH := Helper for creating precompiled header using CXX handling.228 TOOL_VCC141 AMD64-PCH_EXTENDS := VCC141AMD64229 TOOL_VCC141 AMD64-PCH_CXXOBJSUFF := .obj230 TOOL_VCC141 AMD64-PCH_CXXINCS = $(TOOL_VCC141AMD64_CXXINCS)231 TOOL_VCC141 AMD64-PCH_CXXFLAGS = $(TOOL_VCC141AMD64_CXXFLAGS) -FS232 TOOL_VCC141 AMD64-PCH_CXXFLAGS.debug = $(TOOL_VCC141AMD64_CXXFLAGS.debug)233 TOOL_VCC141 AMD64-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC141AMD64_CXXFLAGS.dbgopt)234 TOOL_VCC141 AMD64-PCH_CXXFLAGS.release = $(TOOL_VCC141AMD64_CXXFLAGS.release)235 TOOL_VCC141 AMD64-PCH_CXXFLAGS.profile = $(TOOL_VCC141AMD64_CXXFLAGS.profile)236 TOOL_VCC141 AMD64-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE)237 TOOL_VCC141 AMD64-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE)238 TOOL_VCC141 AMD64-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB)239 TOOL_VCC141 AMD64-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE)240 ifdef TOOL_VCC141 AMD64_KSUBMIT241 define TOOL_VCC141 AMD64-PCH_COMPILE_CXX_CMDS227 TOOL_VCC141X86-PCH := Helper for creating precompiled header using CXX handling. 228 TOOL_VCC141X86-PCH_EXTENDS := VCC141X86 229 TOOL_VCC141X86-PCH_CXXOBJSUFF := .obj 230 TOOL_VCC141X86-PCH_CXXINCS = $(TOOL_VCC141X86_CXXINCS) 231 TOOL_VCC141X86-PCH_CXXFLAGS = $(TOOL_VCC141X86_CXXFLAGS) -FS 232 TOOL_VCC141X86-PCH_CXXFLAGS.debug = $(TOOL_VCC141X86_CXXFLAGS.debug) 233 TOOL_VCC141X86-PCH_CXXFLAGS.dbgopt = $(TOOL_VCC141X86_CXXFLAGS.dbgopt) 234 TOOL_VCC141X86-PCH_CXXFLAGS.release = $(TOOL_VCC141X86_CXXFLAGS.release) 235 TOOL_VCC141X86-PCH_CXXFLAGS.profile = $(TOOL_VCC141X86_CXXFLAGS.profile) 236 TOOL_VCC141X86-PCH_COMPILE_CXX_DEPEND = $(NO_SUCH_VARIABLE) 237 TOOL_VCC141X86-PCH_COMPILE_CXX_DEPORD = $(NO_SUCH_VARIABLE) 238 TOOL_VCC141X86-PCH_COMPILE_CXX_OUTPUT = $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 239 TOOL_VCC141X86-PCH_COMPILE_CXX_OUTPUT_MAYBE = $(NO_SUCH_VARIABLE) 240 ifdef TOOL_VCC141X86_KSUBMIT 241 define TOOL_VCC141X86-PCH_COMPILE_CXX_CMDS 242 242 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 243 $(QUIET)$(TOOL_VCC141 AMD64_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\244 -- $(TOOL_VCC141 AMD64_CXX) -c -Yc\243 $(QUIET)$(TOOL_VCC141X86_KSUBMIT) --no-pch-caching -P $(DEP_OBJ_INT) -f -s -q -e .pch -o $(dep) -t $(obj) $(obj)\ 244 -- $(TOOL_VCC141X86_CXX) -c -Yc\ 245 245 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 246 246 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 251 251 endef 252 252 else 253 define TOOL_VCC141 AMD64-PCH_COMPILE_CXX_CMDS253 define TOOL_VCC141X86-PCH_COMPILE_CXX_CMDS 254 254 $(QUIET)$(RM) -f -- $($(target)_1_VCC_PCH_FILE) $($(target)_1_VCC_COMMON_OBJ_PDB) 255 $(QUIET)$(TOOL_VCC141 AMD64_CXX) -c -Yc\255 $(QUIET)$(TOOL_VCC141X86_CXX) -c -Yc\ 256 256 $(flags) $(qaddprefix sh,-I, $(incs)) $(qaddprefix sh,-D, $(defs))\ 257 257 -Fp$($(target)_1_VCC_PCH_FILE) \ … … 263 263 264 264 endef 265 endif # !TOOL_VCC141 AMD64_KSUBMIT265 endif # !TOOL_VCC141X86_KSUBMIT 266 266 267 267 … … 281 281 # @param $(outbase) Output basename (full). Use this for list files and such. 282 282 # @param $(objsuff) Object suffix. 283 TOOL_VCC141 AMD64_COMPILE_RC_DEPEND =284 TOOL_VCC141 AMD64_COMPILE_RC_DEPORD =285 TOOL_VCC141 AMD64_COMPILE_RC_OUTPUT =286 define TOOL_VCC141 AMD64_COMPILE_RC_CMDS287 $(QUIET)$(TOOL_VCC141 AMD64_RC) \283 TOOL_VCC141X86_COMPILE_RC_DEPEND = 284 TOOL_VCC141X86_COMPILE_RC_DEPORD = 285 TOOL_VCC141X86_COMPILE_RC_OUTPUT = 286 define TOOL_VCC141X86_COMPILE_RC_CMDS 287 $(QUIET)$(TOOL_VCC141X86_RC) \ 288 288 $(flags) $(qaddprefix sh,/i, $(subst /,\\,$(incs))) $(qaddprefix sh,/d, $(defs))\ 289 289 /fo$(obj)\ … … 302 302 # @param $(outbase) Output basename (full). Use this for list files and such. 303 303 # 304 TOOL_VCC141 AMD64_LINK_LIBRARY_DEPEND = $(othersrc)305 TOOL_VCC141 AMD64_LINK_LIBRARY_DEPORD =306 TOOL_VCC141 AMD64_LINK_LIBRARY_OUTPUT = $(outbase).rsp307 TOOL_VCC141 AMD64_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb308 define TOOL_VCC141 AMD64_LINK_LIBRARY_CMDS304 TOOL_VCC141X86_LINK_LIBRARY_DEPEND = $(othersrc) 305 TOOL_VCC141X86_LINK_LIBRARY_DEPORD = 306 TOOL_VCC141X86_LINK_LIBRARY_OUTPUT = $(outbase).rsp 307 TOOL_VCC141X86_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb 308 define TOOL_VCC141X86_LINK_LIBRARY_CMDS 309 309 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 310 310 $(qforeachfile u,arg, $(objs) $(filter-out %.def,$(othersrc)),$(quote-sh "$(subst /,\,$(arg))")) \ 311 311 $(qforeachfile u,arg, $(filter %.def,$(othersrc)),$(quote-sh "/DEF:$(subst /,\,$(arg))")) 312 $(QUIET)$(TOOL_VCC141 AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_AR) $(flags) /OUT:$(out) @$(outbase).rsp312 $(QUIET)$(TOOL_VCC141X86_KSUBMIT_DD) $(TOOL_VCC141X86_AR) $(flags) /OUT:$(out) @$(outbase).rsp 313 313 endef 314 314 … … 328 328 # @param $(outbase) Output basename (full). Use this for list files and such. 329 329 # 330 TOOL_VCC141 AMD64_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)331 TOOL_VCC141 AMD64_LINK_PROGRAM_DEPORD =332 TOOL_VCC141 AMD64_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp333 TOOL_VCC141 AMD64_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest334 TOOL_VCC141 AMD64_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb335 TOOL_VCC141 AMD64_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb336 define TOOL_VCC141 AMD64_LINK_PROGRAM_CMDS330 TOOL_VCC141X86_LINK_PROGRAM_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 331 TOOL_VCC141X86_LINK_PROGRAM_DEPORD = 332 TOOL_VCC141X86_LINK_PROGRAM_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 333 TOOL_VCC141X86_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 334 TOOL_VCC141X86_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb 335 TOOL_VCC141X86_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 336 define TOOL_VCC141X86_LINK_PROGRAM_CMDS 337 337 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 338 338 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 339 $(QUIET)$(TOOL_VCC141 AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_LD) $(flags) \339 $(QUIET)$(TOOL_VCC141X86_KSUBMIT_DD) $(TOOL_VCC141X86_LD) $(flags) \ 340 340 /OUT:$(out) \ 341 341 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 345 345 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 346 346 @$(outbase).rsp 347 ifndef TOOL_VCC141 AMD64_NO_AUTO_MANIFEST347 ifndef TOOL_VCC141X86_NO_AUTO_MANIFEST 348 348 $(QUIET)$(TEST) -f $(out).manifest -- \ 349 $(TOOL_VCC141 AMD64_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out))349 $(TOOL_VCC141X86_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out)) 350 350 endif 351 351 endef … … 366 366 # 367 367 # @param $(outbase) Output basename (full). Use this for list files and such. 368 TOOL_VCC141 AMD64_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)369 TOOL_VCC141 AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB))370 TOOL_VCC141 AMD64_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp371 TOOL_VCC141 AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp372 TOOL_VCC141 AMD64_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp373 TOOL_VCC141 AMD64_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb374 TOOL_VCC141 AMD64_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb375 define TOOL_VCC141 AMD64_LINK_DLL_CMDS368 TOOL_VCC141X86_LINK_DLL_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 369 TOOL_VCC141X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 370 TOOL_VCC141X86_LINK_DLL_OUTPUT = $(outbase).lib $(outbase).exp 371 TOOL_VCC141X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 372 TOOL_VCC141X86_LINK_DLL_OUTPUT_MAYBE_PRECIOUS = $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(outbase).map $(outbase).rsp 373 TOOL_VCC141X86_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb 374 TOOL_VCC141X86_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 375 define TOOL_VCC141X86_LINK_DLL_CMDS 376 376 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 377 377 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 378 $(QUIET)$(TOOL_VCC141 AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_LD) $(flags) \378 $(QUIET)$(TOOL_VCC141X86_KSUBMIT_DD) $(TOOL_VCC141X86_LD) $(flags) \ 379 379 /OUT:$(out) \ 380 380 /IMPLIB:$(outbase).lib \ … … 386 386 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 387 387 @$(outbase).rsp 388 ifndef TOOL_VCC141 AMD64_NO_AUTO_MANIFEST388 ifndef TOOL_VCC141X86_NO_AUTO_MANIFEST 389 389 $(QUIET)$(TEST) -f $(out).manifest -- \ 390 $(TOOL_VCC141 AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'390 $(TOOL_VCC141X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 391 391 endif 392 392 $(QUIET)$(TEST) -f $(outbase).lib -- $(KLIBTWEAKER_EXT) --clear-timestamps $(outbase).lib … … 410 410 # 411 411 # @param $(outbase) Output basename (full). Use this for list files and such. 412 TOOL_VCC141 AMD64_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)413 TOOL_VCC141 AMD64_LINK_SYSMOD_DEPORD =414 TOOL_VCC141 AMD64_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest415 TOOL_VCC141 AMD64_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp416 TOOL_VCC141 AMD64_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb417 TOOL_VCC141 AMD64_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb418 define TOOL_VCC141 AMD64_LINK_SYSMOD_CMDS412 TOOL_VCC141X86_LINK_SYSMOD_DEPEND = $(foreachfile lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 413 TOOL_VCC141X86_LINK_SYSMOD_DEPORD = 414 TOOL_VCC141X86_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest 415 TOOL_VCC141X86_LINK_SYSMOD_OUTPUT_MAYBE_PRECIOUS = $(outbase).map $(outbase).rsp 416 TOOL_VCC141X86_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb 417 TOOL_VCC141X86_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb 418 define TOOL_VCC141X86_LINK_SYSMOD_CMDS 419 419 $(QUIET)$(APPEND) -tn $(outbase).rsp \ 420 420 $(qforeachfile u,arg, $(objs) $(libs),$(quote-sh "$(subst /,\,$(arg))")) 421 $(QUIET)$(TOOL_VCC141 AMD64_KSUBMIT_DD) $(TOOL_VCC141AMD64_LD) $(flags) \421 $(QUIET)$(TOOL_VCC141X86_KSUBMIT_DD) $(TOOL_VCC141X86_LD) $(flags) \ 422 422 /OUT:$(out) \ 423 423 /MAPINFO:EXPORTS /INCREMENTAL:NO \ … … 427 427 $(qaddprefix sh,/LIBPATH:,$(libpath)) \ 428 428 @$(outbase).rsp 429 ifndef TOOL_VCC141 AMD64_NO_AUTO_MANIFEST429 ifndef TOOL_VCC141X86_NO_AUTO_MANIFEST 430 430 $(QUIET)$(TEST) -f $(out).manifest -- \ 431 $(TOOL_VCC141 AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'431 $(TOOL_VCC141X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 432 432 endif 433 433 endef
Note:
See TracChangeset
for help on using the changeset viewer.