source: rtems-eclipse-plug-in/org.rtems.cdt.toolchain/templates/hello/template.xml @ f124b04

Last change on this file since f124b04 was f124b04, checked in by Daron Chabot <daron.chabot@…>, on Nov 24, 2008 at 3:01:03 AM

Clean up of plugin.xml and addition of simpler, "Hello World" template.

Removed shared-lib option from c/c++ linker tools: RTEMS doesn't support shared libs.

Removed -D_REENTRANT flag. I've no idea where that came from: it's not in RTEMS or newlib.

Added more stringent test for empty RTEMS_BSP_DEFINED_SYMBOLS environment variable.
NOTE: none of the defs (provided by Robert) for this variable are necessary.

  • Property mode set to 100644
File size: 3.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<template type="ProjTempl" version="1.0" 
3          supplier="www.rtems.com" revision="1.0" 
4          author="chabotd"
5          copyright=""
6          id="RTEMSHelloWorldProject" 
7          label="%RTEMS.Hello.Template.Label" 
8          description="%RTEMS.Hello.Template.Label.Description"
9          help="help.html">
10
11    <property-group id="basics" label="RTEMS Preferences Overrides" description="Specify per-project RTEMS-preference page overrides." type="PAGES-ONLY" help="help.html">
12        <property id="RTEMSInstallDir"
13            label="RTEMS install directory"
14            description="This is where the user could override Preference settings"
15            type="browse"
16            pattern=".*"
17            default="/opt/rtems"
18            hidden="false"
19            persist="true"/>
20        <property id="RTEMSTargetArch"
21            label="Target Architecture"
22            description="This is where the user could override Preference settings"
23            type="select"
24            pattern=".*"
25            hidden="false"
26            persist="true">
27            <item label="i386" selected="true" name="i386"/>
28            <item label="m68k" selected="false" name="m68k"/>
29            <item label="ppc" selected="false" name="ppc"/>
30            <item label="sparc" selected="false" name="sparc"/>
31        </property>   
32        <property id="RTEMSBSP"
33            label="Target BSP"
34            description="This is where the user could override Preference settings"
35            type="select"
36            pattern=".*"
37            hidden="false"
38            persist="true">
39            <item label="pc386" selected="true" name="pc386"/>
40            <item label="pc586" selected="false" name="pc586"/>
41            <item label="pc686" selected="false" name="pc686"/>
42        </property>   
43        <property id="sourceDir"
44                label="Source"
45                description="Directory for project source files"
46                type="input"
47                default="src"
48                pattern="[a-zA-Z0-9]+"
49                mandatory="false"
50                persist="true"/>
51    </property-group>
52
53    <process type="org.eclipse.cdt.managedbuilder.core.NewManagedProject">
54        <simple name="name" value="$(projectName)" /> 
55        <simple name="artifactExtension" value="exe" /> 
56        <simple name="isCProject" value="true" /> 
57    </process>
58
59    <process type="org.eclipse.cdt.core.CreateSourceFolder">
60        <simple name="projectName" value="$(projectName)"/>
61        <simple name="path" value="$(sourceDir)"/>
62    </process>
63
64    <process type="org.eclipse.cdt.core.AddFiles">
65        <simple name="projectName" value="$(projectName)"/>
66        <complex-array name="files">
67            <element>
68                <simple name="source" value="src/init.c"/>
69                <simple name="target" value="$(sourceDir)/$(projectName).c"/>
70                <simple name="replaceable" value="true"/>
71            </element>
72            <element>
73                <simple name="source" value="src/system.h"/>
74                <simple name="target" value="$(sourceDir)/system.h"/>
75                <simple name="replaceable" value="true"/>
76            </element>
77        </complex-array>
78    </process>
79
80</template>
81
Note: See TracBrowser for help on using the repository browser.