|
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 the License "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 # Remove Symbian Push Content Handler DLL and registry resource files. |
|
18 # These push content handlers are replaced by the content handlers delivered |
|
19 # in the Push MTM. |
|
20 # |
|
21 |
|
22 LANGUAGE=sc |
|
23 |
|
24 # |
|
25 # Files to be removed: ECOM DLLs and registry files. |
|
26 # |
|
27 |
|
28 # The old-named push content handler DLL left by PushMtm or Symbian: |
|
29 TARGETDLL1=pushcontenthandler.dll |
|
30 # ECOM resource left by Symbian |
|
31 TARGETRESOURCE1=pushcontenthandler.r$(LANGUAGE) |
|
32 # SI & SL content handlers left by Symbian |
|
33 TARGETDLL2=sislcontenthandlers.dll |
|
34 # ECOM resource left by Symbian (for SI & SL content handlers) |
|
35 TARGETRESOURCE2=sislcontenthandlers.r$(LANGUAGE) |
|
36 # Just in case: remove the ECOM registry - the system will create a new |
|
37 ECOMREGISTRY=$(EPOCROOT)epoc32\$(PLATFORM)\c\system\data\plugins\ecom.rom.dat |
|
38 # Remove Symbian push mtm |
|
39 TARGETMTMDLL=wappushmtmclientserver.dll |
|
40 |
|
41 # |
|
42 # Target directories |
|
43 # |
|
44 |
|
45 ifeq (wins,$(findstring wins, $(PLATFORM))) |
|
46 TARGETDIRRESOURCE=$(EPOCROOT)epoc32\release\$(PLATFORM)\$(CFG)\z\resource\plugins |
|
47 else |
|
48 endif |
|
49 TARGETDIRDLL=$(EPOCROOT)epoc32\release\$(PLATFORM)\$(CFG) |
|
50 GENERICTARGETDIRRESOURCE=$(EPOCROOT)epoc32\data\z\resource\plugins |
|
51 TARGETMTMDIRDLL=$(EPOCROOT)epoc32\release\$(PLATFORM)\$(CFG) |
|
52 |
|
53 # |
|
54 # Remove the files |
|
55 # |
|
56 |
|
57 do_tidy: |
|
58 if exist "$(TARGETDIRDLL)\$(TARGETDLL1)" del "$(TARGETDIRDLL)\$(TARGETDLL1)" |
|
59 ifeq (wins,$(findstring wins, $(PLATFORM))) |
|
60 if exist "$(TARGETDIRRESOURCE)\$(TARGETRESOURCE1)" \ |
|
61 del "$(TARGETDIRRESOURCE)\$(TARGETRESOURCE1)" |
|
62 endif |
|
63 if exist "$(GENERICTARGETDIRRESOURCE)\$(TARGETRESOURCE1)" \ |
|
64 del "$(GENERICTARGETDIRRESOURCE)\$(TARGETRESOURCE1)" |
|
65 if exist "$(TARGETDIRDLL)\$(TARGETDLL2)" del "$(TARGETDIRDLL)\$(TARGETDLL2)" |
|
66 ifeq (wins,$(findstring wins, $(PLATFORM))) |
|
67 if exist "$(TARGETDIRRESOURCE)\$(TARGETRESOURCE2)" \ |
|
68 del "$(TARGETDIRRESOURCE)\$(TARGETRESOURCE2)" |
|
69 endif |
|
70 if exist "$(GENERICTARGETDIRRESOURCE)\$(TARGETRESOURCE2)" \ |
|
71 del "$(GENERICTARGETDIRRESOURCE)\$(TARGETRESOURCE2)" |
|
72 ifeq (wins,$(findstring wins, $(PLATFORM))) |
|
73 if exist "$(ECOMREGISTRY)" del "$(ECOMREGISTRY)" |
|
74 endif |
|
75 if exist "$(TARGETMTMDIRDLL)\$(TARGETMTMDLL)" del "$(TARGETMTMDIRDLL)\$(TARGETMTMDLL)" |
|
76 |
|
77 do_nothing: |
|
78 rem do nothing |
|
79 |
|
80 # |
|
81 # The targets invoked by abld |
|
82 # |
|
83 |
|
84 MAKMAKE : do_tidy |
|
85 |
|
86 RESOURCE : do_nothing |
|
87 |
|
88 SAVESPACE : do_nothing |
|
89 |
|
90 BLD : do_nothing |
|
91 |
|
92 FREEZE : do_nothing |
|
93 |
|
94 LIB : do_nothing |
|
95 |
|
96 CLEANLIB : do_nothing |
|
97 |
|
98 FINAL : do_nothing |
|
99 |
|
100 CLEAN : do_tidy |
|
101 |
|
102 RELEASABLES : do_nothing |
|
103 |