Changeset 21756 for branches


Ignore:
Timestamp:
Oct 29, 2011, 1:38:08 AM (14 years ago)
Author:
dmik
Message:

Make: Add function to auto-generate import library target definition.

File:
1 edited

Legend:

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

    r21749 r21756  
    66# Global definitions
    77#------------------------------------------------------------------------------
     8
     9##
     10# Defines import library target for the given DLL.
     11# @param 1 DLL target name.
     12# @param 2 .def file (defaults to <param 1>.def).
     13# @param 3 .def file for debug (defaults to <param 2>).
     14#
     15define odin_implib
     16    $(eval $(def_odin_implib))
     17endef
     18
     19define def_odin_implib
     20    LIBRARIES += $(1)_imp
     21    $(1)_imp_TEMPLATE = OdinCxx
     22    $(1)_imp_NAME     = $(1)
     23ifeq ($(3),)
     24    $(1)_imp_SOURCES  = $(if $(2),$(2),$(1).def)
     25else
     26    $(1)_imp_SOURCES.release = $(if $(2),$(2),$(1).def)
     27    $(1)_imp_SOURCES.debug   = $(3)
     28endif
     29endef
     30
     31##
     32# Shortcut to $(call odin_implib, <param 1>, <param 1>.def, <param 1>dbg.def).
     33# @param 1 DLL target name.
     34#
     35define odin_implib_2
     36    $(call odin_implib, $(1), $(1).def, $(1)dbg.def)
     37endef
    838
    939# Handler for Wine RC (.orc) source files
Note: See TracChangeset for help on using the changeset viewer.