author | Daniel Jacobs <daniel.jacobs@nokia.com> |
Mon, 17 May 2010 11:07:30 +0100 | |
changeset 554 | e7dd8533063f |
parent 230 | 3d05ccc51d1a |
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 e32 Variant DLL |
|
16 |
# |
|
17 |
# |
|
18 |
||
19 |
ifeq ($(TARGETTYPE),var) |
|
20 |
include $(FLMHOME)/e32abiv2defaults.mk |
|
21 |
||
22 |
# Determine what kind of entrypoint option to set |
|
23 |
LINKER_ENTRYPOINT_LIBDEP:=$(STATIC_RUNTIME_DIR)/evar.lib |
|
22 | 24 |
LINKER_ENTRYPOINT_SETTING:=$(LINKER_ENTRY_OPTION)=_E32Dll $(LINKER_ENTRYPOINT_DECORATION)$(LINKER_SEPARATOR)$(call dblquote,$(STATIC_RUNTIME_DIR)/evar.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 |
|
31 |
STATIC_RUNTIME_LIB:=$(KERNEL_STATIC_RUNTIME_LIB) |
|
32 |
RUNTIME_LIBS_LIST:= |
|
33 |
||
34 |
# Kernel code builds as arm |
|
35 |
ALWAYS_BUILD_AS_ARM:=1 |
|
36 |
||
37 |
# No dedicated library for operator new/delete functions. |
|
38 |
HAS_DEDICATED_OP_NEWDEL_LIB:= |
|
39 |
||
40 |
# Default Postlinker settings |
|
41 |
CANHAVEEXPORTS:=1 |
|
42 |
POSTLINKTARGETTYPE:=VAR |
|
43 |
POSTLINKFILETYPE:=dll |
|
44 |
DOPOSTLINK:=1 |
|
45 |
AUTOEXPORTS:=_Z17VariantInitialisev,1; |
|
46 |
||
47 |
# No exception support for kernel code? |
|
48 |
EXCEPTIONS:=$(NO_EXCEPTIONS) |
|
49 |
||
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
|
50 |
# 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
|
51 |
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
|
52 |
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
|
53 |
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
|
54 |
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
|
55 |
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
|
56 |
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
|
57 |
endif |
3 | 58 |
|
59 |
# We are appending to CDEFS but we don't want this to affect |
|
60 |
# other invocations so we are going to save it on a stack |
|
61 |
# and restore it afterwards |
|
62 |
$(call vsave,CDEFS SYSTEMINCLUDE) |
|
63 |
SYSTEMINCLUDE:=$(SYSTEMINCLUDE) $(EPOCROOT)/epoc32/include/nkern $(EPOCROOT)/epoc32/include/kernel/arm $(EPOCROOT)/epoc32/include/memmodel/epoc $(EPOCROOT)/epoc32/include/kernel $(EPOCROOT)/epoc32/include/nkern/arm |
|
64 |
CDEFS:=$(CDEFS) __DLL__ __KERNEL_MODE__ |
|
65 |
include $(FLMHOME)/e32abiv2.flm |
|
66 |
$(call vrestore) |
|
67 |
||
68 |
else |
|
69 |
$(error $e32abiv2var.flm called with wrong TARGETTYPE (should be 'var' but is '$(TARGETTYPE)')) |
|
70 |
endif |
|
71 |