os/ossrv/lowlevellibsandfws/apputils/group/bafl_resource_files.mk
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
# All rights reserved.
sl@0
     3
# This component and the accompanying materials are made available
sl@0
     4
# under the terms of "Eclipse Public License v1.0"
sl@0
     5
# which accompanies this distribution, and is available
sl@0
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
#
sl@0
     8
# Initial Contributors:
sl@0
     9
# Nokia Corporation - initial contribution.
sl@0
    10
#
sl@0
    11
# Contributors:
sl@0
    12
#
sl@0
    13
# Description:
sl@0
    14
# Copy test files to test sortbytable functionality.
sl@0
    15
# 
sl@0
    16
#
sl@0
    17
sl@0
    18
TMPROOT:=$(subst \,/,$(EPOCROOT))
sl@0
    19
EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
sl@0
    20
TMPHOME:=$(subst \,/,$(SBS_HOME))
sl@0
    21
GNUCAT:=$(TMPHOME)/win32/cygwin/bin/cat.exe
sl@0
    22
sl@0
    23
include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
sl@0
    24
sl@0
    25
ifeq ($(findstring WINS,$(PLATFORM)),WINS)
sl@0
    26
TARGET_DIRECTORY=$(EPOCROOT)epoc32/release/$(PLATFORM)/$(CFG)/z/system/data
sl@0
    27
else
sl@0
    28
TARGET_DIRECTORY=$(EPOCROOT)epoc32/data/z/system/data
sl@0
    29
endif
sl@0
    30
sl@0
    31
SOURCEDIR=$(EXTENSION_ROOT)/../tsrc
sl@0
    32
sl@0
    33
$(TARGET_DIRECTORY) :
sl@0
    34
	$(call createdir,"$@")
sl@0
    35
sl@0
    36
TARGET_FILES=\
sl@0
    37
	$(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc $(EPOCROOT)epoc32\include\T_COMPRESSED_UNICODE_1.RSG \
sl@0
    38
	$(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc $(EPOCROOT)epoc32\include\T_COMPRESSED_UNICODE_2.RSG \
sl@0
    39
	$(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc \
sl@0
    40
	$(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc \
sl@0
    41
	$(TARGET_DIRECTORY)/t_notrscfile.rsc \
sl@0
    42
	$(TARGET_DIRECTORY)/rscheader.bin \
sl@0
    43
	$(TARGET_DIRECTORY)/newrscformat.rsc \
sl@0
    44
sl@0
    45
$(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc : $(SOURCEDIR)/T_COMPRESSED_UNICODE_1.RPP
sl@0
    46
	@RCOMP.EXE -s$? -o$@ -h$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_1.RSG -u -{0x000eb205,*}
sl@0
    47
$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_1.RSG : $(SOURCEDIR)/T_COMPRESSED_UNICODE_1.RPP
sl@0
    48
	@RCOMP.EXE -s$? -o$(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc -h$@ -u -{0x000eb205,*}
sl@0
    49
sl@0
    50
$(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc : $(SOURCEDIR)/T_COMPRESSED_UNICODE_2.RPP
sl@0
    51
	@RCOMP.EXE -s$? -o$@ -h$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_2.RSG -u
sl@0
    52
$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_2.RSG : $(SOURCEDIR)/T_COMPRESSED_UNICODE_2.RPP
sl@0
    53
	@RCOMP.EXE -s$? -o$(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc -h$@ -u
sl@0
    54
sl@0
    55
$(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc : $(SOURCEDIR)/T_GENERATE_DICTIONARY_COMPRESSED_VERSION_OF_2.PL
sl@0
    56
	@perl -w $(SOURCEDIR)/T_GENERATE_DICTIONARY_COMPRESSED_VERSION_OF_2.PL $(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc
sl@0
    57
sl@0
    58
$(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc : $(SOURCEDIR)/T_CALYPSO_COMPILED_RESOURCE_FILE_1.RSC
sl@0
    59
	$(CP) $(call slash2generic,$(SOURCEDIR)/T_CALYPSO_COMPILED_RESOURCE_FILE_1.RSC $(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc)
sl@0
    60
sl@0
    61
$(TARGET_DIRECTORY)/t_notrscfile.rsc  : $(SOURCEDIR)/T_NotRscFile.RSC
sl@0
    62
	$(CP) $(call slash2generic,$(SOURCEDIR)/T_NotRscFile.RSC $(TARGET_DIRECTORY)/t_notrscfile.rsc)
sl@0
    63
	
sl@0
    64
$(TARGET_DIRECTORY)/rscheader.bin : 
sl@0
    65
	$(CP) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin $(TARGET_DIRECTORY)/rscheader.bin)
sl@0
    66
sl@0
    67
$(TARGET_DIRECTORY)/newrscformat.rsc :  $(SOURCEDIR)/RscHeader.Bin  $(SOURCEDIR)/RLETest.BMP $(TARGET_DIRECTORY)/TRSC.rsc
sl@0
    68
	@BMCONV.EXE  $(SOURCEDIR)/16RAMC.MBM /c16$(SOURCEDIR)/RLETest.BMP
sl@0
    69
#	$(CP) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin) + $(call slash2generic,$(TARGET_DIRECTORY)/TRSC.rsc) + $(call slash2generic,$(SOURCEDIR)/16RAMC.MBM) $(call slash2generic,$(TARGET_DIRECTORY)/newrscformat.rsc)
sl@0
    70
	$(GNUCAT) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin) $(call slash2generic,$(TARGET_DIRECTORY)/TRSC.rsc) $(call slash2generic,$(SOURCEDIR)/16RAMC.MBM) > $(call slash2generic,$(TARGET_DIRECTORY)/newrscformat.rsc)
sl@0
    71
sl@0
    72
COPYFILES :
sl@0
    73
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv1.RSC $(TARGET_DIRECTORY)/trsc_inv1.rsc)
sl@0
    74
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv2.RSC $(TARGET_DIRECTORY)/trsc_inv2.rsc)
sl@0
    75
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv3.RSC $(TARGET_DIRECTORY)/trsc_inv3.rsc)
sl@0
    76
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv4.RSC $(TARGET_DIRECTORY)/trsc_inv4.rsc)
sl@0
    77
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv5.RSC $(TARGET_DIRECTORY)/trsc_inv5.rsc)
sl@0
    78
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv6.RSC $(TARGET_DIRECTORY)/trsc_inv6.rsc)
sl@0
    79
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv7.RSC $(TARGET_DIRECTORY)/trsc_inv7.rsc)
sl@0
    80
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv8.RSC $(TARGET_DIRECTORY)/trsc_inv8.rsc)
sl@0
    81
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv9.RSC $(TARGET_DIRECTORY)/trsc_inv9.rsc)
sl@0
    82
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv10.RSC $(TARGET_DIRECTORY)/trsccalypso_inv10.rsc)
sl@0
    83
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv11.RSC $(TARGET_DIRECTORY)/trsccalypso_inv11.rsc)
sl@0
    84
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv12.RSC $(TARGET_DIRECTORY)/trsccalypso_inv12.rsc)
sl@0
    85
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscComprU_Inv13.RSC $(TARGET_DIRECTORY)/trsccompru_inv13.rsc)
sl@0
    86
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscComprU_Inv14.RSC $(TARGET_DIRECTORY)/trsccompru_inv14.rsc)
sl@0
    87
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscComprU_Inv15.RSC $(TARGET_DIRECTORY)/trsccompru_inv15.rsc)
sl@0
    88
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv16.RSC $(TARGET_DIRECTORY)/trsccalypso_inv16.rsc)
sl@0
    89
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv17.RSC $(TARGET_DIRECTORY)/trsccalypso_inv17.rsc)
sl@0
    90
	$(GNUCAT) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin) $(call slash2generic,$(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc) > $(call slash2generic,$(TARGET_DIRECTORY)/trscromcalypsocomprnewfmt.rsc)
sl@0
    91
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom.spi $(TARGET_DIRECTORY)/spi_ecom.spi)
sl@0
    92
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_EComRsc1.RSC $(TARGET_DIRECTORY)/spi_ecomrsc1.rsc)
sl@0
    93
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_EComRsc2.RSC $(TARGET_DIRECTORY)/spi_ecomrsc2.rsc)
sl@0
    94
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_EComRsc3.RSC $(TARGET_DIRECTORY)/spi_ecomrsc3.rsc)
sl@0
    95
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-1-0.spi $(TARGET_DIRECTORY)/ecom-1-0.spi)
sl@0
    96
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-1-0.s02 $(TARGET_DIRECTORY)/ecom-1-0.s02)
sl@0
    97
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-2-0.spi $(TARGET_DIRECTORY)/ecom-2-0.spi)
sl@0
    98
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-2-0.s02 $(TARGET_DIRECTORY)/ecom-2-0.s02)
sl@0
    99
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom-0-0.spi $(TARGET_DIRECTORY)/spi_ecom-0-0.spi)
sl@0
   100
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom-1-0.spi $(TARGET_DIRECTORY)/spi_ecom-1-0.spi)
sl@0
   101
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/CECom-0-0.spi $(TARGET_DIRECTORY)/cecom-0-0.spi)
sl@0
   102
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/CECom-1-0.spi $(TARGET_DIRECTORY)/cecom-1-0.spi)
sl@0
   103
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom_Case-0-0.spi $(TARGET_DIRECTORY)/spi_ecom_case-0-0.spi)
sl@0
   104
	$(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom_Case-1-0.spi $(TARGET_DIRECTORY)/spi_ecom_case-1-0.spi)
sl@0
   105
sl@0
   106
sl@0
   107
DO_NOTHING :
sl@0
   108
	@echo do nothing
sl@0
   109
sl@0
   110
# the targets below are the public ones
sl@0
   111
sl@0
   112
MAKMAKE : DO_NOTHING
sl@0
   113
sl@0
   114
BLD : DO_NOTHING
sl@0
   115
sl@0
   116
SAVESPACE : BLD
sl@0
   117
sl@0
   118
FREEZE : DO_NOTHING
sl@0
   119
sl@0
   120
LIB : DO_NOTHING
sl@0
   121
sl@0
   122
CLEANLIB : DO_NOTHING
sl@0
   123
sl@0
   124
RESOURCE : $(TARGET_DIRECTORY) $(TARGET_FILES) COPYFILES
sl@0
   125
sl@0
   126
CLEAN : 
sl@0
   127
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_1.rsg)
sl@0
   128
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_2.rsg)
sl@0
   129
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc) 
sl@0
   130
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc) 
sl@0
   131
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_notrscfile.rsc) 
sl@0
   132
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/rscheader.bin) 
sl@0
   133
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/newrscformat.rsc) 
sl@0
   134
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv1.rsc) 
sl@0
   135
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv2.rsc) 
sl@0
   136
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv3.rsc) 
sl@0
   137
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv4.rsc) 
sl@0
   138
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv5.rsc) 
sl@0
   139
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv6.rsc) 
sl@0
   140
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv7.rsc) 
sl@0
   141
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv8.rsc) 
sl@0
   142
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv9.rsc) 
sl@0
   143
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv10.rsc) 
sl@0
   144
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv11.rsc) 
sl@0
   145
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv12.rsc) 
sl@0
   146
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccompru_inv13.rsc) 
sl@0
   147
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccompru_inv14.rsc) 
sl@0
   148
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccompru_inv15.rsc) 
sl@0
   149
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv16.rsc) 
sl@0
   150
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv17.rsc) 
sl@0
   151
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trscromcalypsocomprnewfmt.rsc) 
sl@0
   152
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom.spi) 
sl@0
   153
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecomrsc1.rsc) 
sl@0
   154
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecomrsc2.rsc) 
sl@0
   155
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecomrsc3.rsc) 
sl@0
   156
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-1-0.spi)  
sl@0
   157
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-1-0.s02) 
sl@0
   158
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-2-0.spi) 
sl@0
   159
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-2-0.s02) 
sl@0
   160
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom-0-0.spi) 
sl@0
   161
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom-1-0.spi) 
sl@0
   162
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/cecom-0-0.spi) 
sl@0
   163
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/cecom-1-0.spi)
sl@0
   164
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom_case-0-0.spi) 
sl@0
   165
	-$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom_case-1-0.spi)
sl@0
   166
sl@0
   167
RELEASABLES : 
sl@0
   168
	@echo $(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_1.rsg 
sl@0
   169
	@echo $(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_2.rsg 
sl@0
   170
	@echo $(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc 
sl@0
   171
	@echo $(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc 
sl@0
   172
	@echo $(TARGET_DIRECTORY)/t_notrscfile.rsc 
sl@0
   173
	@echo $(TARGET_DIRECTORY)/rscheader.bin 
sl@0
   174
	@echo $(TARGET_DIRECTORY)/newrscformat.rsc 
sl@0
   175
	@echo $(TARGET_DIRECTORY)/trsc_inv1.rsc 
sl@0
   176
	@echo $(TARGET_DIRECTORY)/trsc_inv2.rsc 
sl@0
   177
	@echo $(TARGET_DIRECTORY)/trsc_inv3.rsc 
sl@0
   178
	@echo $(TARGET_DIRECTORY)/trsc_inv4.rsc 
sl@0
   179
	@echo $(TARGET_DIRECTORY)/trsc_inv5.rsc 
sl@0
   180
	@echo $(TARGET_DIRECTORY)/trsc_inv6.rsc 
sl@0
   181
	@echo $(TARGET_DIRECTORY)/trsc_inv7.rsc 
sl@0
   182
	@echo $(TARGET_DIRECTORY)/trsc_inv8.rsc 
sl@0
   183
	@echo $(TARGET_DIRECTORY)/trsc_inv9.rsc 
sl@0
   184
	@echo $(TARGET_DIRECTORY)/trsccalypso_inv10.rsc 
sl@0
   185
	@echo $(TARGET_DIRECTORY)/trsccalypso_inv11.rsc 
sl@0
   186
	@echo $(TARGET_DIRECTORY)/trsccalypso_inv12.rsc 
sl@0
   187
	@echo $(TARGET_DIRECTORY)/trsccompru_inv13.rsc 
sl@0
   188
	@echo $(TARGET_DIRECTORY)/trsccompru_inv14.rsc 
sl@0
   189
	@echo $(TARGET_DIRECTORY)/trsccompru_inv15.rsc 
sl@0
   190
	@echo $(TARGET_DIRECTORY)/trsccalypso_inv16.rsc 
sl@0
   191
	@echo $(TARGET_DIRECTORY)/trsccalypso_inv17.rsc 
sl@0
   192
	@echo $(TARGET_DIRECTORY)/trscromcalypsocomprnewfmt.rsc 
sl@0
   193
	@echo $(TARGET_DIRECTORY)/spi_ecom.spi 
sl@0
   194
	@echo $(TARGET_DIRECTORY)/spi_ecomrsc1.rsc 
sl@0
   195
	@echo $(TARGET_DIRECTORY)/spi_ecomrsc2.rsc 
sl@0
   196
	@echo $(TARGET_DIRECTORY)/spi_ecomrsc3.rsc 
sl@0
   197
	@echo $(TARGET_DIRECTORY)/ecom-1-0.spi  
sl@0
   198
	@echo $(TARGET_DIRECTORY)/ecom-1-0.s02 
sl@0
   199
	@echo $(TARGET_DIRECTORY)/ecom-2-0.spi 
sl@0
   200
	@echo $(TARGET_DIRECTORY)/ecom-2-0.s02 
sl@0
   201
	@echo $(TARGET_DIRECTORY)/spi_ecom-0-0.spi 
sl@0
   202
	@echo $(TARGET_DIRECTORY)/spi_ecom-1-0.spi 
sl@0
   203
	@echo $(TARGET_DIRECTORY)/cecom-0-0.spi
sl@0
   204
	@echo $(TARGET_DIRECTORY)/cecom-1-0.spi
sl@0
   205
	@echo $(TARGET_DIRECTORY)/spi_ecom_case-0-0.spi 
sl@0
   206
	@echo $(TARGET_DIRECTORY)/spi_ecom_case-1-0.spi 
sl@0
   207
	
sl@0
   208
FINAL : DO_NOTHING