Hi,
1/ Add into bld.inf the makefile line for crateing bitmaps:
PRJ_MMPFILES
gnumakefile XXX_bitmaps.mk
Code:
ifeq (WINS,$(findstring WINS, $(PLATFORM)))
ZDIR=$(EPOCROOT)epoc32\release\winscw\udeb\z
else
ZDIR=$(EPOCROOT)epoc32\data\z
endif
TARGETDIR=$(ZDIR)\RESOURCE\APPS
ICONTARGETFILENAME=$(TARGETDIR)\XXXIcons.mbm
ICONINCLUDEFILENAME=$(EPOCROOT)epoc32\include\XXXIcons.mbg
do_nothing :
@rem do_nothing
MAKMAKE : do_nothing
BLD : do_nothing
CLEAN : do_nothing
LIB : do_nothing
CLEANLIB : do_nothing
RESOURCE :
call makedir.bat $(TARGETDIR)
bmconv /h$(ICONINCLUDEFILENAME) $(ICONTARGETFILENAME) /c24..\..\Gfx\Data\icon1.bmp
/c24..\..\Gfx\Data\icon2.bmp
...
FREEZE : do_nothing
SAVESPACE : do_nothing
RELEASABLES :
@echo $(ICONTARGETFILENAME)
FINAL : do_nothing
where makedir.bat is
Code:
@echo off
:START
cd %1 2>NUL
if ERRORLEVEL 1 goto MKDIR
goto EXIT
:MKDIR
mkdir %1
:EXIT
BR
Modify the .mk file to fit your needs.
STeN