Ignore:
Timestamp:
Dec 1, 2006, 7:32:45 PM (19 years ago)
Author:
bird
Message:

Resource file compilation.

File:
1 edited

Legend:

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

    r448 r641  
    5656TOOL_VCC70_ASOBJSUFF          := .obj
    5757
     58TOOL_VCC70_RC                 := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC70)/bin/rc.exe
     59TOOL_VCC70_RCOBJSUFF          := .res
     60
    5861TOOL_VCC70_AR                 := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC70)/bin/lib.exe
    5962TOOL_VCC70_ARFLAGS            := -nologo
     
    162165
    163166
     167## Compile resource source.
     168# @param    $(target)   Normalized main target name.
     169# @param    $(source)   Source filename (relative).
     170# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     171# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
     172# @param    $(flags)    Flags.
     173# @param    $(defs)     Definitions. No -D or something.
     174# @param    $(incs)     Includes. No -I or something.
     175# @param    $(dirdep)   Directory creation dependency.
     176# @param    $(deps)     Other dependencies.
     177#
     178# @param    $(outbase)  Output basename (full). Use this for list files and such.
     179# @param    $(objsuff)  Object suffix.
     180TOOL_VCC70_COMPILE_RC_OUTPUT =
     181TOOL_VCC70_COMPILE_RC_DEPEND =
     182TOOL_VCC70_COMPILE_RC_DEPORD =
     183define TOOL_VCC70_COMPILE_RC_CMDS
     184        $(TOOL_VCC70_RC) \
     185                $(flags) $(addprefix /i, $(subst /,\\,$(incs))) $(addprefix /d, $(defs))\
     186                /fo$(obj)\
     187                $(subst /,\\,$(call ABSPATH,$(source)))
     188endef
     189
     190
    164191## Link library
    165192# @param    $(target)   Normalized main target name.
     
    172199# @param    $(outbase)  Output basename (full). Use this for list files and such.
    173200#
    174 TOOL_VCC70_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb)
     201TOOL_VCC70_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb) $(outbase).pdb
    175202TOOL_VCC70_LINK_LIBRARY_DEPEND = $(othersrc)
    176203TOOL_VCC70_LINK_LIBRARY_DEPORD =
     
    195222# @param    $(outbase)      Output basename (full). Use this for list files and such.
    196223#
    197 TOOL_VCC70_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb) $(outbase).ilk
     224TOOL_VCC70_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb) $(outbase).pdb $(outbase).ilk
    198225TOOL_VCC70_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    199226TOOL_VCC70_LINK_PROGRAM_DEPORD =
     
    225252#
    226253# @param    $(outbase)  Output basename (full). Use this for list files and such.
    227 TOOL_VCC70_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb) $(outbase).ilk
     254TOOL_VCC70_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb) $(outbase).pdb $(outbase).ilk
    228255TOOL_VCC70_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    229256TOOL_VCC70_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_LIB))
     
    262289#
    263290# @param    $(outbase)  Output basename (full). Use this for list files and such.
    264 TOOL_VCC70_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb) $(outbase).ilk
     291TOOL_VCC70_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC70_PDB, $(outbase),pdb) $(outbase).pdb $(outbase).ilk
    265292TOOL_VCC70_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    266293TOOL_VCC70_LINK_SYSMOD_DEPORD =
Note: See TracChangeset for help on using the changeset viewer.