os/ossrv/lowlevellibsandfws/pluginfw/Group/ecom3_buildsis.mk
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/lowlevellibsandfws/pluginfw/Group/ecom3_buildsis.mk	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +# Copyright (c) 2008-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 +# Params:
    1.18 +# SOURCES - list of .pkg files
    1.19 +# TARGET - not used
    1.20 +# OPTION OUTDIR - mandatory, it is tef_ecomswi
    1.21 +# OPTION INDIR - mandatory, path relative to bld.inf containing the 
    1.22 +# .pkg files.
    1.23 +# OPTION CERTPEM - mandatory
    1.24 +# OPTION CERTKEY - mandatory
    1.25 +# OPTION STUBLIST - mandatory, identify stubs in $(SOURCES)
    1.26 +# OPTION SCRIPTNAME - mandatory, perl script to build SIS. Must be in
    1.27 +# same dir as .pkg files.
    1.28 +# 
    1.29 +#
    1.30 +
    1.31 +.SUFFIXES: .sis .pkg
    1.32 +TMPROOT:=$(subst \,/,$(EPOCROOT))
    1.33 +EPOCROOT:=$(patsubst %/,%,$(TMPROOT))/
    1.34 +
    1.35 +
    1.36 +include $(EPOCROOT)epoc32/tools/shell/$(notdir $(basename $(SHELL))).mk
    1.37 +
    1.38 +CERTPEM := $(subst /,$(/),$(CERTPEM))
    1.39 +CERTKEY := $(subst /,$(/),$(CERTKEY))
    1.40 +OUTDIR := $(subst /,$(/),$(OUTDIR))
    1.41 +INDIR := $(subst /,$(/),$(INDIR))
    1.42 +BASEDIR := $(EXTENSION_ROOT)/$(INDIR)
    1.43 +
    1.44 +TARGETS := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt RELEASABLES -sources "$(SOURCES)" -stublist "$(STUBLIST)")
    1.45 +EXTRA := $(shell perl $(BASEDIR)/$(SCRIPTNAME) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -outdir $(OUTDIR) -maketrgt EXTRATARGET -sources "$(SOURCES)" -stublist "$(STUBLIST)")
    1.46 +
    1.47 +#
    1.48 +# The targets invoked by abld...
    1.49 +#
    1.50 +FINAL :
    1.51 +	$(call createdir,$(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)))
    1.52 +	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverstub.sis
    1.53 +	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverstub.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/cachedresolverstub.sis)
    1.54 +	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL cachedresolverupg2signed.sis
    1.55 +	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg2signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg2signed.sis)
    1.56 +	@perl $(call slash2generic, $(BASEDIR)/$(SCRIPTNAME)) -basedir $(BASEDIR) -platform $(PLATFORM_PATH) -cfg $(CFG_PATH) -certpem $(CERTPEM) -certkey $(CERTKEY) -maketrgt FINAL  cachedresolverupg9signed.sis
    1.57 +	$(CP) $(subst /,$(/),$(BASEDIR)/cachedresolverupg9signed.sis) $(subst /,$(/),$(EPOCROOT)epoc32/data/z/$(OUTDIR)/$(CFG_PATH)/cachedresolverupg9signed.sis)
    1.58 +
    1.59 +BLD MAKMAKE SAVESPACE FREEZE LIB CLEANLIB RESOURCE :
    1.60 +	@echo do nothing
    1.61 +
    1.62 +CLEAN : 
    1.63 +	-$(ERASE) $(TARGETS) $(EXTRA)
    1.64 +
    1.65 +RELEASABLES : 
    1.66 +	@echo $(TARGETS) $(EXTRA)
    1.67 +