pictographs/AknPictograph/group/AknPictographBitmaps.mk
changeset 0 05e9090e2422
equal deleted inserted replaced
-1:000000000000 0:05e9090e2422
       
     1 #
       
     2 # Copyright (c) 2002 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 "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: 
       
    15 #    Builds pictograph bitmaps.
       
    16 #
       
    17 
       
    18 PARENT_DIR1 = $(CURDIR)\..\..\ 
       
    19 PARENT_DIR  = $(subst /,\,$(PARENT_DIR1))
       
    20     
       
    21     
       
    22 # set defaults for variables
       
    23 RESOURCE_FILES_DIR=resource
       
    24 
       
    25 # possible values: 'non_xip' or 'xip'
       
    26 #
       
    27 # This variable should be configured based on whether the device has XIP (NOR) or
       
    28 # Non-XIP (NAND) ROM memory. It only affects the total memory consumption (ROM and RAM).
       
    29 # To save ROM (but lose RAM), it can be set to 'non_xip' even if the device has XIP ROM. 
       
    30 # For exact details, refer to the design document.
       
    31 ROM_TYPE=non_xip
       
    32 
       
    33 
       
    34 ifeq (WINS,$(findstring WINS, $(PLATFORM)))
       
    35 TARGET_CORE_DIR=\epoc32\release\$(PLATFORM)\$(CFG)\z
       
    36 else
       
    37 TARGET_CORE_DIR=\epoc32\Data\z
       
    38 endif
       
    39 TARGETDIR=$(TARGET_CORE_DIR)\$(RESOURCE_FILES_DIR)
       
    40 
       
    41 # generate final bitmap list
       
    42 CONFIG_FILES:=$(notdir $(wildcard ../config/picto??.ini))
       
    43 BITMAP_FILES:=$(CONFIG_FILES:picto%.ini=AknPictograph%.mbm)
       
    44 BITMAP_MASK_FILES:=$(CONFIG_FILES:picto%.ini=AknPictographMask%.mbm)
       
    45 FINAL_BITMAP_FILES:= \
       
    46 	$(addprefix $(TARGETDIR)\,$(BITMAP_FILES)) \
       
    47 	$(addprefix $(TARGETDIR)\,$(BITMAP_MASK_FILES))
       
    48 FINAL_BITMAP_FILES_CLEAN:= \
       
    49 	$(addprefix $(TARGET_CORE_DIR)\resource\,$(BITMAP_FILES)) \
       
    50 	$(addprefix $(TARGET_CORE_DIR)\resource\,$(BITMAP_MASK_FILES))
       
    51 
       
    52 $(TARGETDIR) :
       
    53 	@if not exist $(TARGETDIR) md $(TARGETDIR)
       
    54 
       
    55 BITMAPBUILDER :
       
    56 	@.\AknPictographBitmapsBuild.cmd $(ROM_TYPE) "$(PARENT_DIR)" $(TARGETDIR)
       
    57 
       
    58 do_nothing :
       
    59 	@rem do_nothing
       
    60 
       
    61 #
       
    62 # The targets invoked by bld...
       
    63 #
       
    64 
       
    65 MAKMAKE : do_nothing
       
    66 
       
    67 FINAL : do_nothing
       
    68 
       
    69 BLD : do_nothing
       
    70 
       
    71 SAVESPACE : do_nothing
       
    72 
       
    73 RESOURCE : $(TARGETDIR) BITMAPBUILDER
       
    74 
       
    75 CLEAN : 
       
    76 	-@erase /q $(FINAL_BITMAP_FILES)
       
    77 	-@erase /q $(FINAL_BITMAP_FILES_CLEAN)	
       
    78 	@cd ..\tools\AknPictoBitmapBuilder\group&& \
       
    79 	@abld reallyclean&& \
       
    80 	@cd ..\..\..\group
       
    81 	
       
    82 	
       
    83 FREEZE : do_nothing
       
    84 
       
    85 LIB : do_nothing
       
    86 
       
    87 CLEANLIB : do_nothing
       
    88 
       
    89 RELEASABLES :
       
    90 	@echo $(FINAL_BITMAP_FILES)
       
    91 	
       
    92 	
       
    93 	
       
    94