partial candidate fix for 'Bug 1410 - AknSkinContent exports into it's own source tree.'
--- a/skins/AknSkinContent/group/bld.inf Tue Dec 01 16:49:18 2009 +0000
+++ b/skins/AknSkinContent/group/bld.inf Tue Dec 08 20:57:24 2009 +0000
@@ -55,8 +55,8 @@
./skingenerator.meta /epoc32/tools/makefile_templates/skins/skingenerator.meta
./skingenerator.xml /epoc32/tools/makefile_templates/skins/skingenerator.xml
- :zip ../srcdata/haze/haze.zip |../srcdata/haze
- :zip ../srcdata/jing/jing.zip |../srcdata/jing
+ :zip ../srcdata/haze/haze.zip /epoc32/s60/skins/haze
+ :zip ../srcdata/jing/jing.zip /epoc32/s60/skins/jing
#endif
PRJ_EXTENSIONS
@@ -66,19 +66,19 @@
OPTION AKNSSKINNAME scalableseries60skin
OPTION AKNSSKINREALNAME series60skin
OPTION AKNSSKINUID 101f84b9
- OPTION AKNSSRCDIR ../srcdata/scalableseries60skin
+ OPTION AKNSSRCDIR $(EXTENSION_ROOT)/../srcdata/scalableseries60skin
END
START EXTENSION skins/skingenerator
OPTION AKNSSKINNAME jing
OPTION AKNSSKINREALNAME jing
OPTION AKNSSKINUID 2000B12E
- OPTION AKNSSRCDIR ../srcdata/jing
+ OPTION AKNSSRCDIR $(EPOCROOT)/epoc32/s60/skins/jing
END
START EXTENSION skins/skingenerator
OPTION AKNSSKINNAME haze
OPTION AKNSSKINREALNAME haze
OPTION AKNSSKINUID 2000B12D
- OPTION AKNSSRCDIR ../srcdata/haze
+ OPTION AKNSSRCDIR $(EPOCROOT)/epoc32/s60/skins/haze
END
START EXTENSION s60/mif2cdlindex
OPTION TARGETFILE series60skinindexdll_inst.cpp
--- a/skins/AknSkinContent/group/skingenerator.flm Tue Dec 01 16:49:18 2009 +0000
+++ b/skins/AknSkinContent/group/skingenerator.flm Tue Dec 08 20:57:24 2009 +0000
@@ -39,36 +39,30 @@
# AKNSTARGETDIR --> to copy .skn files
# AKNSBMPTARGETDIR --> to copy .mif/.mbm files
+#MattD 20091208 - Would be prettier if I generated these, but I'm short on time...
+AKNSTARGETDIR:=$(EPOCROOT)/epoc32/data/z/private/10207114/import/$(AKNSSKINUID)
+AKNSTARGETDIR:=${AKNSTARGETDIR} $(EPOCROOT)/epoc32/release/winscw/udeb/z/private/10207114/import/$(AKNSSKINUID)
+AKNSTARGETDIR:=${AKNSTARGETDIR} $(EPOCROOT)/epoc32/release/winscw/urel/z/private/10207114/import/$(AKNSSKINUID)
-ifeq ($(PLATFORM),ARMV5)
- AKNSTARGETDIR:=$(EPOCROOT)/epoc32/data/z/private/10207114/import/$(AKNSSKINUID)
- AKNSBMPTARGETDIR:=$(EPOCROOT)/epoc32/data/z/resource/skins/$(AKNSSKINUID)
-else
- AKNSTARGETDIR:=$(EPOCROOT)/epoc32/release/$(PLATFORM)/$(CFG)/z/private/10207114/import/$(AKNSSKINUID)
- AKNSBMPTARGETDIR:=$(EPOCROOT)/epoc32/release/$(PLATFORM)/$(CFG)/z/resource/skins/$(AKNSSKINUID)
-endif
+AKNSBMPTARGETDIR:=$(EPOCROOT)/epoc32/data/z/resource/skins/$(AKNSSKINUID)
+AKNSBMPTARGETDIR:=${AKNSBMPTARGETDIR} $(EPOCROOT)/epoc32/release/winscw/udeb/z/resource/skins/$(AKNSSKINUID)
+AKNSBMPTARGETDIR:=${AKNSBMPTARGETDIR} $(EPOCROOT)/epoc32/release/winscw/urel/z/resource/skins/$(AKNSSKINUID)
CREATABLEPATHS:=$(AKNSTARGETDIR) $(AKNSBMPTARGETDIR)
-ifeq ($(strip $(AKNSSRCDIR)),)
-# Output dir for the skins
-AKNSSRCDIR:=$(EPOCROOT)/epoc32/include/skins/$(AKNSSKINREALNAME)
-else
-AKNSSRCDIR:=$(EXTENSION_ROOT)/$(AKNSSRCDIR)
-endif
-
# By default
#AKNSGENDIR:=
-AKNSDATAGENDIR:=$(EXTENSION_ROOT)/../generated/$(AKNSSKINNAME)/data
+AKNSDATAGENDIR:=$(EPOCROOT)/epoc32/build/generated/skins/$(AKNSSKINNAME)/data
AKNSTARGETDIR:=$(subst //,/,$(AKNSTARGETDIR))
AKNSBMPTARGETDIR:=$(subst //,/,$(AKNSBMPTARGETDIR))
AKNSSRCDIR:=$(subst //,/,$(AKNSSRCDIR))
AKNSGENDIR:=$(subst //,/,$(AKNSGENDIR))
EPOCTOOLS:=$(subst //,/,$(EPOCTOOLS))
+TARGETSKN:=$(subst //,/,$(patsubst %, %/$(notdir $(AKNSSKINREALNAME).skn),$(AKNSTARGETDIR)))
+TARGETMIF:=$(subst //,/,$(patsubst %, %/$(notdir $(AKNSSKINREALNAME).mif),$(AKNSBMPTARGETDIR)))
+TARGETMBM:=$(subst //,/,$(patsubst %, %/$(notdir $(AKNSSKINREALNAME).mbm),$(AKNSBMPTARGETDIR)))
-TARGETSKN:=$(AKNSTARGETDIR)/$(AKNSSKINREALNAME).skn
-TARGETMIF:=$(AKNSBMPTARGETDIR)/$(AKNSSKINREALNAME).mif
CREATABLEPATHS:=$(CREATABLEPATHS) $(AKNSGENDIR) $(AKNSDATAGENDIR)
ifeq ($(SKINDEBUG),0)
@@ -84,19 +78,27 @@
define generatesknandmif
$(SKNMIFGUARD):=1
-RELEASEABLES:=$(TARGETSKN) $(TARGETMIF) $(basename $(TARGETMIF)).mbm
+RELEASEABLES:=$(TARGETSKN) $(TARGETMIF) $(TARGETMBM)
-BITMAP:: $(TARGETMIF)
+BITMAP:: $(TARGETMIF) $(TARGETSKN) $(TARGETMBM)
$(TARGETMIF) : $(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).mif
- $(call startrule,mifmbmcopy,FORCESUCCESS) \
- $(GNUCP) $$< $$@ && \
- $(GNUCHMOD) a+rw "$$@" && \
- $(GNUCP) $$(basename $$<).mbm $$(basename $$@).mbm && \
- $(GNUCHMOD) a+rw "$$(basename $$@).mbm" && \
- $(GNUCP) $$(basename $$<).skn $(TARGETSKN) && \
- $(GNUCHMOD) a+rw "$(TARGETSKN)" \
- $(call endrule,mifmbmcopy)
+ $(call startrule,mifcopy,FORCESUCCESS) \
+ $(GNUCP) '$(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).mif' '$$@' \
+ $(call endrule,mifcopy)
+
+$(TARGETSKN) : $(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).skn
+ $(call startrule,skincopy,FORCESUCCESS) \
+ $(GNUCP) '$(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).skn' '$$@' \
+ $(call endrule,skincopy)
+
+$(TARGETMBM) : $(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).mbm
+ $(call startrule,mbmcopy,FORCESUCCESS) \
+ $(GNUCP) '$(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).mbm' '$$@' \
+ $(call endrule,mbmcopy)
+
+# Quick patch to get it to do the right thing...
+$(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).mbm : $(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).mif
$(AKNSDATAGENDIR)/$(AKNSSKINREALNAME).skn : $(SKINCOMPILER) $(AKNSSRCDIR)/$(AKNSSKINNAME).txt
$(call startrule,generateskn,FORCESUCCESS) \