windows.mk (1bb309c6) | windows.mk (6bf52fda) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 14 unchanged lines hidden (view full) --- 23 24GUI := WNT 25COM := MSC 26 27# set tmpdir to some mixed case path, suitable for native tools 28gb_TMPDIR:=$(if $(TMPDIR),$(shell cygpath -m $(TMPDIR)),$(shell cygpath -m /tmp)) 29gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX 30 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 14 unchanged lines hidden (view full) --- 23 24GUI := WNT 25COM := MSC 26 27# set tmpdir to some mixed case path, suitable for native tools 28gb_TMPDIR:=$(if $(TMPDIR),$(shell cygpath -m $(TMPDIR)),$(shell cygpath -m /tmp)) 29gb_MKTEMP := mktemp --tmpdir=$(gb_TMPDIR) gbuild.XXXXXX 30 |
31gb_AS := ml |
|
31gb_CC := cl 32gb_CXX := cl 33gb_LINK := link 34gb_AWK := awk 35gb_CLASSPATHSEP := ; 36gb_RC := rc 37 38# use CC/CXX if they are nondefaults | 32gb_CC := cl 33gb_CXX := cl 34gb_LINK := link 35gb_AWK := awk 36gb_CLASSPATHSEP := ; 37gb_RC := rc 38 39# use CC/CXX if they are nondefaults |
40ifneq ($(origin AS),default) 41gb_AS := $(AS) 42endif |
|
39ifneq ($(origin CC),default) 40gb_CC := $(CC) 41gb_GCCP := $(CC) 42endif 43ifneq ($(origin CXX),default) 44gb_CXX := $(CXX) 45endif 46 --- 220 unchanged lines hidden (view full) --- 267 268gb_AsmObject_EXT := .asm 269 270define gb_AsmObject__command 271$(call gb_Output_announce,$(2),$(true),ASM,3) 272$(call gb_Helper_abbreviate_dirs_native,\ 273 mkdir -p $(dir $(1)) && \ 274 unset INCLUDE && \ | 43ifneq ($(origin CC),default) 44gb_CC := $(CC) 45gb_GCCP := $(CC) 46endif 47ifneq ($(origin CXX),default) 48gb_CXX := $(CXX) 49endif 50 --- 220 unchanged lines hidden (view full) --- 271 272gb_AsmObject_EXT := .asm 273 274define gb_AsmObject__command 275$(call gb_Output_announce,$(2),$(true),ASM,3) 276$(call gb_Helper_abbreviate_dirs_native,\ 277 mkdir -p $(dir $(1)) && \ 278 unset INCLUDE && \ |
275 $(gb_CC) \ | 279 $(gb_AS) \ |
276 $(DEFS) \ | 280 $(DEFS) \ |
277 $(T_CFLAGS) \ 278 -FD$(PDBFILE) \ 279 $(CFLAGS) \ 280 -I$(dir $(3)) \ 281 $(INCLUDE) \ 282 -c $(3) \ 283 -Fo$(1)) | 281 -safeseh \ 282 -Cp \ 283 -coff \ 284 -Fo$(1) \ 285 -c $(3)) |
284endef 285 286# CObject class 287 288ifeq ($(gb_FULLDEPS),$(true)) 289define gb_Object__command_deponcompile 290$(call gb_Helper_abbreviate_dirs_native,\ 291 $(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \ --- 152 unchanged lines hidden (view full) --- 444gb_LinkTarget_get_pdbfile = $(call gb_LinkTarget_get_target,)pdb/$(1).pdb 445 446define gb_LinkTarget__command 447$(call gb_Output_announce,$(2),$(true),LNK,4) 448$(call gb_Helper_abbreviate_dirs_native,\ 449 mkdir -p $(dir $(1)) && \ 450 rm -f $(1) && \ 451 RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),100, \ | 286endef 287 288# CObject class 289 290ifeq ($(gb_FULLDEPS),$(true)) 291define gb_Object__command_deponcompile 292$(call gb_Helper_abbreviate_dirs_native,\ 293 $(OUTDIR)/bin/makedepend$(gb_Executable_EXT) \ --- 152 unchanged lines hidden (view full) --- 446gb_LinkTarget_get_pdbfile = $(call gb_LinkTarget_get_target,)pdb/$(1).pdb 447 448define gb_LinkTarget__command 449$(call gb_Output_announce,$(2),$(true),LNK,4) 450$(call gb_Helper_abbreviate_dirs_native,\ 451 mkdir -p $(dir $(1)) && \ 452 rm -f $(1) && \ 453 RESPONSEFILE=$(call var2file,$(shell $(gb_MKTEMP)),100, \ |
452 $(call gb_Helper_convert_native,$(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ | 454 $(call gb_Helper_convert_native,\ 455 $(foreach object,$(ASMOBJECTS),$(call gb_AsmObject_get_target,$(object))) \ 456 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \ |
453 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \ 454 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ 455 $(PCHOBJS) $(NATIVERES))) && \ 456 $(gb_LINK) \ 457 $(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 458 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(gb_StaticLibrary_TARGETTYPEFLAGS)) \ 459 $(if $(filter GoogleTest Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \ 460 $(if $(filter YES,$(gb_Executable_TARGETGUI)), -SUBSYSTEM:WINDOWS, -SUBSYSTEM:CONSOLE) \ --- 329 unchanged lines hidden --- | 457 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \ 458 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \ 459 $(PCHOBJS) $(NATIVERES))) && \ 460 $(gb_LINK) \ 461 $(if $(filter Library,$(TARGETTYPE)),$(gb_Library_TARGETTYPEFLAGS)) \ 462 $(if $(filter StaticLibrary,$(TARGETTYPE)),$(gb_StaticLibrary_TARGETTYPEFLAGS)) \ 463 $(if $(filter GoogleTest Executable,$(TARGETTYPE)),$(gb_Executable_TARGETTYPEFLAGS)) \ 464 $(if $(filter YES,$(gb_Executable_TARGETGUI)), -SUBSYSTEM:WINDOWS, -SUBSYSTEM:CONSOLE) \ --- 329 unchanged lines hidden --- |