You Are Here:

Community: Wiki

This page was last modified on 6 September 2009, at 19:36.

How to create a MIF file

From Forum Nokia Wiki

Reviewer Approved   

Contents

In the Bld.inf file

// ..
 
PRJ_MMPFILES
 
gnumakefile My_Icon.mk
MyProject.mmp
 
// ..


In the My_Icon.mk file

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)\My_Icon.mif
 
HEADERDIR=$(EPOCROOT)epoc32\include
HEADERFILENAME=$(HEADERDIR)\My_Icon.mbg
 
ICONDIR=..\gfx
 
do_nothing :
@rem do_nothing
 
MAKMAKE : do_nothing
 
BLD : do_nothing
 
CLEAN : do_nothing
 
LIB : do_nothing
 
CLEANLIB : do_nothing
 
# In the below lines the c32,8 the 32 is for the image and
# 8 is for it's mask. See how the BMP file is mentioned
# below the SVG's here.
 
RESOURCE :
mifconv $(ICONTARGETFILENAME) /h$(HEADERFILENAME) \
/c32,8 $(ICONDIR)\My_Icon1.svg\
/c32,8 $(ICONDIR)\My_Icon2.svg\
/c32,8 $(ICONDIR)\My_IconN.svg\
/c24 $(ICONDIR)\My_BMPIcon1.bmp\
/c8 $(ICONDIR)\My_BMPIcon1_Mask.bmp\
/c24 $(ICONDIR)\My_BMPIcon2.bmp\
/c8 $(ICONDIR)\My_BMPIcon2_Mask.bmp\
/c24 $(ICONDIR)\My_BMPIconN.bmp\
/c8 $(ICONDIR)\My_BMPIconN_Mask.bmp
 
 
FREEZE : do_nothing
 
SAVESPACE : do_nothing
 
RELEASABLES :
@echo $(HEADERFILENAME)&& \
@echo $(ICONTARGETFILENAME)
 
FINAL : do_nothing


In the command line

c:\MyProject\Group> bldmake bldfiles
c:\MyProject\Group> abld build gcce urel


The output

...
 
Checking: ..\gfx\My_Icon.svg
Choosing...
1 file(s) copied.
Loading mif icons...
Loading file: \epoc32\winscw\c\system\temp\s5bs.tmp\.._gfx_My_Icon.svgb
Writing mif: \epoc32\data\z\resource\apps\My_Icon.mif
Writing mbg...\epoc32\include\My_Icon.mbg
 
...



Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fwikiE2eforumE2enokiaE2ecomE2findeE78E2ephpE2fPortingE5fBlackBerryE5fapplicationsE5fandE5fservicesE5ftoE5fS60E5fplatformX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqfntypeZWikiContentQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qfnZtypeQUqfntypeZWikiContentQ qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqfntypeZWikiContentQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ