Ignore:
Timestamp:
Jan 19, 2007, 3:52:39 AM (19 years ago)
Author:
bird
Message:

Use response files (aka command files) with the Visual C++ librarian. References #9.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/VCC80X86.kmk

    r735 r768  
    6363TOOL_VCC80X86_MT  ?= $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80X86_BIN)/mt.exe
    6464## Disabled fast DEP_IDB based dependencies.
    65 #VCC80X86_OLD_DEPS = 1 
     65#VCC80X86_OLD_DEPS = 1
    6666
    6767## Constructs the correct .pdb name (the name is lowercased).
     
    223223# @param    $(outbase)  Output basename (full). Use this for list files and such.
    224224#
    225 TOOL_VCC80X86_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    226225TOOL_VCC80X86_LINK_LIBRARY_DEPEND = $(othersrc)
    227226TOOL_VCC80X86_LINK_LIBRARY_DEPORD =
     227ifeq ($(filter append-dash-n,$(KMK_FEATURES)),append-dash-n)
     228TOOL_VCC80X86_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb $(outbase).rsp
     229define TOOL_VCC80X86_LINK_LIBRARY_CMDS
     230        $(QUIET)$(APPEND) -n $(outbase).rsp \
     231                $(foreach arg,\
     232                        $(subst /,\\,$(objs) \
     233                        $(filter-out %.def,$(othersrc))) \
     234                        $(addprefix /DEF:,$(filter %.def,$(othersrc))) \
     235                        ,\"$(arg)\")
     236        $(QUIET)$(TOOL_VCC80X86_AR) $(flags) /OUT:$(out) @$(outbase).rsp
     237endef
     238else
     239TOOL_VCC80X86_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    228240define TOOL_VCC80X86_LINK_LIBRARY_CMDS
    229241        $(QUIET)$(TOOL_VCC80X86_AR) $(flags) /OUT:$(out) $(subst /,\\,$(objs) $(filter %.a %.lib,$(othersrc))) \
    230242                $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def))
    231243endef
     244endif
    232245
    233246
Note: See TracChangeset for help on using the changeset viewer.