599
|
1 |
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
# All rights reserved.
|
|
3 |
# This component and the accompanying materials are made available
|
|
4 |
# under the terms of "Eclipse Public License v1.0"
|
|
5 |
# which accompanies this distribution, and is available
|
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
#
|
|
8 |
# Initial Contributors:
|
|
9 |
# Nokia Corporation - initial contribution.
|
|
10 |
#
|
|
11 |
# Contributors:
|
|
12 |
#
|
|
13 |
# Description:
|
|
14 |
# This postbuild script is only called when a Test Build is done. It deletes the KDDI/AU versions of the shiftjis and j5 plugin RSC file, so
|
|
15 |
# that only the Docomo versions remain. This removed ambiguity over which one will load during tests - a seperate version of the KDDI/AU
|
|
16 |
# plugins is created for test build, with a unique UID number so they may coexist for test purposes.
|
|
17 |
#
|
|
18 |
#
|
|
19 |
|
|
20 |
TMPROOT:=$(subst \,/,$(EPOCROOT))
|
|
21 |
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
|
|
22 |
|
|
23 |
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
|
|
24 |
|
|
25 |
# Only remove files on emulator build - for hardware, iby file selects correct plugin.
|
|
26 |
ifeq ($(findstring WINS,$(PLATFORM)),WINS)
|
|
27 |
TARGETDIR = $(EPOCROOT)epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/resource/plugins
|
|
28 |
|
|
29 |
TARGET_FILES = \
|
|
30 |
$(TARGETDIR)/shiftjis_kddiau.rsc \
|
|
31 |
$(TARGETDIR)/j5_kddiau.rsc \
|
|
32 |
$(TARGETDIR)/eucjp_packed_2.rsc \
|
|
33 |
$(TARGETDIR)/iso2022jp_2.rsc \
|
|
34 |
$(TARGETDIR)/iso2022jp1_2.rsc \
|
|
35 |
$(TARGETDIR)/j5_kddiau_2.rsc \
|
|
36 |
$(TARGETDIR)/jis_2.rsc\
|
|
37 |
$(TARGETDIR)/shiftjis_kddiau_2.rsc
|
|
38 |
|
|
39 |
TARGET_FILES:=$(subst /,\,$(TARGET_FILES))
|
|
40 |
endif
|
|
41 |
|
|
42 |
DO_NOTHING :
|
|
43 |
@echo do nothing
|
|
44 |
|
|
45 |
#
|
|
46 |
# The targets invoked by bld...
|
|
47 |
#
|
|
48 |
|
|
49 |
ifeq ($(findstring WINS,$(PLATFORM)),WINS)
|
|
50 |
BLD :
|
|
51 |
@echo Below rsc files will be deleted to remove ambiguity in testing:
|
|
52 |
@echo $(TARGET_FILES)
|
|
53 |
-$(ERASE) $(TARGET_FILES)
|
|
54 |
else
|
|
55 |
BLD : DO_NOTHING
|
|
56 |
endif
|
|
57 |
|
|
58 |
RELEASABLES : DO_NOTHING
|
|
59 |
|
|
60 |
MAKMAKE : DO_NOTHING
|
|
61 |
|
|
62 |
CLEAN : DO_NOTHING
|
|
63 |
|
|
64 |
SAVESPACE : DO_NOTHING
|
|
65 |
|
|
66 |
RESOURCE : DO_NOTHING
|
|
67 |
|
|
68 |
FREEZE : DO_NOTHING
|
|
69 |
|
|
70 |
LIB : DO_NOTHING
|
|
71 |
|
|
72 |
CLEANLIB : DO_NOTHING
|
|
73 |
|
|
74 |
FINAL : DO_NOTHING
|