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/VCC80AMD64.kmk

    r735 r768  
    224224# @param    $(outbase)  Output basename (full). Use this for list files and such.
    225225#
    226 TOOL_VCC80AMD64_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    227226TOOL_VCC80AMD64_LINK_LIBRARY_DEPEND = $(othersrc)
    228227TOOL_VCC80AMD64_LINK_LIBRARY_DEPORD =
     228ifeq ($(filter append-dash-n,$(KMK_FEATURES)),append-dash-n)
     229TOOL_VCC80AMD64_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb $(outbase).rsp
     230define TOOL_VCC80AMD64_LINK_LIBRARY_CMDS
     231        $(QUIET)$(APPEND) -n $(outbase).rsp \
     232                $(foreach arg,\
     233                        $(subst /,\\,$(objs) \
     234                        $(filter-out %.def,$(othersrc))) \
     235                        $(addprefix /DEF:,$(filter %.def,$(othersrc))) \
     236                        ,\"$(arg)\")
     237        $(QUIET)$(TOOL_VCC80AMD64_AR) $(flags) /OUT:$(out) @$(outbase).rsp
     238endef
     239else
     240TOOL_VCC80AMD64_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    229241define TOOL_VCC80AMD64_LINK_LIBRARY_CMDS
    230242        $(QUIET)$(TOOL_VCC80AMD64_AR) $(flags) /OUT:$(out) $(subst /,\\,$(objs) $(filter %.a %.lib,$(othersrc))) \
    231243                $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def))
    232244endef
     245endif
    233246
    234247
Note: See TracChangeset for help on using the changeset viewer.