Changeset 2487 in kBuild
- Timestamp:
- Jul 21, 2011 8:01:27 PM (14 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/MINGW32.kmk
r2413 r2487 254 254 # @param $(outbase) Output basename (full). Use this for list files and such. 255 255 TOOL_MINGW32_LINK_DLL_OUTPUT = 256 TOOL_MINGW32_LINK_DLL_OUTPUT_MAYBE = $(outbase).a $(outbase).exp $(PATH_ LIB)/$(notdir $(outbase)).exp $(PATH_LIB)/$(notdir $(outbase)).a256 TOOL_MINGW32_LINK_DLL_OUTPUT_MAYBE = $(outbase).a $(outbase).exp $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp $(PATH_STAGE_LIB)/$(notdir $(outbase)).a 257 257 ## @todo Find a better solution for installing the extra files (.a, .exp, .pdb, etc). 258 258 TOOL_MINGW32_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 259 259 $(filter %.def %.res,$(othersrc)) 260 TOOL_MINGW32_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))260 TOOL_MINGW32_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 261 261 define TOOL_MINGW32_LINK_DLL_CMDS 262 262 $(QUIET)$(TOOL_MINGW32_DLLWRAP) $(flags)\ … … 269 269 $(foreach p,$(libpath), -L$(p))\ 270 270 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib))) 271 $(QUIET)$(CP) $(outbase).exp $(outbase).a $(PATH_ LIB)/271 $(QUIET)$(CP) $(outbase).exp $(outbase).a $(PATH_STAGE_LIB)/ 272 272 endef 273 273 ## @todo separate install stuff! -
trunk/kBuild/tools/VCC100.kmk
r2413 r2487 287 287 # @param $(outbase) Output basename (full). Use this for list files and such. 288 288 TOOL_VCC100_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 289 TOOL_VCC100_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))289 TOOL_VCC100_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 290 290 TOOL_VCC100_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 291 TOOL_VCC100_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_ LIB)/$(notdir $(outbase)).lib $(PATH_LIB)/$(notdir $(outbase)).exp291 TOOL_VCC100_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 292 292 define TOOL_VCC100_LINK_DLL_CMDS 293 293 $(QUIET)$(TOOL_VCC100_LD) $(flags) \ … … 304 304 $(QUIET)$(TEST) -f $(out).manifest -- \ 305 305 $(TOOL_VCC100_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 306 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_ LIB)/307 $(eval _DIRS += $(PATH_ LIB))306 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/ 307 $(eval _DIRS += $(PATH_STAGE_LIB)) 308 308 endef 309 309 -
trunk/kBuild/tools/VCC100AMD64.kmk
r2413 r2487 154 154 TOOL_VCC100AMD64_COMPILE_CXX_DEPEND = 155 155 TOOL_VCC100AMD64_COMPILE_CXX_DEPORD = 156 ifdef KBUILD_USE_KOBJCACHE 157 TOOL_VCC100AMD64_COMPILE_CXX_USES_KOBJCACHE = 1 158 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb) $(outbase).ii 159 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb) 160 if 1 161 define TOOL_VCC100AMD64_COMPILE_CXX_CMDS 162 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\ 163 --named-pipe-compile $(subst /,\\,//./pipe/kObjCache/$(translate $(outbase),:,_)/$(notdir $(source)))\ 164 --kObjCache-cpp $(outbase).ii\ 165 $(TOOL_VCC100AMD64_CXX) -E\ 166 $(flags)\ 167 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 168 $(subst /,\\,$(abspath $(source))) \ 169 --kObjCache-cc $(obj)\ 170 windbg $(TOOL_VCC100AMD64_CXX) -c -TP\ 171 $(flags)\ 172 -Fd$(outbase)-obj.pdb \ 173 -FD\ 174 -Fo$(obj)\ 175 $(subst /,\\,//./pipe/kObjCache/$(translate $(outbase),:,_)/$(notdir $(source))) 176 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb) 177 endef 178 else 179 define TOOL_VCC100AMD64_COMPILE_CXX_CMDS 180 $(QUIET)$(KOBJCACHE) -f $(outbase).koc -d $(PATH_OBJCACHE) -t $(bld_trg).$(bld_trg_arch) -r\ 181 --kObjCache-cpp $(outbase).ii\ 182 $(TOOL_VCC100AMD64_CXX) -E\ 183 $(flags)\ 184 $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 185 $(subst /,\\,$(abspath $(source))) \ 186 --kObjCache-cc $(obj)\ 187 $(TOOL_VCC100AMD64_CXX) -c -TP\ 188 $(flags)\ 189 -Fd$(outbase)-obj.pdb \ 190 -FD\ 191 -Fo$(obj)\ 192 $(outbase).ii 193 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb) 194 endef 195 endif 196 else # !KBUILD_USE_KOBJCACHE 156 197 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,idb) 157 198 TOOL_VCC100AMD64_COMPILE_CXX_OUTPUT_MAYBE = $(call TOOL_VCC100AMD64_PDB, $(outbase)-obj,pdb) … … 165 206 $(QUIET)$(DEP_IDB) -f -s -q -o $(dep) -t $(obj) $(call TOOL_VCC100AMD64_PDB,$(outbase)-obj,idb) 166 207 endef 167 208 endif # !KBUILD_USE_KOBJCACHE 168 209 169 210 ## Compile resource source. … … 264 305 # @param $(outbase) Output basename (full). Use this for list files and such. 265 306 TOOL_VCC100AMD64_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 266 TOOL_VCC100AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))307 TOOL_VCC100AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 267 308 TOOL_VCC100AMD64_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 268 TOOL_VCC100AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_ LIB)/$(notdir $(outbase)).lib $(PATH_LIB)/$(notdir $(outbase)).exp309 TOOL_VCC100AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 269 310 define TOOL_VCC100AMD64_LINK_DLL_CMDS 270 311 $(QUIET)$(TOOL_VCC100AMD64_LD) $(flags) \ … … 281 322 $(QUIET)$(TEST) -f $(out).manifest -- \ 282 323 $(TOOL_VCC100AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 283 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_ LIB)/284 $(eval _DIRS += $(PATH_ LIB))324 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/ 325 $(eval _DIRS += $(PATH_STAGE_LIB)) 285 326 endef 286 327 -
trunk/kBuild/tools/VCC100X86.kmk
r2413 r2487 266 266 # @param $(outbase) Output basename (full). Use this for list files and such. 267 267 TOOL_VCC100X86_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 268 TOOL_VCC100X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))268 TOOL_VCC100X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 269 269 TOOL_VCC100X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 270 TOOL_VCC100X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_ LIB)/$(notdir $(outbase)).lib $(PATH_LIB)/$(notdir $(outbase)).exp270 TOOL_VCC100X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 271 271 define TOOL_VCC100X86_LINK_DLL_CMDS 272 272 $(QUIET)$(TOOL_VCC100X86_LD) $(flags) \ … … 283 283 $(QUIET)$(TEST) -f $(out).manifest -- \ 284 284 $(TOOL_VCC100X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 285 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_ LIB)/286 $(eval _DIRS += $(PATH_ LIB))285 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/ 286 $(eval _DIRS += $(PATH_STAGE_LIB)) 287 287 endef 288 288 -
trunk/kBuild/tools/VCC70.kmk
r2413 r2487 295 295 # @param $(outbase) Output basename (full). Use this for list files and such. 296 296 TOOL_VCC70_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 297 TOOL_VCC70_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(PATH_ LIB)/$(notdir $(outbase)).lib $(PATH_LIB)/$(notdir $(outbase)).exp297 TOOL_VCC70_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 298 298 TOOL_VCC70_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 299 TOOL_VCC70_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))299 TOOL_VCC70_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 300 300 define TOOL_VCC70_LINK_DLL_CMDS 301 301 $(QUIET)$(TOOL_VCC70_LD) $(flags) \ … … 310 310 $(subst /,\\,$(objs)) \ 311 311 $(subst /,\\,$(libs)) 312 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_ LIB)/313 $(eval _DIRS += $(PATH_ LIB))312 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/ 313 $(eval _DIRS += $(PATH_STAGE_LIB)) 314 314 endef 315 315 -
trunk/kBuild/tools/VCC80.kmk
r2413 r2487 287 287 # @param $(outbase) Output basename (full). Use this for list files and such. 288 288 TOOL_VCC80_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 289 TOOL_VCC80_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))289 TOOL_VCC80_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 290 290 TOOL_VCC80_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 291 TOOL_VCC80_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_ LIB)/$(notdir $(outbase)).lib $(PATH_LIB)/$(notdir $(outbase)).exp291 TOOL_VCC80_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 292 292 define TOOL_VCC80_LINK_DLL_CMDS 293 293 $(QUIET)$(TOOL_VCC80_LD) $(flags) \ … … 304 304 $(QUIET)$(TEST) -f $(out).manifest -- \ 305 305 $(TOOL_VCC80_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 306 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_ LIB)/307 $(eval _DIRS += $(PATH_ LIB))306 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/ 307 $(eval _DIRS += $(PATH_STAGE_LIB)) 308 308 endef 309 309 -
trunk/kBuild/tools/VCC80AMD64.kmk
r2413 r2487 264 264 # @param $(outbase) Output basename (full). Use this for list files and such. 265 265 TOOL_VCC80AMD64_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 266 TOOL_VCC80AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))266 TOOL_VCC80AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 267 267 TOOL_VCC80AMD64_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 268 TOOL_VCC80AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_ LIB)/$(notdir $(outbase)).lib $(PATH_LIB)/$(notdir $(outbase)).exp268 TOOL_VCC80AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 269 269 define TOOL_VCC80AMD64_LINK_DLL_CMDS 270 270 $(QUIET)$(TOOL_VCC80AMD64_LD) $(flags) \ … … 281 281 $(QUIET)$(TEST) -f $(out).manifest -- \ 282 282 $(TOOL_VCC80AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 283 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_ LIB)/284 $(eval _DIRS += $(PATH_ LIB))283 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/ 284 $(eval _DIRS += $(PATH_STAGE_LIB)) 285 285 endef 286 286 -
trunk/kBuild/tools/VCC80X86.kmk
r2413 r2487 266 266 # @param $(outbase) Output basename (full). Use this for list files and such. 267 267 TOOL_VCC80X86_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc) 268 TOOL_VCC80X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_ LIB))268 TOOL_VCC80X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB)) 269 269 TOOL_VCC80X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp 270 TOOL_VCC80X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_ LIB)/$(notdir $(outbase)).lib $(PATH_LIB)/$(notdir $(outbase)).exp270 TOOL_VCC80X86_LINK_DLL_OUTPUT_MAYBE = $(outbase).pdb $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp 271 271 define TOOL_VCC80X86_LINK_DLL_CMDS 272 272 $(QUIET)$(TOOL_VCC80X86_LD) $(flags) \ … … 283 283 $(QUIET)$(TEST) -f $(out).manifest -- \ 284 284 $(TOOL_VCC80X86_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2' 285 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_ LIB)/286 $(eval _DIRS += $(PATH_ LIB))285 $(QUIET)$(CP) --changed --ignore-non-existing $(outbase).exp $(outbase).lib $(PATH_STAGE_LIB)/ 286 $(eval _DIRS += $(PATH_STAGE_LIB)) 287 287 endef 288 288
Note:
See TracChangeset
for help on using the changeset viewer.