author | timothy.murphy@nokia.com |
Tue, 02 Mar 2010 23:44:10 +0000 | |
branch | fix |
changeset 300 | e87b08dc4b44 |
parent 81 | 7653ed978a00 |
child 367 | 28419e56ee8a |
permissions | -rw-r--r-- |
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 |
# ARMv5 EXE/DLL ABIv2 Function Like Makefile (FLM) |
|
15 |
# Build an e32 DLL (Dynamic Link Library) |
|
16 |
# |
|
17 |
# |
|
18 |
||
81
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
80
diff
changeset
|
19 |
ifeq ($(TARGETTYPE),dll) |
3 | 20 |
include $(FLMHOME)/e32abiv2defaults.mk |
21 |
||
22 |
# What we need to build a DLL |
|
23 |
ifeq ($(NOEXPORTLIBRARY),) |
|
24 |
IMPORTLIBRARYREQUIRED:=1 |
|
25 |
endif |
|
26 |
POSTLINKDEFFILE:=$(DEFFILE) |
|
27 |
SUPPORT_FREEZE:=1 |
|
28 |
||
29 |
# Default Linker settings for this target type |
|
30 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edll.lib |
|
22 | 31 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edll.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 32 |
|
33 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
34 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
35 |
endif |
|
36 |
||
37 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib |
|
38 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
|
39 |
||
40 |
||
41 |
# Default Postlinker settings |
|
42 |
CANHAVEEXPORTS:=1 |
|
43 |
POSTLINKTARGETTYPE:=DLL |
|
44 |
POSTLINKFILETYPE:=dll |
|
45 |
DOPOSTLINK:=1 |
|
46 |
CANIGNORENONCALLABLE:=1 |
|
47 |
||
48 |
# Use the general EABI FLM |
|
49 |
# We are appending to CDEFS but we don't want this to affect |
|
50 |
# other invocations so we are going to save it on a stack |
|
51 |
# and restore it afterwards |
|
52 |
$(call vsave,CDEFS) |
|
53 |
CDEFS:=$(CDEFS) __DLL__ |
|
54 |
include $(FLMHOME)/e32abiv2.flm |
|
55 |
$(call vrestore) |
|
56 |
||
57 |
else |
|
81
7653ed978a00
Review rework 1: Enabling winscw builds of PDLLs
Iain Williamson <iain.williamson@nokia.com>
parents:
80
diff
changeset
|
58 |
$(error e32abiv2dll.flm called with wrong TARGETTYPE (should be 'dll' but is '$(TARGETTYPE)')) |
3 | 59 |
endif |
60 |