Ignore:
Timestamp:
Sep 27, 2007, 8:20:07 PM (18 years ago)
Author:
bird
Message:

resource compiler setup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/kBuild/tools/VAC308.kmk

    r1146 r1147  
    8484TOOL_VAC308_CXXDEFS          ?=
    8585
     86TOOL_VAC308_RCOBJSUFF        ?= .res
     87TOOL_VAC308_RCFLAGS          ?= -n
     88TOOL_VAC308_RCINCS           ?=
     89TOOL_VAC308_RCDEFS           ?=
     90
    8691TOOL_VAC308_ARFLAGS          ?= /nologo /noignorecase
    8792TOOL_VAC308_ARLIBSUFF        ?= .lib
     
    145150                $(abspath $(source)) \
    146151                | $(DEP_PRE) -f -s -o $(dep) -t $(obj) -
     152endef
     153
     154
     155## Compile resource source.
     156# @param    $(target)   Normalized main target name.
     157# @param    $(source)   Source filename (relative).
     158# @param    $(obj)      Object file name. This shall be (re)created by the compilation.
     159# @param    $(dep)      Dependcy file. This shall be (re)created by the compilation.
     160# @param    $(flags)    Flags.
     161# @param    $(defs)     Definitions. No -D or something.
     162# @param    $(incs)     Includes. No -I or something.
     163# @param    $(dirdep)   Directory creation dependency.
     164# @param    $(deps)     Other dependencies.
     165#
     166# @param    $(outbase)  Output basename (full). Use this for list files and such.
     167# @param    $(objsuff)  Object suffix.
     168TOOL_VAC308_COMPILE_RC_OUTPUT =
     169TOOL_VAC308_COMPILE_RC_DEPEND =
     170TOOL_VAC308_COMPILE_RC_DEPORD =
     171define TOOL_VAC308_COMPILE_RC_CMDS
     172        $(QUIET) $(TOOL_VAC308_ENV_SETUP) $(TOOL_VAC308_RC) -r\
     173                $(flags) $(addprefix -i, $(subst /,\\,$(incs))) $(addprefix -D, $(defs))\
     174                $(subst /,\\,$(abspath $(source))) \
     175                $(obj)
    147176endef
    148177
Note: See TracChangeset for help on using the changeset viewer.