|
1 # |
|
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 # All rights reserved. |
|
4 # This component and the accompanying materials are made available |
|
5 # under the terms of "Eclipse Public License v1.0" |
|
6 # which accompanies this distribution, and is available |
|
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 # |
|
9 # Initial Contributors: |
|
10 # Nokia Corporation - initial contribution. |
|
11 # |
|
12 # Contributors: |
|
13 # |
|
14 # Description: |
|
15 # |
|
16 |
|
17 # ====================================================================== |
|
18 # Makefile for Haze Skin |
|
19 # ====================================================================== |
|
20 |
|
21 # Name of the skin (used in source filename and directories) |
|
22 AKNSSKINNAME = haze |
|
23 # Real name (used in file names) |
|
24 AKNSSKINREALNAME = haze |
|
25 # UID of the skin (used in directory and file names) |
|
26 AKNSSKINUID = 2000B12D |
|
27 |
|
28 # ====================================================================== |
|
29 # Usually nothing to change below this line |
|
30 # Makefile template: (special, scalable skin located in ROM) |
|
31 # ====================================================================== |
|
32 |
|
33 AKNSSRCDIR = ..\srcdata\$(AKNSSKINNAME) |
|
34 AKNSGENDIR = ..\..\generated\$(AKNSSKINNAME) |
|
35 EMPTYFILE = ..\..\group\EmptyFile.dat |
|
36 |
|
37 AKNSDATAGENDIR = $(AKNSGENDIR)\data |
|
38 |
|
39 AKNSCOMPILER = \epoc32\release\tools\rel\AknSkinDescCompiler_NR |
|
40 ERASE = @erase 2>>nul |
|
41 UNZIP = @unzip -o -qq |
|
42 |
|
43 USERELEASETREE = NO |
|
44 |
|
45 ifeq "WINS" "$(PLATFORM)" |
|
46 USERELEASETREE = YES |
|
47 endif |
|
48 ifeq "WINSCW" "$(PLATFORM)" |
|
49 USERELEASETREE = YES |
|
50 endif |
|
51 |
|
52 ifeq "YES" "$(USERELEASETREE)" |
|
53 ifeq "UDEB" "$(CFG)" |
|
54 AKNSTARGETDIR = \epoc32\release\$(PLATFORM)\udeb\z\private\10207114\import\$(AKNSSKINUID) |
|
55 AKNSBMPTARGETDIR = \epoc32\release\$(PLATFORM)\udeb\z\resource\skins\$(AKNSSKINUID) |
|
56 else |
|
57 AKNSTARGETDIR = \epoc32\release\$(PLATFORM)\urel\z\private\10207114\import\$(AKNSSKINUID) |
|
58 AKNSBMPTARGETDIR = \epoc32\release\$(PLATFORM)\urel\z\resource\skins\$(AKNSSKINUID) |
|
59 endif |
|
60 else |
|
61 AKNSTARGETDIR = \epoc32\data\z\private\10207114\import\$(AKNSSKINUID) |
|
62 AKNSBMPTARGETDIR = \epoc32\data\z\resource\skins\$(AKNSSKINUID) |
|
63 endif |
|
64 |
|
65 do_nothing : |
|
66 @rem do_nothing |
|
67 |
|
68 MAKMAKE : |
|
69 cd $(AKNSSRCDIR) && \ |
|
70 $(UNZIP) "$(AKNSSKINREALNAME).zip" && \ |
|
71 perl -S emkdir.pl $(AKNSGENDIR) && \ |
|
72 perl -S emkdir.pl $(AKNSDATAGENDIR) && \ |
|
73 perl -S emkdir.pl $(AKNSTARGETDIR) && \ |
|
74 perl -S emkdir.pl $(AKNSBMPTARGETDIR) && \ |
|
75 $(AKNSCOMPILER) -m$(AKNSDATAGENDIR) -t$(AKNSDATAGENDIR) $(AKNSSKINNAME).txt $(AKNSSKINREALNAME) |
|
76 |
|
77 BLD : do_nothing |
|
78 |
|
79 CLEAN : |
|
80 cd $(AKNSSRCDIR) && \ |
|
81 $(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME)_MIFList.txt" && \ |
|
82 $(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mbm" && \ |
|
83 $(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mif" && \ |
|
84 $(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).skn" && \ |
|
85 $(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).pkg" && \ |
|
86 $(ERASE) "$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).sis" && \ |
|
87 $(ERASE) "$(AKNSTARGETDIR)\$(AKNSSKINREALNAME).sis" && \ |
|
88 $(ERASE) "$(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mbm" && \ |
|
89 $(ERASE) "$(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mif" |
|
90 |
|
91 |
|
92 LIB : do_nothing |
|
93 |
|
94 CLEANLIB : do_nothing |
|
95 |
|
96 RESOURCE : |
|
97 cd $(AKNSSRCDIR) && \ |
|
98 perl -S ecopyfile.pl $(EMPTYFILE) $(AKNSSKINREALNAME).mbm && \ |
|
99 perl -S ecopyfile.pl $(EMPTYFILE) $(AKNSSKINREALNAME).mif && \ |
|
100 mifconv $(AKNSSKINREALNAME).mif /F$(AKNSDATAGENDIR)\$(AKNSSKINREALNAME)_MIFList.txt && \ |
|
101 perl -S ecopyfile.pl $(AKNSSKINREALNAME).mbm $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mbm && \ |
|
102 perl -S ecopyfile.pl $(AKNSSKINREALNAME).mif $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mif && \ |
|
103 $(ERASE) $(AKNSSKINREALNAME).mbm && \ |
|
104 $(ERASE) $(AKNSSKINREALNAME).mif |
|
105 |
|
106 FREEZE : do_nothing |
|
107 |
|
108 SAVESPACE : do_nothing |
|
109 |
|
110 RELEASABLES : do_nothing |
|
111 |
|
112 FINAL : |
|
113 cd $(AKNSSRCDIR) && \ |
|
114 perl -S emkdir.pl $(AKNSTARGETDIR) && \ |
|
115 perl -S ecopyfile.pl $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mbm $(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mbm && \ |
|
116 perl -S ecopyfile.pl $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).mif $(AKNSBMPTARGETDIR)\$(AKNSSKINREALNAME).mif && \ |
|
117 perl -S ecopyfile.pl $(AKNSDATAGENDIR)\$(AKNSSKINREALNAME).skn $(AKNSTARGETDIR)\$(AKNSSKINREALNAME).skn |