author | Richard Taylor <richard.i.taylor@nokia.com> |
Thu, 22 Apr 2010 11:11:09 +0100 | |
changeset 440 | 597059aceea2 |
parent 368 | 113d720d5a6c |
permissions | -rw-r--r-- |
230
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
1 |
# Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 | 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 ECOM plugin |
|
16 |
# |
|
17 |
# |
|
18 |
||
234 | 19 |
ifneq ($(filter plugin plugin3,$(TARGETTYPE)),) |
3 | 20 |
include $(FLMHOME)/e32abiv2defaults.mk |
21 |
||
22 |
# Default Linker settings for this target type |
|
23 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/edll.lib |
|
22 | 24 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/edll.lib$(LINKER_ENTRYPOINT_ADORNMENT)) |
3 | 25 |
|
26 |
ifeq ("$(NEED_ENTRYPOINT_LIBRARY)","True") |
|
27 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRYPOINT_SETTING) $(LINKER_ENTRYPOINT_LIBDEP) |
|
28 |
endif |
|
29 |
||
30 |
LINKER_STUB_LIBRARY:=$(STATIC_RUNTIME_DIR)/edllstub.lib |
|
368
113d720d5a6c
Added test case for EPOCNESTEDEXCEPTIONS.
Stefan Karlsson <stefan.karlsson@nokia.com>
parents:
367
diff
changeset
|
31 |
STATIC_RUNTIME_LIB:=$(USER_STATIC_RUNTIME_LIB) |
3 | 32 |
|
33 |
# Default Postlinker settings |
|
34 |
CANHAVEEXPORTS:=1 |
|
35 |
POSTLINKTARGETTYPE:=PLUGIN |
|
36 |
POSTLINKFILETYPE:=dll |
|
37 |
DOPOSTLINK:=1 |
|
38 |
AUTOEXPORTS:=_Z24ImplementationGroupProxyRi,1; |
|
39 |
CANIGNORENONCALLABLE:=1 |
|
40 |
||
230
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
41 |
# Fixed export TARGETTYPEs should only reference a .def file if an explicit DEFFILE statement is present in the .mmp file |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
42 |
ifneq ($(DEFFILEKEYWORD),) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
43 |
POSTLINKDEFFILE:=$(DEFFILE) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
44 |
SUPPORT_FREEZE:=1 |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
45 |
ifeq ($(NOEXPORTLIBRARY),) |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
46 |
IMPORTLIBRARYREQUIRED:=1 |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
47 |
endif |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
48 |
endif |
3d05ccc51d1a
fix: SF Bug 1511-[Raptor] ARM LDD builds can wrongly make use of implicit .def files
your_name <your_email_address>
parents:
22
diff
changeset
|
49 |
|
3 | 50 |
# We could check the UID rather than forcing it |
51 |
# but there seems to be no point in that. |
|
52 |
UID2:=10009D8D |
|
234 | 53 |
ifeq ($(TARGETTYPE),plugin3) |
54 |
UID2:=10009D93 |
|
55 |
POSTLINKTARGETTYPE:=PLUGIN3 |
|
56 |
endif |
|
3 | 57 |
|
58 |
||
59 |
RESOURCEPATH:=Resource/Plugins |
|
60 |
||
61 |
# Use the general EABI FLM |
|
62 |
# We are appending to CDEFS but we don't want this to affect |
|
63 |
# other invocations so we are going to save it on a stack |
|
64 |
# and restore it afterwards |
|
65 |
$(call vsave,CDEFS) |
|
66 |
CDEFS:=$(CDEFS) __DLL__ |
|
67 |
include $(FLMHOME)/e32abiv2.flm |
|
68 |
$(call vrestore) |
|
69 |
||
70 |
else |
|
234 | 71 |
$(error $e32abiv2plugin.flm called with wrong TARGETTYPE (should be 'plugin' or 'plugin3' but is '$(TARGETTYPE)')) |
3 | 72 |
endif |