summaryrefslogtreecommitdiffstats
path: root/plugins/org.yocto.sdk.ide/templates/projecttemplates/HelloWorldCAutotoolsProject/template.xml
blob: ca154cafe4518dd07b5608f4b7d821b45bd79cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="ISO-8859-1"?>
<template type="ProjTempl" version="1.0" supplier="Eclipse.org" revision="1.0" author="Bala Torati (Symbian)"
		copyright="Copyright (c) 2007,2009 Symbian Software Limited and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available athttp://www.eclipse.org/legal/epl-v10.html"
		id="YoctoHelloWorldCAutotoolsProject" label="%HelloWorld.CAnsitemplate.label" description="%HelloWorld.CAnsitemplate.description"
		help="help.html">

	<property-group id="basics" label="%HelloWorld.basics.label" description="%HelloWorld.basics.description" type="PAGES-ONLY" help="help.html">
		<property id="author"
			label="%HelloWorld.author.label"
			description="%HelloWorld.author.description"
			type="input"
			pattern=".+"
			default=""
			hidden="false"
			mandatory="true"
			persist="true"/>
		<property id="copyright"
			label="%HelloWorld.copyright.label"
			description="%HelloWorld.copyright.description"
			type="input"
			pattern=".+"
			default="%HelloWorld.copyright.default"
			hidden="false"
			mandatory="true"
			persist="true"/>
		<property id="message"
			label="%HelloWorld.message.label"
			description="%HelloWorld.message.description"
			type="input"
			pattern=".+"
			default="%HelloWorld.message.default"
			hidden="false"
			mandatory="true"
			persist="true"/>
		<property id="sourceDir"
			label="%HelloWorld.sourceDir.label"
			description="%HelloWorld.sourceDir.description"
			type="input"
			default="%HelloWorld.sourceDir.default"
			pattern="[a-zA-Z0-9]+"
			mandatory="true"
			persist="true"/>
		<property id="license" label="License" description="License" type="select" default="BSD" mandatory="false" persist="true">
			<item label="BSD License"  name="BSD"/>
			<item label="MIT License"  name="MIT"/>
			<item label="GNU General Public License v2.0"  name="GPLv2"/>
			<item label="GNU General Public License v2.0_or_later"  name="GPLv2_or_later"/>
			<item label="GNU General Public License v3.0"  name="GPLv3"/>
			<item label="Other"  name="Other"/>
		</property>
	</property-group>

	<process type="org.yocto.sdk.ide.NewYoctoProject">
		<simple name="name" value="$(projectName)" />
		<simple name="artifactExtension" value="exe" />
		<simple name="isCProject" value="true" />
		<simple name="isEmptyProject" value="false" />
		<simple name="isAutotoolsProject" value="true" />
		<simple name="isCMakeProject" value="false" />
	</process>

	<process type="org.eclipse.cdt.core.CreateSourceFolder">
		<simple name="projectName" value="$(projectName)"/>
		<simple name="path" value="$(sourceDir)"/>
	</process>

	<process type="org.eclipse.cdt.core.AddFiles">
		<simple name="projectName" value="$(projectName)"/>
		<complex-array name="files">
			<element>
				<simple name="source" value="../Licenses/AUTHORS"/>
				<simple name="target" value="AUTHORS"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="../Licenses/COPYING_$(license)"/>
				<simple name="target" value="COPYING"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="../Licenses/Header_$(license)"/>
				<simple name="target" value="$(sourceDir)/$(projectName).c"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/autogen.sh"/>
				<simple name="target" value="autogen.sh"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/ChangeLog"/>
				<simple name="target" value="ChangeLog"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/configure.ac.top"/>
				<simple name="target" value="configure.ac"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/INSTALL"/>
				<simple name="target" value="INSTALL"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/Makefile.am.src"/>
				<simple name="target" value="$(sourceDir)/Makefile.am"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/Makefile.am.top"/>
				<simple name="target" value="Makefile.am"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/NEWS"/>
				<simple name="target" value="NEWS"/>
				<simple name="replaceable" value="true"/>
			</element>
			<element>
				<simple name="source" value="src/README"/>
				<simple name="target" value="README"/>
				<simple name="replaceable" value="true"/>
			</element>
		</complex-array>
	</process>

	<process type="org.eclipse.cdt.core.AppendCreate">
		<simple name="projectName" value="$(projectName)"/>
		<complex-array name="files">
			<element>
				<simple name="source" value="src/Basename.c"/>
				<simple name="target" value="$(sourceDir)/$(projectName).c"/>
				<simple name="replaceable" value="true"/>
			</element>
		</complex-array>
	</process>

	<process type="org.yocto.sdk.ide.NewYoctoAutotoolsProjectPostProcess">
		<simple name="projectName" value="$(projectName)" />
	</process>

</template>