sbsv2/raptor/lib/flm/tools/buildstubsis.flm
author srilekhas <srilekhas@symbian.org>
Wed, 18 Aug 2010 11:18:38 +0100
changeset 627 cb3264f4c6e6
parent 590 360bd6b35136
permissions -rw-r--r--
Merge : re-applies missing part of fix for Bug 2901,Add export for s60ibymacros.pm

# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of the License "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description:
#

# FLM to build StubSis libraries.

## Outputs - externally relevant targets that this FLM generates

TARGETDIR:=$(EPOCROOT)/epoc32/data/z/system/install

ifeq ($(PLATFORM),WINSCW)
	TARGETDIR:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/system/install
endif

$(call makepath,$(TARGETDIR))

# This section is in a macro oherwise startrule could get wrong values
define SisFileCreation
$(SISFILE): $(EXTENSION_ROOT)/$(SRCDIR)/$(SISNAME).pkg
	$(call startrule,stubsis) \
	$(EPOCROOT)/epoc32/tools/makesis$(DOTEXE) -s $$? $$@  \
	$(call endrule,stubsis)
endef

# Build stub SIS file
SISFILE:= $(TARGETDIR)/$(SISNAME).sis
# Here a variable named "done_<sanitised $SISFILE>" gets created
GUARD:=done_$(call sanitise,$(SISFILE))
# If variable "done_..." not set, set it to 1, so that
# UREL and UDEB do not execute makesis twice on the same target 
ifeq ($($(GUARD)),)
$(GUARD):=1
ALL:: $(SISFILE)
$(eval $(call SisFileCreation))
$(eval $(call whatmacro,$(SISFILE)))
$(eval $(call GenerateStandardCleanTarget,$(SISFILE),$(TARGETDIR)))
endif