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