lowlevellibsandfws/pluginfw/Group/ecom3_buildsis.mk
branchRCL_3
changeset 56 acd3cd4aaceb
equal deleted inserted replaced
54:4332f0f7be53 56:acd3cd4aaceb
       
     1 # Copyright (c) 2008-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 # Params:
       
    15 # SOURCES - list of .pkg files
       
    16 # TARGET - not used
       
    17 # OPTION OUTDIR - mandatory, it is tef_ecomswi
       
    18 # OPTION INDIR - mandatory, path relative to bld.inf containing the 
       
    19 # .pkg files.
       
    20 # OPTION CERTPEM - mandatory
       
    21 # OPTION CERTKEY - mandatory
       
    22 # OPTION STUBLIST - mandatory, identify stubs in $(SOURCES)
       
    23 # OPTION SCRIPTNAME - mandatory, perl script to build SIS. Must be in
       
    24 # same dir as .pkg files.
       
    25 # 
       
    26 #
       
    27 
       
    28 .SUFFIXES: .sis .pkg
       
    29 TMPROOT:=$(subst \,/,$(EPOCROOT))
       
    30 EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
       
    31 
       
    32 
       
    33 include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
       
    34 
       
    35 CERTPEM := $(subst /,$(/),$(CERTPEM))
       
    36 CERTKEY := $(subst /,$(/),$(CERTKEY))
       
    37 OUTDIR := $(subst /,$(/),$(OUTDIR))
       
    38 INDIR := $(subst /,$(/),$(INDIR))
       
    39 BASEDIR := $(EXTENSION_ROOT)/$(INDIR)
       
    40 
       
    41 TARGETS := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt RELEASABLES -sources "$(SOURCES)" -stublist "$(STUBLIST)")
       
    42 EXTRA := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt EXTRATARGET -sources "$(SOURCES)" -stublist "$(STUBLIST)")
       
    43 
       
    44 #
       
    45 # The targets invoked by abld...
       
    46 #
       
    47 FINAL :
       
    48 	$(call createdir,$(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)))
       
    49 	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverstub.sis
       
    50 	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverstub.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/cachedresolverstub.sis)
       
    51 	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverupg2signed.sis
       
    52 	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg2signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg2signed.sis)
       
    53 	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL  cachedresolverupg9signed.sis
       
    54 	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg9signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg9signed.sis)
       
    55 
       
    56 BLD MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
       
    57 	@echo do nothing
       
    58 
       
    59 CLEAN : 
       
    60 	-$(ERASE) $(TARGETS) $(EXTRA)
       
    61 
       
    62 RELEASABLES : 
       
    63 	@echo $(TARGETS) $(EXTRA)
       
    64