vpnclient_sis/group/vpnclient_sis.mk
branchRCL_3
changeset 13 9fc0ed567871
parent 0 33413c0669b9
equal deleted inserted replaced
12:a15e6baef510 13:9fc0ed567871
     1 #
     1 #
     2 # Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 # Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 # All rights reserved.
     3 # All rights reserved.
     4 # This component and the accompanying materials are made available
     4 # This component and the accompanying materials are made available
     5 # under the terms of "Eclipse Public License v1.0"
     5 # under the terms of "Eclipse Public License v1.0"
     6 # which accompanies this distribution, and is available
     6 # which accompanies this distribution, and is available
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
    12 # Contributors:
    12 # Contributors:
    13 #
    13 #
    14 # Description:  Creates either localised or nonlocalised mVPN Client SIS files 
    14 # Description:  Creates either localised or nonlocalised mVPN Client SIS files 
    15 #
    15 #
    16 
    16 
    17 # To ensure that EPOCROOT always ends with a forward slash
       
    18 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    19 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    20 
       
    21 VERSION=091014
       
    22 RDDERDIR=../data/RDTest_02.der
       
    23 RDKEYDIR=../data/RDTest_02.key
       
    24 LOCALISATION_FILES=$(EPOCROOT)epoc32/data/Z/resource/vpnecomnotifier.r05
       
    25 S60PLATFORM=v42
       
    26 
       
    27 do_nothing :
    17 do_nothing :
    28 	@rem do_nothing
    18 	@rem do_nothing
    29 
    19 
    30 MAKMAKE : do_nothing
    20 MAKMAKE : do_nothing
    31 
    21 
    32 BLD :
    22 BLD :
    33 
    23 	perl create_vpnclient_sis.pl $(CFG)
    34 #
       
    35 # Localisation files must exist
       
    36 #
       
    37 	@echo --
       
    38 	if exist $(LOCALISATION_FILES) @echo Building localised version
       
    39 	if not exist $(LOCALISATION_FILES) @echo Localisation files are not available! Exiting..
       
    40 	if not exist $(LOCALISATION_FILES) @echo --
       
    41 	if not exist $(LOCALISATION_FILES) exit 1
       
    42 	@echo --
       
    43 
       
    44 #
       
    45 # vpn policy installer
       
    46 #
       
    47 	@echo Processing temp_nokia_vpn_vpnpolins_armv5.pkg
       
    48 	$(EPOCROOT)epoc32\tools\makesis -v temp_nokia_vpn_vpnpolins_armv5.pkg mVPN_vpnpolins_armv5.sis
       
    49 	@echo Signing created mVPN_vpnpolins_armv5.sis
       
    50 	$(EPOCROOT)epoc32\tools\signsis mVPN_vpnpolins_armv5.sis mVPN_vpnpolins_armv5.sis $(RDDERDIR) $(RDKEYDIR)
       
    51 	
    24 	
    52 #
    25 CLEAN : 
    53 # If localisation files exist create localised SIS files.
    26 	if exist mVPN_RnD*.sis erase mVPN_RnD*.sis
    54 #
       
    55 # UREL 
       
    56 	@echo Processing temp_nokia_vpn_client_localised_armv5_urel.pkg
       
    57 	$(EPOCROOT)epoc32\tools\makesis -v temp_nokia_vpn_client_localised_armv5_urel.pkg mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis
       
    58 	@echo Signing created mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis
       
    59 	$(EPOCROOT)epoc32\tools\signsis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis $(RDDERDIR) $(RDKEYDIR)	
       
    60 # UDEB	
       
    61 	@echo Processing temp_nokia_vpn_client_localised_armv5_udeb.pkg
       
    62 	$(EPOCROOT)epoc32\tools\makesis -v temp_nokia_vpn_client_localised_armv5_udeb.pkg mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis
       
    63 	@echo Signing created mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis
       
    64 	$(EPOCROOT)epoc32\tools\signsis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis $(RDDERDIR) $(RDKEYDIR)
       
    65 
       
    66 		    
       
    67 # remove policy installer
       
    68 	@echo Remove unnecessary temporary sis files
       
    69 	if exist mVPN_vpnpolins_armv5.sis erase mVPN_vpnpolins_armv5.sis
       
    70 	if exist temp_* erase temp_*
    27 	if exist temp_* erase temp_*
    71 	
    28 	
    72 CLEAN : 
       
    73 	if exist mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis erase mVPN_RnD_$(S60PLATFORM)_$(VERSION)_urel.sis
       
    74 	if exist mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis erase mVPN_RnD_$(S60PLATFORM)_$(VERSION)_udeb.sis
       
    75 	if exist mVPN_vpnpolins_armv5.sis erase mVPN_vpnpolins_armv5.sis
       
    76 	if exist temp_* erase temp_*
       
    77 	if exist *.BACKUP erase *.BACKUP
       
    78 	
       
    79 
       
    80 LIB : do_nothing
    29 LIB : do_nothing
    81 
    30 
    82 CLEANLIB : do_nothing
    31 CLEANLIB : do_nothing
    83 
    32 
    84 RESOURCE : do_nothing		
    33 RESOURCE : do_nothing