skins/AknSkinContent/group/scalableseries60skin.mk
author andy simpson <andrews@symbian.org>
Thu, 02 Sep 2010 17:15:02 +0100
branchRCL_3
changeset 108 73fa3ba3e5e0
parent 39 cd0a5a660373
parent 107 9f95a5546443
permissions -rw-r--r--
Merge after removal of incorrect RCL_3 drop

#
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description:
#

# ======================================================================
# Makefile for Scalable Series 60 Skin
# ======================================================================

# Name of the skin (used in source filename and directories)
AKNSSKINNAME = scalableseries60skin
# Real name (used in file names)
AKNSSKINREALNAME = series60skin

# UID of the skin (used in directory and file names)
# NOTE: This is the UID for Scalable System Default Skin 
#       A&H is included within the same file skin, not separately
AKNSSKINUID = 101f84b9

# ======================================================================
# Usually nothing to change below this line
# Makefile template: (special, scalable skin located in ROM)
# ======================================================================

AKNSSRCDIR = ..\srcdata\$(AKNSSKINNAME)
AKNSGENDIR = ..\..\generated\$(AKNSSKINNAME)

AKNSDATAGENDIR = $(AKNSGENDIR)\data

AKNSCOMPILER = \epoc32\tools\AknSkinDescCompiler_NR.EXE
ERASE = @erase 2>>nul

USERELEASETREE = NO

ifeq "WINS" "$(PLATFORM)"
USERELEASETREE = YES
endif
ifeq "WINSCW" "$(PLATFORM)"
USERELEASETREE = YES
endif

ifeq "YES" "$(USERELEASETREE)"
ifeq "UDEB" "$(CFG)"
AKNSTARGETDIR = \epoc32\release\$(PLATFORM)\udeb\z\private\10207114\import\$(AKNSSKINUID)
AKNSBMPTARGETDIR = \epoc32\release\$(PLATFORM)\udeb\z\resource\skins\$(AKNSSKINUID)
else
AKNSTARGETDIR = \epoc32\release\$(PLATFORM)\urel\z\private\10207114\import\$(AKNSSKINUID)
AKNSBMPTARGETDIR = \epoc32\release\$(PLATFORM)\urel\z\resource\skins\$(AKNSSKINUID)
endif
else
AKNSTARGETDIR = \epoc32\data\z\private\10207114\import\$(AKNSSKINUID)
AKNSBMPTARGETDIR = \epoc32\data\z\resource\skins\$(AKNSSKINUID)
endif

do_nothing :
	@rem do_nothing

MAKMAKE :
	cd $(AKNSSRCDIR) && \
	perl -S emkdir.pl $(AKNSGENDIR) && \
	perl -S emkdir.pl $(AKNSDATAGENDIR) && \
	perl -S emkdir.pl $(AKNSTARGETDIR) && \
	perl -S emkdir.pl $(AKNSBMPTARGETDIR) && \
	$(AKNSCOMPILER) -m$(AKNSDATAGENDIR) -t$(AKNSDATAGENDIR) $(AKNSSKINNAME).txt $(AKNSSKINREALNAME)

BLD : do_nothing

CLEAN :
	cd $(AKNSSRCDIR) && \
	$(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME)_MIFList.txt" && \
	$(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mbm" && \
	$(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mif" && \
	$(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).skn" && \
	$(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).pkg" && \
	$(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).sis" && \
	$(ERASE) "$(AKNSTARGETDIR)\$(AKNSSKINREALNAME).sis" && \
	$(ERASE) "$(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mbm" && \
        $(ERASE) "$(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mif"
	

LIB : do_nothing

CLEANLIB : do_nothing

RESOURCE :
	cd $(AKNSSRCDIR) && \
	mifconv $(AKNSSKINREALNAME).mif -v3 /F$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME)_MIFList.txt && \
	MifToCdlIndex -p..\..\srcdata\scalableseries60skin\MifIndexDll -s $(AKNSSKINREALNAME).mif $(AKNSSKINREALNAME)IndexDll 0x$(AKNSSKINUID) && \
	perl -S ecopyfile.pl $(AKNSSKINREALNAME).mbm $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mbm && \
	perl -S ecopyfile.pl $(AKNSSKINREALNAME).mif $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mif && \
	$(ERASE) $(AKNSSKINREALNAME).mbm && \
	$(ERASE) $(AKNSSKINREALNAME).mif

FREEZE : do_nothing

SAVESPACE : do_nothing

RELEASABLES : do_nothing

FINAL :
	cd $(AKNSSRCDIR) && \
	perl -S emkdir.pl $(AKNSTARGETDIR)  && \
	perl -S ecopyfile.pl $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mbm $(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mbm && \
	perl -S ecopyfile.pl $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mif $(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mif && \
	perl -S ecopyfile.pl $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).skn $(AKNSTARGETDIR)\$(AKNSSKINREALNAME).skn