Categories: Symbian C++ | S60 | How To | Code Examples | Base/System | UI
This page was last modified 17:22, 1 January 2008.
How to create a MIF file
From Forum Nokia Wiki
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 Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| creating theme without carbide ui | bbunlock | Themes/Carbide.ui | 3 | 2008-03-15 21:40 |
| avkon.mbm transformed in 3rd edition | iulian_moldovan | General Symbian C++ | 3 | 2006-08-01 09:51 |
| 我的s60三版程序要换个svg图标,一直没有成功,请大家帮忙 | postpostpost | Symbian | 5 | 2007-10-19 08:36 |
| signing question | microdot | General Symbian C++ | 30 | 2007-10-23 09:18 |
| How to set *scalable* icons in resource files? | svdwal | Symbian User Interface | 2 | 2006-07-14 16:02 |
