3
|
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 the License "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 |
#
|
|
15 |
|
|
16 |
# FLM to build StubSis libraries.
|
|
17 |
|
|
18 |
## Outputs - externally relevant targets that this FLM generates
|
|
19 |
|
|
20 |
TARGETDIR:=$(EPOCROOT)/epoc32/data/z/system/install
|
|
21 |
|
|
22 |
ifeq ($(PLATFORM),WINSCW)
|
|
23 |
TARGETDIR:=$(EPOCROOT)/epoc32/release/$(PLATFORM_PATH)/$(CFG_PATH)/z/system/install
|
|
24 |
endif
|
|
25 |
|
|
26 |
$(call makepath,$(TARGETDIR))
|
|
27 |
|
|
28 |
# This section is in a macro oherwise startrule could get wrong values
|
|
29 |
define SisFileCreation
|
|
30 |
$(SISFILE): $(EXTENSION_ROOT)/$(SRCDIR)/$(SISNAME).pkg
|
|
31 |
$(call startrule,stubsis) \
|
|
32 |
$(EPOCROOT)/epoc32/tools/makesis$(DOTEXE) -s $$? $$@ \
|
|
33 |
$(call endrule,stubsis)
|
|
34 |
endef
|
|
35 |
|
|
36 |
# Build stub SIS file
|
|
37 |
SISFILE:= $(TARGETDIR)/$(SISNAME).sis
|
|
38 |
# Here a variable named "done_<sanitised $SISFILE>" gets created
|
|
39 |
GUARD:=done_$(call sanitise,$(SISFILE))
|
|
40 |
# If variable "done_..." not set, set it to 1, so that
|
|
41 |
# UREL and UDEB do not execute makesis twice on the same target
|
|
42 |
ifeq ($($(GUARD)),)
|
|
43 |
$(GUARD):=1
|
|
44 |
ALL:: $(SISFILE)
|
|
45 |
$(eval $(call SisFileCreation))
|
|
46 |
$(eval $(call whatmacro,$(SISFILE)))
|
|
47 |
$(eval $(call GenerateStandardCleanTarget,$(SISFILE),$(TARGETDIR)))
|
|
48 |
endif
|
|
49 |
|
|
50 |
|