1、產生的目標檔案名可以在***.mpp裡設定,如:TARGET handler.app
2、目標檔案名將在“$(EPOCROOT)Epoc32"release"$(PLATFORM)"$(TARGET)"”檔案夾裡產生,如上面產生的目標檔案為“$(EPOCROOT)Epoc32"release"$(PLATFORM)"$(TARGET)"handler.app”
3、修改了目標檔案名後,需要手動的修改pkg檔案,如:
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\handler.app" -"!:\system\apps\handler\handler.app"
如果目標檔案名修改成Handler1.app上面的也需要修改,SDK不會自動幫你刪掉handler.app,它還會指向原來的handler.app檔案,此時新產生的handler1.app沒有打入包裡,會造成程式混亂。
4、修改了目標檔案名後,需要重新定義_reg.rss檔案註冊app,如:app_file="handler1";
5、在S60 2nd中,應用程式存入手機的位置是和應用程式名稱緊密聯絡的,如果應用程式名稱改變,存入的位置也要隨著改變,編譯後資源檔名也要改變,如:
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\handler.app" -"!:\system\apps\handler\handler.app"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.rsc" -"!:\system\apps\handler\handler.rsc"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.aif" -"!:\system\apps\handler\handler.aif"
要改成
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\
handler1.app" -"!:\system\apps\
handler1\
handler1.app"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.rsc" -"!:\system\apps\
handler1\
handler1.rsc"
"$(EPOCROOT)Epoc32\data\z\system\apps\handler\handler.aif" -"!:\system\apps\
handler1\
handler1.aif"
而在S60 3rd中,只需要改變輸出檔案名即可,路徑無需改變。如:
"$(EPOCROOT)Epoc32\release\$(PLATFORM)\$(TARGET)\handler.exe" -"!:\sys\bin\
handler1.exe"
"$(EPOCROOT)Epoc32\data\z\resource\apps\handler.rsc"-"!:\resource\apps\
handler1.rsc"
"$(EPOCROOT)Epoc32\data\z\resource\apps\handler_loc.rsc"-"!:\resource\apps\
handler1_loc.rsc"
"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\handler_reg.rsc"-"!:\private\10003a3f\import\apps\
handler1_reg.rsc"
注意:S60 3rd與S60 2nd目標路徑有很大的不同。