|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. --> |
|
3 <!-- This component and the accompanying materials are made available under the terms of the License |
|
4 "Eclipse Public License v1.0" which accompanies this distribution, |
|
5 and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". --> |
|
6 <!-- Initial Contributors: |
|
7 Nokia Corporation - initial contribution. |
|
8 Contributors: |
|
9 --> |
|
10 <!DOCTYPE concept |
|
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
|
12 <concept id="GUID-12D8C373-5199-5B89-9910-00F769AC164A" xml:lang="en"><title>How |
|
13 to build EXEs</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>An .EXE program typically has a single executable component. Unlike GUI |
|
15 application targets there is no application information file, and in most |
|
16 cases a resource file will not be needed.</p> |
|
17 <p>Under WINS/WINSCW, the C++ source is compiled to object files in the build |
|
18 directory; these are then linked, together with standard libraries, into the |
|
19 release directory. You may run the program directly from the release directory.</p> |
|
20 <p>Under ARM targets, the C++ source is compiled using a native compiler, |
|
21 and then linked into a <filepath>.exe</filepath> in the release directory. |
|
22 You may then transfer the program to the target machine and execute it.</p> |
|
23 <section><title>mmp project specification</title><p>For an EXE |
|
24 target, only a minimum of essential information need be specified:</p><ul> |
|
25 <li id="GUID-A0E2ED12-C5F4-5F6D-BDBB-B3B87B09F502"><p>Specify the <codeph>TARGETTYPE</codeph> line |
|
26 as:</p> <codeblock id="GUID-02CE2D53-6886-5263-812D-BCD24186C3DE" xml:space="preserve">TARGETTYPE exe</codeblock> </li> |
|
27 <li id="GUID-2FFB1967-3C8D-5235-89D0-6D8D5971F54E"><p>Specify the <codeph>UID</codeph> as |
|
28 zero in a <codeph>UID</codeph> line:</p> <codeblock id="GUID-F813D71D-300B-5C3C-80DC-08F136A1F7F3" xml:space="preserve">UID 0</codeblock> <p>EXEs |
|
29 do not strictly speaking need a UID value. However specifying zero suppresses |
|
30 a build tools warning.</p> </li> |
|
31 </ul></section> |
|
32 <example><p>An example of the project file for a console program is given |
|
33 below</p><codeblock id="GUID-05B15418-43DB-5192-9B93-042B08499724" xml:space="preserve">TARGET HelloWorld.exe |
|
34 TARGETTYPE exe |
|
35 UID 0 |
|
36 SOURCEPATH . |
|
37 SOURCE HelloWorld.cpp |
|
38 USERINCLUDE . |
|
39 USERINCLUDE ..\CommonFramework |
|
40 SYSTEMINCLUDE \Epoc32\include |
|
41 LIBRARY euser.lib</codeblock></example> |
|
42 </conbody></concept> |