uigraphics/AknIcon/group/akniconinterfaces.flm
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 10:48:00 +0300
changeset 98 4c5ac0e85ed3
parent 64 ecb300a325e8
child 107 9f95a5546443
permissions -rw-r--r--
Revision: 201031 Kit: 201033

# akniconinterfaces.flm
#
# Copyright (c) 2007-2008 Nokia Ltd. All rights reserved.
#
# Header file exporting Function Like Makefile (FLM)
# The file destinations  relative to EPOCROOT

# Please note the CDLCOMPILER doesn't seems to accept the forward slashes below; 
# so just left without changing \ to /.

# Check for inputs
$(if $(FILENAME),,$(error Must define FILENAME))

CREATABLEPATHS:=
CLEANTARGETS:=
RELEASEABLES:=

TARGETDIR:=$(EPOCROOT)/epoc32/include/platform/mw
CREATABLEPATHS:=$(CREATABLEPATHS) $(TARGETDIR)
FILES:=$(FILENAME).cdl.h $(FILENAME).cdl.common.h
TARGETS:=$(addprefix $(TARGETDIR)/,$(FILES))

ifeq ($(ICONINTERFACEEBUG),1)
$(info <TARGETS targets=$(TARGETS)/>)
endif

define generatecdlheaders
MIFHEADERGUARD_$(FILENAME):=1

MAKEFILE:: $(TARGETS)

$(TARGETS) : $(CDLCOMPILER) $(TARGETDIR)/$(FILENAME).cdl
	$(call startrule,generatecdlheaders,FORCESUCCESS) \
	$(CDLCOMPILER) client -p$(TARGETDIR) $(TARGETDIR)/$(FILENAME).cdl \
	$(call endrule,generatecdlheaders)

CLEANTARGETS:=$(TARGETS)
RELEASEABLES:=$(TARGETS)
endef

ifeq ($(MIFHEADERGUARD_$(FILENAME)),)
$(eval $(call generatecdlheaders))
endif

# Create dirs
$(call makepath,$(CREATABLEPATHS))

# Clean up
$(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS)))

# For the abld -what target
$(eval $(call whatmacro,$(RELEASEABLES),WHATBITMAP))