Ignore:
Timestamp:
Oct 26, 2011, 9:16:43 PM (14 years ago)
Author:
dmik
Message:

Add handler to compile .orc source files with Wine RC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gcc-kmk/Config.kmk

    r21736 r21746  
    66# Global definitions
    77#------------------------------------------------------------------------------
     8
     9# Handler for Wine RC (.orc) source files
     10KBUILD_SRC_HANDLERS += .orc:def_src_handler_wrc
     11define def_src_handler_wrc
     12local type := WRC
     13 $(kb-src-one 2)
     14endef
     15
     16#------------------------------------------------------------------------------
     17# Tools
     18#------------------------------------------------------------------------------
     19
     20# Add support for Wine RC to the GCC compiler
     21TOOL_GXX3OMF_WRC                = $(PATH_STAGE_BIN)/winerc.exe
     22TOOL_GXX3OMF_WRCOBJSUFF         = .o
     23TOOL_GXX3OMF_COMPILE_WRC_OUTPUT = $(outbase).orc.s
     24TOOL_GXX3OMF_COMPILE_WRC_DEPEND =
     25TOOL_GXX3OMF_COMPILE_WRC_DEPORD =
     26define TOOL_GXX3OMF_COMPILE_WRC_CMDS
     27        $(QUIET)$(TOOL_GXX3OMF_WRC) -s\
     28        $(flags) $(addprefix -I, $(subst /,\\,$(incs))) $(addprefix -D, $(defs))\
     29        $(subst /,\\,$(abspath $(source))) \
     30        -o $(TOOL_GXX3OMF_COMPILE_WRC_OUTPUT)
     31        $(subst $(source),$(TOOL_GXX3OMF_COMPILE_WRC_OUTPUT),$(TOOL_GXX3OMF_COMPILE_AS_CMDS)))
     32endef
    833
    934#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.