|
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-E6CB4891-AFC8-50BB-A2C8-057DB1269DA9" xml:lang="en"><title>Meta |
|
13 files</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
|
14 <p>A meta file is a simple text file associated with each template extension |
|
15 makefile, it contains additional information about the extension such as makefile |
|
16 type, platform and so on. </p> |
|
17 <p>Following is the syntax for meta file: </p> |
|
18 <p> <codeph>makefile</codeph> <varname>gnumake | nmake</varname> </p> |
|
19 <p>[<codeph>platform</codeph> <varname>value</varname>] </p> |
|
20 <p>[<codeph>option</codeph> <varname>option-name_1</varname> <varname>option-value_1</varname>] </p> |
|
21 <p>... </p> |
|
22 <p>[<codeph>option</codeph> <varname>option-name_n</varname> <varname>option-value_n</varname>] </p> |
|
23 <p>The <codeph>makefile</codeph> <varname>gnumake | nmake</varname> is compulsory |
|
24 for all the meta files. It specifies whether the makefile is of type <codeph>gnumake</codeph> or <codeph>nmake</codeph>. </p> |
|
25 <p>The optional <codeph>platform</codeph> <varname>value</varname> specifies |
|
26 the platforms for which the associated template extension makefile can be |
|
27 applied. If not specified, the makefile is invoked for all the platforms. |
|
28 For example, the <codeph>platform</codeph> could be <varname>winscw</varname> and/or <varname>ARMv5</varname>. </p> |
|
29 <p>The optional <codeph>option</codeph> <varname>option-name</varname> <varname>option-value</varname> sets |
|
30 a default value for an option, which can be changed within <codeph>START EXTENSION</codeph>...<codeph>END</codeph> block |
|
31 in the <filepath>bld.inf</filepath> file. For more information, refer to <xref href="GUID-2910AB26-CA7C-50B9-A187-0C8406C1ED1F.dita">prj_extensions</xref>. </p> |
|
32 <example><p>This example will set values to <codeph>platform</codeph> and <codeph>makefile</codeph> variables. </p><codeblock id="GUID-EAEA364D-75F8-5BF0-8E66-A8C3530758E6" xml:space="preserve">#copy_default.meta |
|
33 # |
|
34 |
|
35 makefile gnumake |
|
36 platform win32</codeblock></example> |
|
37 </conbody><related-links> |
|
38 <link href="GUID-201E6D4C-5F0F-5AA2-BC79-91E3C62C8971.dita"><linktext>How to write |
|
39 a meta file</linktext></link> |
|
40 </related-links></concept> |