bld.inf:
PRJ_PLATFORMS
WINSCW GCCE
PRJ_MMPFILES
xxxxxxxxxx.mmp
gnumakefile icons_aif.mk
icons_aif.mk:
# ==============================================================================
# Name : icons_aif.mk
# Part of :
# Description : This is file for creating .mbm file
# Version :
#
# ==============================================================================
ifeq (WINS,$(findstring WINS, $(PLATFORM)))
ZDIR=$(EPOCROOT)epoc32/release/$(PLATFORM)/$(CFG)/Z
else
ZDIR=$(EPOCROOT)epoc32/data/z
endif
TARGETDIR=$(ZDIR)/RESOURCE/APPS
ICONTARGETFILENAME=$(TARGETDIR)/YourProject_aif.mbm
do_nothing :
@rem do_nothing
MAKMAKE : do_nothing
BLD : do_nothing
CLEAN : do_nothing
LIB : do_nothing
CLEANLIB : do_nothing
RESOURCE :
mifconv $(ICONTARGETFILENAME) /c24,1 ../gfx/icon_lst.bmp /c24,1 ../gfx/icon_cxt.bmp
FREEZE : do_nothing
SAVESPACE : do_nothing
RELEASABLES :
@echo $(ICONTARGETFILENAME)
FINAL : do_nothing
添加上面的内容后,并在RSS文件中修改LOCALISABLE_APP_INFO就可以了:
// -----------------------------------------------------------------------------
//
// Localizable application information
//
// -----------------------------------------------------------------------------
//
RESOURCE LOCALISABLE_APP_INFO r_yourproject_localisable_app_info
{
short_caption = qtn_app_short_caption_string;
caption_and_icon =
CAPTION_AND_ICON_INFO
{
caption = qtn_app_caption_string;
number_of_icons = 1;
icon_file = "//resource//apps//YourProject_aif.mbm";
};
}