Changeset 21777 for branches


Ignore:
Timestamp:
Nov 1, 2011, 10:48:52 PM (14 years ago)
Author:
dmik
Message:

Add odin_implib_no_expdef that disables using ImpDef tool for target.

File:
1 edited

Legend:

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

    r21774 r21777  
    1313# @param 2 .def file (defaults to <1>.def).
    1414# @param 3 .def file for debug (defaults to <2>).
     15# @param 4 non-empty to disable .def post-processing with ImpDef.
    1516#
    16 odin_implib = $(evalcall odin_implib_common,$(1),$(2),$(3))
     17odin_implib = $(evalcall odin_implib_common,$(1),$(2),$(3),$(4))
    1718
    1819define odin_implib_common
    1920    local target := $(1)
    20         local def := $(if $(2),$(2),$(1).def)
    21         local def_exp := $(basename $(def)).exp.def
     21        local def := $(abspath $(PATH_SUB_CURRENT)/$(if $(2),$(2),$(1).def))
     22        local def_exp := $(notdir $(basename $(def))).exp.def
    2223ifneq ($(3),)
    23     local def_debug := $(3)
    24         local def_exp_debug := $(basename $(def_debug)).exp.def
     24    local def_debug := $(abspath $(PATH_SUB_CURRENT)/$(3))
     25        local def_exp_debug := $(notdir $(basename $(def_debug))).exp.def
    2526endif
     27    local no_def_exp := $(4)
    2628    $(eval $(def_odin_implib))
    2729endef
     
    3537                $(QUIET2)$$(PATH_STAGE_BIN)/impdef $$< $$@
    3638ifeq ($(def_exp_debug),)
     39 ifeq ($(no_def_exp),)
    3740    $(target)_imp_SOURCES  = $$($(target)_imp_0_OUTDIR)/$(def_exp)
    3841    $(target)_imp_CLEAN   += $$($(target)_imp_0_OUTDIR)/$(def_exp)
     42 else
     43    $(target)_imp_SOURCES  = $$($(target)_imp_0_OUTDIR)/$(def)
     44 endif
    3945else
     46 ifeq ($(no_def_exp),)
    4047    $(target)_imp_SOURCES.release  = $$($(target)_imp_0_OUTDIR)/$(def_exp)
    4148    $(target)_imp_CLEAN.release   += $$($(target)_imp_0_OUTDIR)/$(def_exp)
     
    4552    $(target)_imp_SOURCES.debug    = $$($(target)_imp_0_OUTDIR)/$(def_exp_debug)
    4653    $(target)_imp_CLEAN.debug     += $$($(target)_imp_0_OUTDIR)/$(def_exp_debug)
     54 else
     55    $(target)_imp_SOURCES.debug    = $$($(target)_imp_0_OUTDIR)/$(def_debug)
     56 endif
    4757endif
    4858endef
    4959
    5060##
    51 # Shortcut to $(evalcall odin_implib, <1>, <1>.def, <1>dbg.def).
     61# Shortcut to $(call odin_implib,<1>,<2>,<3>,1) used to disable .def file
     62# post-processing with the ImpDef tool.
     63#
     64# @param 1 DLL target name.
     65# @param 2 .def file (defaults to <1>.def).
     66# @param 3 .def file for debug (defaults to <2>).
     67#
     68odin_implib_no_expdef = $(call odin_implib,$(1),$(2),(3),1)
     69
     70##
     71# Shortcut to $(call odin_implib, <1>, <1>.def, <1>dbg.def).
    5272#
    5373# @param 1 DLL target name.
    5474#
    55 # @note Must be called with $(evalcall).
     75odin_implib_2 = $(call odin_implib,$(1),$(1).def,$(1)dbg.def)
     76
     77##
     78# Shortcut to $(call odin_implib_no_expdef,<1>,<1>.def,<1>dbg.def).
    5679#
    57 odin_implib_2 = $(call odin_implib,$(1),$(1).def,$(1)dbg.def)
     80# @param 1 DLL target name.
     81#
     82odin_implib_2_no_expdef = $(call odin_implib_no_expdef,$(1),$(1).def,$(1)dbg.def)
    5883
    5984#
Note: See TracChangeset for help on using the changeset viewer.