- Timestamp:
- Nov 1, 2011, 10:48:52 PM (14 years ago)
- File:
-
- 1 edited
-
branches/gcc-kmk/Config.kmk (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/Config.kmk
r21774 r21777 13 13 # @param 2 .def file (defaults to <1>.def). 14 14 # @param 3 .def file for debug (defaults to <2>). 15 # @param 4 non-empty to disable .def post-processing with ImpDef. 15 16 # 16 odin_implib = $(evalcall odin_implib_common,$(1),$(2),$(3) )17 odin_implib = $(evalcall odin_implib_common,$(1),$(2),$(3),$(4)) 17 18 18 19 define odin_implib_common 19 20 local target := $(1) 20 local def := $( if $(2),$(2),$(1).def)21 local def_exp := $( basename $(def)).exp.def21 local def := $(abspath $(PATH_SUB_CURRENT)/$(if $(2),$(2),$(1).def)) 22 local def_exp := $(notdir $(basename $(def))).exp.def 22 23 ifneq ($(3),) 23 local def_debug := $( 3)24 local def_exp_debug := $( basename $(def_debug)).exp.def24 local def_debug := $(abspath $(PATH_SUB_CURRENT)/$(3)) 25 local def_exp_debug := $(notdir $(basename $(def_debug))).exp.def 25 26 endif 27 local no_def_exp := $(4) 26 28 $(eval $(def_odin_implib)) 27 29 endef … … 35 37 $(QUIET2)$$(PATH_STAGE_BIN)/impdef $$< $$@ 36 38 ifeq ($(def_exp_debug),) 39 ifeq ($(no_def_exp),) 37 40 $(target)_imp_SOURCES = $$($(target)_imp_0_OUTDIR)/$(def_exp) 38 41 $(target)_imp_CLEAN += $$($(target)_imp_0_OUTDIR)/$(def_exp) 42 else 43 $(target)_imp_SOURCES = $$($(target)_imp_0_OUTDIR)/$(def) 44 endif 39 45 else 46 ifeq ($(no_def_exp),) 40 47 $(target)_imp_SOURCES.release = $$($(target)_imp_0_OUTDIR)/$(def_exp) 41 48 $(target)_imp_CLEAN.release += $$($(target)_imp_0_OUTDIR)/$(def_exp) … … 45 52 $(target)_imp_SOURCES.debug = $$($(target)_imp_0_OUTDIR)/$(def_exp_debug) 46 53 $(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 47 57 endif 48 58 endef 49 59 50 60 ## 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 # 68 odin_implib_no_expdef = $(call odin_implib,$(1),$(2),(3),1) 69 70 ## 71 # Shortcut to $(call odin_implib, <1>, <1>.def, <1>dbg.def). 52 72 # 53 73 # @param 1 DLL target name. 54 74 # 55 # @note Must be called with $(evalcall). 75 odin_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). 56 79 # 57 odin_implib_2 = $(call odin_implib,$(1),$(1).def,$(1)dbg.def) 80 # @param 1 DLL target name. 81 # 82 odin_implib_2_no_expdef = $(call odin_implib_no_expdef,$(1),$(1).def,$(1)dbg.def) 58 83 59 84 #
Note:
See TracChangeset
for help on using the changeset viewer.
