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

    r440 r641  
    22## @file
    33#
    4 # kBuild Tool Config - Visual C++ 8.0 (aka Visual .NET 2005)
     4# kBuild Tool Config - Visual C++ 8.0 (aka Visual .NET 2005, or MSC v14)
    55#
    66# Copyright (c) 2004-2006 knut st. osmundsen <bird-srcspam@anduin.net>
     
    5252TOOL_VCC80X86_ASOBJSUFF          := .obj
    5353
     54TOOL_VCC80X86_RC                 := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80X86_BIN)/rc.exe
     55TOOL_VCC80X86_RCOBJSUFF          := .res
     56
    5457TOOL_VCC80X86_AR                 := $(EXEC_X86_WIN32) $(PATH_TOOL_VCC80X86_BIN)/lib.exe
    5558TOOL_VCC80X86_ARFLAGS            := -nologo
     
    161164
    162165
     166## Compile resource source.
     167# @param    $(target)   Normalized main target name.
     168# @param    $(source)   Source filename (relative).
     169# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     170# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
     171# @param    $(flags)    Flags.
     172# @param    $(defs)     Definitions. No -D or something.
     173# @param    $(incs)     Includes. No -I or something.
     174# @param    $(dirdep)   Directory creation dependency.
     175# @param    $(deps)     Other dependencies.
     176#
     177# @param    $(outbase)  Output basename (full). Use this for list files and such.
     178# @param    $(objsuff)  Object suffix.
     179TOOL_VCC80X86_COMPILE_RC_OUTPUT =
     180TOOL_VCC80X86_COMPILE_RC_DEPEND =
     181TOOL_VCC80X86_COMPILE_RC_DEPORD =
     182define TOOL_VCC80X86_COMPILE_RC_CMDS
     183        $(TOOL_VCC80X86_RC) \
     184                $(flags) $(addprefix /i, $(subst /,\\,$(incs))) $(addprefix /d, $(defs))\
     185                /fo$(obj)\
     186                $(subst /,\\,$(call ABSPATH,$(source)))
     187endef
     188
     189
    163190## Link library
    164191# @param    $(target)   Normalized main target name.
     
    171198# @param    $(outbase)  Output basename (full). Use this for list files and such.
    172199#
    173 TOOL_VCC80X86_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb)
     200TOOL_VCC80X86_LINK_LIBRARY_OUTPUT = $(outbase).lst $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).pdb
    174201TOOL_VCC80X86_LINK_LIBRARY_DEPEND = $(othersrc)
    175202TOOL_VCC80X86_LINK_LIBRARY_DEPORD =
     
    194221# @param    $(outbase)      Output basename (full). Use this for list files and such.
    195222#
    196 TOOL_VCC80X86_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest
     223TOOL_VCC80X86_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).pdb $(outbase).ilk $(out).manifest
    197224TOOL_VCC80X86_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    198225TOOL_VCC80X86_LINK_PROGRAM_DEPORD =
     
    227254#
    228255# @param    $(outbase)  Output basename (full). Use this for list files and such.
    229 TOOL_VCC80X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest
     256TOOL_VCC80X86_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).pdb $(outbase).ilk $(out).manifest
    230257TOOL_VCC80X86_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    231258TOOL_VCC80X86_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_LIB))
     
    267294#
    268295# @param    $(outbase)  Output basename (full). Use this for list files and such.
    269 TOOL_VCC80X86_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).ilk $(out).manifest
     296TOOL_VCC80X86_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(call TOOL_VCC80X86_PDB, $(outbase),pdb) $(outbase).pdb $(outbase).ilk $(out).manifest
    270297TOOL_VCC80X86_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    271298TOOL_VCC80X86_LINK_SYSMOD_DEPORD =
Note: See TracChangeset for help on using the changeset viewer.