inc/icons_vcx_base.mk
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 #
       
     2 # Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of the License "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description:   Base makefile for the specific icon makefiles.
       
    15 #
       
    16 #
       
    17 
       
    18 ifeq (WINSCW,$(findstring WINSCW, $(PLATFORM)))
       
    19 ZDIR=\epoc32\release\$(PLATFORM)\$(CFG)\Z
       
    20 else
       
    21 ZDIR=\epoc32\data\z
       
    22 endif
       
    23 
       
    24 # ----------------------------------------------------------------------------
       
    25 # NOTE: This does not work unless, the ICONTARGETNAME and ICONS variables are 
       
    26 # defined. ICONTARGETNAME contains the target filename without path. ICONS 
       
    27 # contain the list of icon files, that are feeded to MifConv. Additionally if
       
    28 # needed you can define variable HEADERNAME that contains the name of the .mbg
       
    29 # header file without path.
       
    30 # ----------------------------------------------------------------------------
       
    31 
       
    32 TARGETDIR?=$(ZDIR)\resource\apps
       
    33 ICONTARGETFILENAME?=$(TARGETDIR)\$(ICONTARGETNAME)
       
    34 
       
    35 HEADERDIR=\epoc32\include
       
    36 
       
    37 ifdef HEADERNAME
       
    38 HEADERCOMMAND=/h$(HEADERDIR)\$(HEADERNAME)
       
    39 else
       
    40 HEADERCOMMAND=
       
    41 HEADERNAME=$(addsuffix .mbg, $(basename $(ICONTARGETNAME)))
       
    42 endif
       
    43 
       
    44 do_nothing :
       
    45 	@rem do_nothing
       
    46 
       
    47 MAKMAKE : do_nothing
       
    48 
       
    49 BLD : do_nothing
       
    50 
       
    51 #-----------------------------------------------------------------------------
       
    52 # NOTE: CLEAN target needs to do nothing, as the files echoed in RELEASABLES
       
    53 # get deleted automatically.
       
    54 #-----------------------------------------------------------------------------
       
    55 CLEAN : do_nothing
       
    56 
       
    57 LIB : do_nothing
       
    58 
       
    59 CLEANLIB : do_nothing
       
    60 
       
    61 # ----------------------------------------------------------------------------
       
    62 # NOTE 1: DO NOT DEFINE MASK FILE NAMES! They are included automatically by
       
    63 # MifConv if the mask detph is defined.
       
    64 #
       
    65 # NOTE 2: Usually, source paths should not be included in the bitmap
       
    66 # definitions. MifConv searches for the icons in all icon directories in a
       
    67 # predefined order, which is currently \s60\icons, \s60\bitmaps2.
       
    68 # The directory \s60\icons is included in the search only if the feature flag
       
    69 # __SCALABLE_ICONS is defined.
       
    70 # ----------------------------------------------------------------------------
       
    71 
       
    72 RESOURCE : $(ICONTARGETFILENAME)
       
    73     $(ICONTARGETFILENAME) : $(filter-out /c%,$(ICONS)) 
       
    74 	mifconv $(ICONTARGETFILENAME) $(HEADERCOMMAND) $(ICONS)
       
    75 
       
    76 FREEZE : do_nothing
       
    77 
       
    78 SAVESPACE : do_nothing
       
    79 
       
    80 RELEASABLES :
       
    81 	@echo $(HEADERDIR)\$(HEADERNAME)&& \
       
    82 	@echo $(ICONTARGETFILENAME)
       
    83 
       
    84 FINAL : do_nothing