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

    r735 r768  
    2424#
    2525#
    26            
     26
    2727TOOL_VCC70 := Visual C++ 7.0 (aka Visual Studio .NET), targeting x86.
    2828
     
    6161endif
    6262## Disabled fast DEP_IDB based dependencies.
    63 #VCC70_OLD_DEPS = 1 
     63#VCC70_OLD_DEPS = 1
    6464
    6565## Constructs the correct .pdb name (the name is lowercased).
     
    218218# @param    $(outbase)  Output basename (full). Use this for list files and such.
    219219#
    220 TOOL_VCC70_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    221220TOOL_VCC70_LINK_LIBRARY_DEPEND = $(othersrc)
    222221TOOL_VCC70_LINK_LIBRARY_DEPORD =
     222ifeq ($(filter append-dash-n,$(KMK_FEATURES)),append-dash-n)
     223TOOL_VCC70_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb $(outbase).rsp
     224define TOOL_VCC70_LINK_LIBRARY_CMDS
     225        $(QUIET)$(APPEND) -n $(outbase).rsp \
     226                $(foreach arg,\
     227                        $(subst /,\\,$(objs) \
     228                        $(filter-out %.def,$(othersrc))) \
     229                        $(addprefix /DEF:,$(filter %.def,$(othersrc))) \
     230                        ,\"$(arg)\")
     231        $(QUIET)$(TOOL_VCC70_AR) $(flags) /OUT:$(out) @$(outbase).rsp
     232endef
     233else
     234TOOL_VCC70_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(outbase).pdb
    223235define TOOL_VCC70_LINK_LIBRARY_CMDS
    224236        $(QUIET)$(TOOL_VCC70_AR) $(flags) /OUT:$(out) $(subst /,\\,$(objs) $(filter %.a %.lib,$(othersrc))) \
    225237                $(foreach def,$(filter %.def,$(othersrc)), /DEF:$(def))
    226238endef
     239endif
    227240
    228241
Note: See TracChangeset for help on using the changeset viewer.