1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/lowlevellibsandfws/apputils/group/bafl_resource_files.mk Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,208 @@
1.4 +# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +# All rights reserved.
1.6 +# This component and the accompanying materials are made available
1.7 +# under the terms of "Eclipse Public License v1.0"
1.8 +# which accompanies this distribution, and is available
1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +#
1.11 +# Initial Contributors:
1.12 +# Nokia Corporation - initial contribution.
1.13 +#
1.14 +# Contributors:
1.15 +#
1.16 +# Description:
1.17 +# Copy test files to test sortbytable functionality.
1.18 +#
1.19 +#
1.20 +
1.21 +TMPROOT:=$(subst \,/,$(EPOCROOT))
1.22 +EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
1.23 +TMPHOME:=$(subst \,/,$(SBS_HOME))
1.24 +GNUCAT:=$(TMPHOME)/win32/cygwin/bin/cat.exe
1.25 +
1.26 +include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
1.27 +
1.28 +ifeq ($(findstring WINS,$(PLATFORM)),WINS)
1.29 +TARGET_DIRECTORY=$(EPOCROOT)epoc32/release/$(PLATFORM)/$(CFG)/z/system/data
1.30 +else
1.31 +TARGET_DIRECTORY=$(EPOCROOT)epoc32/data/z/system/data
1.32 +endif
1.33 +
1.34 +SOURCEDIR=$(EXTENSION_ROOT)/../tsrc
1.35 +
1.36 +$(TARGET_DIRECTORY) :
1.37 + $(call createdir,"$@")
1.38 +
1.39 +TARGET_FILES=\
1.40 + $(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc $(EPOCROOT)epoc32\include\T_COMPRESSED_UNICODE_1.RSG \
1.41 + $(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc $(EPOCROOT)epoc32\include\T_COMPRESSED_UNICODE_2.RSG \
1.42 + $(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc \
1.43 + $(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc \
1.44 + $(TARGET_DIRECTORY)/t_notrscfile.rsc \
1.45 + $(TARGET_DIRECTORY)/rscheader.bin \
1.46 + $(TARGET_DIRECTORY)/newrscformat.rsc \
1.47 +
1.48 +$(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc : $(SOURCEDIR)/T_COMPRESSED_UNICODE_1.RPP
1.49 + @RCOMP.EXE -s$? -o$@ -h$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_1.RSG -u -{0x000eb205,*}
1.50 +$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_1.RSG : $(SOURCEDIR)/T_COMPRESSED_UNICODE_1.RPP
1.51 + @RCOMP.EXE -s$? -o$(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc -h$@ -u -{0x000eb205,*}
1.52 +
1.53 +$(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc : $(SOURCEDIR)/T_COMPRESSED_UNICODE_2.RPP
1.54 + @RCOMP.EXE -s$? -o$@ -h$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_2.RSG -u
1.55 +$(EPOCROOT)epoc32/include/T_COMPRESSED_UNICODE_2.RSG : $(SOURCEDIR)/T_COMPRESSED_UNICODE_2.RPP
1.56 + @RCOMP.EXE -s$? -o$(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc -h$@ -u
1.57 +
1.58 +$(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc : $(SOURCEDIR)/T_GENERATE_DICTIONARY_COMPRESSED_VERSION_OF_2.PL
1.59 + @perl -w $(SOURCEDIR)/T_GENERATE_DICTIONARY_COMPRESSED_VERSION_OF_2.PL $(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc
1.60 +
1.61 +$(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc : $(SOURCEDIR)/T_CALYPSO_COMPILED_RESOURCE_FILE_1.RSC
1.62 + $(CP) $(call slash2generic,$(SOURCEDIR)/T_CALYPSO_COMPILED_RESOURCE_FILE_1.RSC $(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc)
1.63 +
1.64 +$(TARGET_DIRECTORY)/t_notrscfile.rsc : $(SOURCEDIR)/T_NotRscFile.RSC
1.65 + $(CP) $(call slash2generic,$(SOURCEDIR)/T_NotRscFile.RSC $(TARGET_DIRECTORY)/t_notrscfile.rsc)
1.66 +
1.67 +$(TARGET_DIRECTORY)/rscheader.bin :
1.68 + $(CP) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin $(TARGET_DIRECTORY)/rscheader.bin)
1.69 +
1.70 +$(TARGET_DIRECTORY)/newrscformat.rsc : $(SOURCEDIR)/RscHeader.Bin $(SOURCEDIR)/RLETest.BMP $(TARGET_DIRECTORY)/TRSC.rsc
1.71 + @BMCONV.EXE $(SOURCEDIR)/16RAMC.MBM /c16$(SOURCEDIR)/RLETest.BMP
1.72 +# $(CP) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin) + $(call slash2generic,$(TARGET_DIRECTORY)/TRSC.rsc) + $(call slash2generic,$(SOURCEDIR)/16RAMC.MBM) $(call slash2generic,$(TARGET_DIRECTORY)/newrscformat.rsc)
1.73 + $(GNUCAT) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin) $(call slash2generic,$(TARGET_DIRECTORY)/TRSC.rsc) $(call slash2generic,$(SOURCEDIR)/16RAMC.MBM) > $(call slash2generic,$(TARGET_DIRECTORY)/newrscformat.rsc)
1.74 +
1.75 +COPYFILES :
1.76 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv1.RSC $(TARGET_DIRECTORY)/trsc_inv1.rsc)
1.77 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv2.RSC $(TARGET_DIRECTORY)/trsc_inv2.rsc)
1.78 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv3.RSC $(TARGET_DIRECTORY)/trsc_inv3.rsc)
1.79 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv4.RSC $(TARGET_DIRECTORY)/trsc_inv4.rsc)
1.80 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv5.RSC $(TARGET_DIRECTORY)/trsc_inv5.rsc)
1.81 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv6.RSC $(TARGET_DIRECTORY)/trsc_inv6.rsc)
1.82 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv7.RSC $(TARGET_DIRECTORY)/trsc_inv7.rsc)
1.83 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv8.RSC $(TARGET_DIRECTORY)/trsc_inv8.rsc)
1.84 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRSC_Inv9.RSC $(TARGET_DIRECTORY)/trsc_inv9.rsc)
1.85 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv10.RSC $(TARGET_DIRECTORY)/trsccalypso_inv10.rsc)
1.86 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv11.RSC $(TARGET_DIRECTORY)/trsccalypso_inv11.rsc)
1.87 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv12.RSC $(TARGET_DIRECTORY)/trsccalypso_inv12.rsc)
1.88 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscComprU_Inv13.RSC $(TARGET_DIRECTORY)/trsccompru_inv13.rsc)
1.89 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscComprU_Inv14.RSC $(TARGET_DIRECTORY)/trsccompru_inv14.rsc)
1.90 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscComprU_Inv15.RSC $(TARGET_DIRECTORY)/trsccompru_inv15.rsc)
1.91 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv16.RSC $(TARGET_DIRECTORY)/trsccalypso_inv16.rsc)
1.92 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/TRscCalypso_Inv17.RSC $(TARGET_DIRECTORY)/trsccalypso_inv17.rsc)
1.93 + $(GNUCAT) $(call slash2generic,$(SOURCEDIR)/RscHeader.Bin) $(call slash2generic,$(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc) > $(call slash2generic,$(TARGET_DIRECTORY)/trscromcalypsocomprnewfmt.rsc)
1.94 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom.spi $(TARGET_DIRECTORY)/spi_ecom.spi)
1.95 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_EComRsc1.RSC $(TARGET_DIRECTORY)/spi_ecomrsc1.rsc)
1.96 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_EComRsc2.RSC $(TARGET_DIRECTORY)/spi_ecomrsc2.rsc)
1.97 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_EComRsc3.RSC $(TARGET_DIRECTORY)/spi_ecomrsc3.rsc)
1.98 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-1-0.spi $(TARGET_DIRECTORY)/ecom-1-0.spi)
1.99 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-1-0.s02 $(TARGET_DIRECTORY)/ecom-1-0.s02)
1.100 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-2-0.spi $(TARGET_DIRECTORY)/ecom-2-0.spi)
1.101 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/ECom-2-0.s02 $(TARGET_DIRECTORY)/ecom-2-0.s02)
1.102 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom-0-0.spi $(TARGET_DIRECTORY)/spi_ecom-0-0.spi)
1.103 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom-1-0.spi $(TARGET_DIRECTORY)/spi_ecom-1-0.spi)
1.104 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/CECom-0-0.spi $(TARGET_DIRECTORY)/cecom-0-0.spi)
1.105 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/CECom-1-0.spi $(TARGET_DIRECTORY)/cecom-1-0.spi)
1.106 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom_Case-0-0.spi $(TARGET_DIRECTORY)/spi_ecom_case-0-0.spi)
1.107 + $(CP) -f $(call slash2generic,$(SOURCEDIR)/Spi_ECom_Case-1-0.spi $(TARGET_DIRECTORY)/spi_ecom_case-1-0.spi)
1.108 +
1.109 +
1.110 +DO_NOTHING :
1.111 + @echo do nothing
1.112 +
1.113 +# the targets below are the public ones
1.114 +
1.115 +MAKMAKE : DO_NOTHING
1.116 +
1.117 +BLD : DO_NOTHING
1.118 +
1.119 +SAVESPACE : BLD
1.120 +
1.121 +FREEZE : DO_NOTHING
1.122 +
1.123 +LIB : DO_NOTHING
1.124 +
1.125 +CLEANLIB : DO_NOTHING
1.126 +
1.127 +RESOURCE : $(TARGET_DIRECTORY) $(TARGET_FILES) COPYFILES
1.128 +
1.129 +CLEAN :
1.130 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_1.rsg)
1.131 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_2.rsg)
1.132 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc)
1.133 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc)
1.134 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/t_notrscfile.rsc)
1.135 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/rscheader.bin)
1.136 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/newrscformat.rsc)
1.137 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv1.rsc)
1.138 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv2.rsc)
1.139 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv3.rsc)
1.140 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv4.rsc)
1.141 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv5.rsc)
1.142 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv6.rsc)
1.143 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv7.rsc)
1.144 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv8.rsc)
1.145 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsc_inv9.rsc)
1.146 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv10.rsc)
1.147 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv11.rsc)
1.148 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv12.rsc)
1.149 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccompru_inv13.rsc)
1.150 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccompru_inv14.rsc)
1.151 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccompru_inv15.rsc)
1.152 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv16.rsc)
1.153 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trsccalypso_inv17.rsc)
1.154 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/trscromcalypsocomprnewfmt.rsc)
1.155 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom.spi)
1.156 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecomrsc1.rsc)
1.157 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecomrsc2.rsc)
1.158 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecomrsc3.rsc)
1.159 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-1-0.spi)
1.160 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-1-0.s02)
1.161 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-2-0.spi)
1.162 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/ecom-2-0.s02)
1.163 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom-0-0.spi)
1.164 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom-1-0.spi)
1.165 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/cecom-0-0.spi)
1.166 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/cecom-1-0.spi)
1.167 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom_case-0-0.spi)
1.168 + -$(ERASE) $(call slash2generic,$(TARGET_DIRECTORY)/spi_ecom_case-1-0.spi)
1.169 +
1.170 +RELEASABLES :
1.171 + @echo $(TARGET_DIRECTORY)/t_compressed_unicode_1.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_1.rsg
1.172 + @echo $(TARGET_DIRECTORY)/t_compressed_unicode_2.rsc $(EPOCROOT)epoc32/include/t_compressed_unicode_2.rsg
1.173 + @echo $(TARGET_DIRECTORY)/t_dictionary_compressed_versio_of_2.rsc
1.174 + @echo $(TARGET_DIRECTORY)/t_calypso_test_resource_file_1.rsc
1.175 + @echo $(TARGET_DIRECTORY)/t_notrscfile.rsc
1.176 + @echo $(TARGET_DIRECTORY)/rscheader.bin
1.177 + @echo $(TARGET_DIRECTORY)/newrscformat.rsc
1.178 + @echo $(TARGET_DIRECTORY)/trsc_inv1.rsc
1.179 + @echo $(TARGET_DIRECTORY)/trsc_inv2.rsc
1.180 + @echo $(TARGET_DIRECTORY)/trsc_inv3.rsc
1.181 + @echo $(TARGET_DIRECTORY)/trsc_inv4.rsc
1.182 + @echo $(TARGET_DIRECTORY)/trsc_inv5.rsc
1.183 + @echo $(TARGET_DIRECTORY)/trsc_inv6.rsc
1.184 + @echo $(TARGET_DIRECTORY)/trsc_inv7.rsc
1.185 + @echo $(TARGET_DIRECTORY)/trsc_inv8.rsc
1.186 + @echo $(TARGET_DIRECTORY)/trsc_inv9.rsc
1.187 + @echo $(TARGET_DIRECTORY)/trsccalypso_inv10.rsc
1.188 + @echo $(TARGET_DIRECTORY)/trsccalypso_inv11.rsc
1.189 + @echo $(TARGET_DIRECTORY)/trsccalypso_inv12.rsc
1.190 + @echo $(TARGET_DIRECTORY)/trsccompru_inv13.rsc
1.191 + @echo $(TARGET_DIRECTORY)/trsccompru_inv14.rsc
1.192 + @echo $(TARGET_DIRECTORY)/trsccompru_inv15.rsc
1.193 + @echo $(TARGET_DIRECTORY)/trsccalypso_inv16.rsc
1.194 + @echo $(TARGET_DIRECTORY)/trsccalypso_inv17.rsc
1.195 + @echo $(TARGET_DIRECTORY)/trscromcalypsocomprnewfmt.rsc
1.196 + @echo $(TARGET_DIRECTORY)/spi_ecom.spi
1.197 + @echo $(TARGET_DIRECTORY)/spi_ecomrsc1.rsc
1.198 + @echo $(TARGET_DIRECTORY)/spi_ecomrsc2.rsc
1.199 + @echo $(TARGET_DIRECTORY)/spi_ecomrsc3.rsc
1.200 + @echo $(TARGET_DIRECTORY)/ecom-1-0.spi
1.201 + @echo $(TARGET_DIRECTORY)/ecom-1-0.s02
1.202 + @echo $(TARGET_DIRECTORY)/ecom-2-0.spi
1.203 + @echo $(TARGET_DIRECTORY)/ecom-2-0.s02
1.204 + @echo $(TARGET_DIRECTORY)/spi_ecom-0-0.spi
1.205 + @echo $(TARGET_DIRECTORY)/spi_ecom-1-0.spi
1.206 + @echo $(TARGET_DIRECTORY)/cecom-0-0.spi
1.207 + @echo $(TARGET_DIRECTORY)/cecom-1-0.spi
1.208 + @echo $(TARGET_DIRECTORY)/spi_ecom_case-0-0.spi
1.209 + @echo $(TARGET_DIRECTORY)/spi_ecom_case-1-0.spi
1.210 +
1.211 +FINAL : DO_NOTHING