summaryrefslogtreecommitdiffstats
path: root/org.rtems.cdt.toolchain2/plugin.xml
blob: 610f80d19545139b0309830e4f954f157f3762a4 (plain) (blame)
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
<!--
   Copyright (c) 2008
   Embedded Brains GmbH
   Obere Lagerstr. 30
   D-82178 Puchheim
   Germany
   rtems@embedded-brains.de

   The license and distribution terms for this file may be found in the file
   LICENSE in this distribution or at http://www.rtems.com/license/LICENSE.
-->
<plugin>
   <!-- Scanner Configuration Discovery Profiles -->
   <extension
         id="RtemsSCDProfile"
         name="RTEMS Scanner Configuration Discovery Profile"
         point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
      <scannerInfoCollector
            class="org.eclipse.cdt.make.internal.core.scannerconfig2.PerProjectSICollector"
            scope="project"/>
      <buildOutputProvider>
         <open/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/>
      </buildOutputProvider>
      <scannerInfoProvider providerId="specsFile">
         <run
               arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}"
               class="org.rtems.cdt.build.RunScannerInfoProvider"/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/>
      </scannerInfoProvider>
   </extension>
   <extension
         id="RtemsSCDProfileC"
         name="RTEMS Scanner Configuration Discovery Profile"
         point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
      <scannerInfoCollector
            class="org.eclipse.cdt.make.internal.core.scannerconfig2.PerProjectSICollector"
            scope="project"/>
      <buildOutputProvider>
         <open/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/>
      </buildOutputProvider>
      <scannerInfoProvider providerId="specsFile">
         <run
               arguments="-E -P -v -dD ${plugin_state_location}/specs.c"
               class="org.rtems.cdt.build.RunScannerInfoProvider"/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/>
      </scannerInfoProvider>
   </extension>
   <extension
         id="RtemsSCDProfileCPP"
         name="RTEMS Scanner Configuration Discovery Profile"
         point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
      <scannerInfoCollector
            class="org.eclipse.cdt.make.internal.core.scannerconfig2.PerProjectSICollector"
            scope="project"/>
      <buildOutputProvider>
         <open/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/>
      </buildOutputProvider>
      <scannerInfoProvider providerId="specsFile">
         <run
               arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp"
               class="org.rtems.cdt.build.RunScannerInfoProvider"/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/>
      </scannerInfoProvider>
   </extension>
   <extension
         id="RtemsSCDProfileWin"
         name="RTEMS Scanner Configuration Discovery Profile (Windows)"
         point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
      <scannerInfoCollector
            class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.DefaultGnuWinScannerInfoCollector"
            scope="project"/>
      <buildOutputProvider>
         <open/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/>
      </buildOutputProvider>
      <scannerInfoProvider providerId="specsFile">
         <run
               arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}"
               class="org.rtems.cdt.build.RunScannerInfoProvider"/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/>
      </scannerInfoProvider>
   </extension>
   <extension
         id="RtemsSCDProfileWinC"
         name="RTEMS Scanner Configuration Discovery Profile (Windows)"
         point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
      <scannerInfoCollector
            class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.DefaultGnuWinScannerInfoCollector"
            scope="project"/>
      <buildOutputProvider>
         <open/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/>
      </buildOutputProvider>
      <scannerInfoProvider providerId="specsFile">
         <run
               arguments="-E -P -v -dD ${plugin_state_location}/specs.c"
               class="org.rtems.cdt.build.RunScannerInfoProvider"/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/>
      </scannerInfoProvider>
   </extension>
   <extension
         id="RtemsSCDProfileWinCPP"
         name="RTEMS Scanner Configuration Discovery Profile (Windows)"
         point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
      <scannerInfoCollector
            class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.DefaultGnuWinScannerInfoCollector"
            scope="project"/>
      <buildOutputProvider>
         <open/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.ManagedGCCScannerInfoConsoleParser"/>
      </buildOutputProvider>
      <scannerInfoProvider providerId="specsFile">
         <run
               arguments="-E -P -v -dD ${plugin_state_location}/specs.cpp"
               class="org.rtems.cdt.build.RunScannerInfoProvider"/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/>
      </scannerInfoProvider>
   </extension>

   <!-- Build Definitions -->
   <extension
         id="org.rtems.cdt.build"
         point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">

      <!-- Configuration -->
      <configuration
            id="org.rtems.cdt.config.base"
            name="RTEMS Configuration"
            cleanCommand="rm -rf"
            artifactExtension="exe">
         <enablement type="CONTAINER_ATTRIBUTE"
               attribute="artifactExtension"
               value="a"
               extensionAdjustment="false">
            <checkBuildProperty
                  property="org.eclipse.cdt.build.core.buildArtefactType"
                  value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/>
         </enablement>
      </configuration>

      <!-- Toolchain (Standard) -->
      <toolChain
            id="org.rtems.cdt.toolchain"
            name="RTEMS Toolchain"
            archList="all"
            osList="all"
            targetTool="org.rtems.cdt.linker.c;org.rtems.cdt.linker.cpp;org.rtems.cdt.archiver"
            scannerConfigDiscoveryProfileId="org.rtems.cdt.toolchain2.RtemsSCDProfile">
         <targetPlatform
            id="org.rtems.cdt.target"
            name="RTEMS Target"
            binaryParser="org.eclipse.cdt.core.ELF"
            osList="all"
            archList="all">
         </targetPlatform>
         <builder
               id="org.rtems.cdt.builder"
               superClass="cdt.managedbuild.target.gnu.builder"/>
         <tool
               id="org.rtems.cdt.assembler"
               superClass="cdt.managedbuild.tool.gnu.assembler"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
         </tool>
         <tool
               id="org.rtems.cdt.compiler.c"
               superClass="cdt.managedbuild.tool.gnu.c.compiler"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <inputType
                  id="org.rtems.cdt.compiler.input.c"
                  superClass="cdt.managedbuild.tool.gnu.c.compiler.input"
                  scannerConfigDiscoveryProfileId="org.rtems.cdt.toolchain2.RtemsSCDProfileC"/>
         </tool>
         <tool
               id="org.rtems.cdt.compiler.cpp"
               superClass="cdt.managedbuild.tool.gnu.cpp.compiler"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <inputType
                  id="org.rtems.cdt.compiler.cpp.input"
                  superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"
                  scannerConfigDiscoveryProfileId="org.rtems.cdt.toolchain2.RtemsSCDProfileCPP"/>
         </tool>
         <tool
               id="org.rtems.cdt.linker.c"
               superClass="cdt.managedbuild.tool.gnu.c.linker"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <enablement type="ALL">
               <not>
                  <checkBuildProperty
                     property="org.eclipse.cdt.build.core.buildArtefactType"
                     value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/>
               </not>
            </enablement>
         </tool>
         <tool
               id="org.rtems.cdt.linker.cpp"
               superClass="cdt.managedbuild.tool.gnu.cpp.linker"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <enablement type="ALL">
               <not>
               <checkBuildProperty
                     property="org.eclipse.cdt.build.core.buildArtefactType"
                     value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/>
               </not>
            </enablement>
         </tool>
         <tool
               id="org.rtems.cdt.archiver"
               superClass="cdt.managedbuild.tool.gnu.archiver"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <enablement type="ALL">
               <checkBuildProperty
                     property="org.eclipse.cdt.build.core.buildArtefactType"
                     value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/>
            </enablement>
         </tool>
      </toolChain>

      <!-- Toolchain (Cygwin) -->
      <toolChain
            id="org.rtems.cdt.toolchain.cygwin"
            name="RTEMS Toolchain (Cygwin)"
            archList="all"
            osList="win32"
            targetTool="org.rtems.cdt.linker.c.cygwin;org.rtems.cdt.linker.cpp.cygwin;org.rtems.cdt.archiver.cygwin"
            configurationEnvironmentSupplier="org.eclipse.cdt.managedbuilder.gnu.cygwin.GnuCygwinConfigurationEnvironmentSupplier"
            isToolChainSupported="org.eclipse.cdt.managedbuilder.gnu.cygwin.IsGnuCygwinToolChainSupported"
            scannerConfigDiscoveryProfileId="org.rtems.cdt.toolchain2.RtemsSCDProfile">
         <targetPlatform
            id="org.rtems.cdt.target.cygwin"
            name="RTEMS Target"
            binaryParser="org.eclipse.cdt.core.ELF"
            osList="all"
            archList="all">
         </targetPlatform>
         <builder
               id="org.rtems.cdt.builder.cygwin"
               superClass="cdt.managedbuild.target.gnu.builder"/>
         <tool
               id="org.rtems.cdt.assembler.cygwin"
               superClass="cdt.managedbuild.tool.gnu.assembler"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
         </tool>
         <tool
               id="org.rtems.cdt.compiler.c.cygwin"
               superClass="cdt.managedbuild.tool.gnu.c.compiler.cygwin"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <inputType
                  id="org.rtems.cdt.compiler.input.c.cygwin"
                  superClass="cdt.managedbuild.tool.gnu.c.compiler.input.cygwin"
                  scannerConfigDiscoveryProfileId="org.rtems.cdt.toolchain2.RtemsSCDProfileC"/>
         </tool>
         <tool
               id="org.rtems.cdt.compiler.cpp.cygwin"
               superClass="cdt.managedbuild.tool.gnu.cpp.compiler.cygwin"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <inputType
                  id="org.rtems.cdt.compiler.cpp.input.cygwin"
                  scannerConfigDiscoveryProfileId="org.rtems.cdt.toolchain2.RtemsSCDProfileCPP"
                  superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input.cygwin"/>
         </tool>
         <tool
               id="org.rtems.cdt.linker.c.cygwin"
               superClass="cdt.managedbuild.tool.gnu.c.linker.cygwin"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <enablement type="ALL">
               <not>
                  <checkBuildProperty
                     property="org.eclipse.cdt.build.core.buildArtefactType"
                     value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/>
               </not>
            </enablement>
         </tool>
         <tool
               id="org.rtems.cdt.linker.cpp.cygwin"
               superClass="cdt.managedbuild.tool.gnu.cpp.linker.cygwin"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <enablement type="ALL">
               <not>
               <checkBuildProperty
                     property="org.eclipse.cdt.build.core.buildArtefactType"
                     value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/>
               </not>
            </enablement>
         </tool>
         <tool
               id="org.rtems.cdt.archiver.cygwin"
               superClass="cdt.managedbuild.tool.gnu.archiver"
               commandLineGenerator="org.rtems.cdt.build.CommandLineGenerator">
            <enablement type="ALL">
               <checkBuildProperty
                     property="org.eclipse.cdt.build.core.buildArtefactType"
                     value="org.eclipse.cdt.build.core.buildArtefactType.staticLib"/>
            </enablement>
         </tool>
      </toolChain>

      <!-- Project Type -->
      <projectType
            buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"
            id="org.rtems.cdt.projectType"
            name="RTEMS Executable"
            projectEnvironmentSupplier="org.rtems.cdt.build.EnvironmentSupplier">
         <configuration
               id="org.rtems.cdt.config"
               name="RTEMS Executable Configuration"
               parent="org.rtems.cdt.config.base">
            <toolChain
                  id="org.rtems.cdt.config.toolchain"
                  superClass="org.rtems.cdt.toolchain">
            </toolChain>
         </configuration>
         <configuration
               id="org.rtems.cdt.config.cygwin"
               name="RTEMS Executable Configuration"
               parent="org.rtems.cdt.config.base">
            <toolChain
                  id="org.rtems.cdt.config.toolchain.cygwin"
                  superClass="org.rtems.cdt.toolchain.cygwin">
            </toolChain>
         </configuration>
      </projectType>
   </extension>

   <!-- New Project Wizard -->
   <extension
         point="org.eclipse.cdt.managedbuilder.ui.newWizardPages">
      <wizardPage
            ID="org.rtems.cdt.wizards.BasicSetup"
            operationClass="org.rtems.cdt.wizards.FinishSetup"
            pageClass="org.rtems.cdt.wizards.BasicSetup"/>
   </extension>

   <!-- Preferences -->
   <extension
         point="org.eclipse.ui.preferencePages">
      <page
            category="org.eclipse.cdt.ui.preferences.CPluginPreferencePage"
            class="org.rtems.cdt.preferences.PreferencePage"
            id="org.rtems.cdt.preferences.PreferencePage"
            name="RTEMS">
      </page>
   </extension>
   <extension
         point="org.eclipse.core.runtime.preferences">
      <initializer
            class="org.rtems.cdt.preferences.PreferenceInitializer"/>
   </extension>

   <!-- Properties -->
   <extension
         point="org.eclipse.ui.propertyPages">
      <page
            category="org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"
            class="org.rtems.cdt.properties.PropertyPage"
            id="org.rtems.cdt.properties.PropertyPage"
            name="RTEMS">
         <filter
               name="projectNature"
               value="org.eclipse.cdt.managedbuilder.core.managedBuildNature"/>
         <enabledWhen>
            <or>
               <instanceof value="org.eclipse.cdt.core.model.ICContainer"/>
               <instanceof value="org.eclipse.cdt.core.model.ICProject"/>
               <instanceof value="org.eclipse.cdt.core.model.ITranslationUnit"/>
               <instanceof value="org.eclipse.core.resources.IFile"/>
               <instanceof value="org.eclipse.core.resources.IFolder"/>
               <instanceof value="org.eclipse.core.resources.IProject"/>
            </or>
         </enabledWhen>
      </page>
   </extension>
</plugin>