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

    r735 r768  
    239239# @param    $(outbase)  Output basename (full). Use this for list files and such.
    240240#
    241 TOOL_VCC80_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    242241TOOL_VCC80_LINK_LIBRARY_DEPEND = $(othersrc)
    243242TOOL_VCC80_LINK_LIBRARY_DEPORD =
     243ifeq ($(filter append-dash-n,$(KMK_FEATURES)),append-dash-n)
     244TOOL_VCC80_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb $(outbase).rsp
     245define TOOL_VCC80_LINK_LIBRARY_CMDS
     246        $(QUIET)$(APPEND) -n $(outbase).rsp \
     247                $(foreach arg,\
     248                        $(subst /,\\,$(objs) \
     249                        $(filter-out %.def,$(othersrc))) \
     250                        $(addprefix /DEF:,$(filter %.def,$(othersrc))) \
     251                        ,\"$(arg)\")
     252        $(QUIET)$(TOOL_VCC80_AR) $(flags) /OUT:$(out) @$(outbase).rsp
     253endef
     254else
     255TOOL_VCC80_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    244256define TOOL_VCC80_LINK_LIBRARY_CMDS
    245257        $(QUIET)$(TOOL_VCC80_AR) $(flags) /OUT:$(out) $(subst /,\\,$(objs) $(filter %.a %.lib,$(othersrc))) \
    246258                $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def))
    247259endef
     260endif
     261
     262
    248263
    249264
Note: See TracChangeset for help on using the changeset viewer.