-
Notifications
You must be signed in to change notification settings - Fork 132
/
Copy pathplugin.xml
496 lines (466 loc) · 20.2 KB
/
plugin.xml
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
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.6"?>
<plugin>
<!--
#######################################################################################
#######################################################################################
## ##
## Extension Points ##
## ##
#######################################################################################
#######################################################################################
-->
<extension point="org.eclipse.cdt.core.LanguageSettingsProvider">
<provider
class="io.sloeber.core.toolchain.ArduinoLanguageProvider"
id="io.sloeber.languageSettingsProvider"
name="%provider.compoler.settings.name"
parameter='${COMMAND} -E -P -v -dD -D__IN_ECLIPSE__ "${INPUTS}"'
prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
</extension>
<!--
#######################################################################################
# Arduino Nature #
#######################################################################################
-->
<extension point="org.eclipse.core.resources.natures"
id="io.sloeber.arduinonature"
name="arduinoNature" >
<runtime>
<run class="io.sloeber.core.natures.ArduinoNature" />
</runtime>
<requires-nature id="org.eclipse.cdt.core.cnature"/>
<requires-nature
id="org.eclipse.cdt.core.ccnature">
</requires-nature>
</extension>
<!--
#######################################################################################
# Launch Configuration #
#######################################################################################
-->
<!-- Arduino Launch Configuration -->
<extension
point="org.eclipse.debug.core.launchConfigurationTypes">
<launchConfigurationType
delegate="io.sloeber.core.api.LaunchConfiguration"
id="io.sloeber.tools.arduinoLaunchConfiguration"
modes="run, debug"
name="%launchConfigurationType.arduio.name"
public="true">
</launchConfigurationType>
</extension>
<!--
#######################################################################################
# Arduino Plugin Commands #
#######################################################################################
-->
<!--
#######################################################################################
#######################################################################################
## ##
## BuildDef ##
## ##
#######################################################################################
#######################################################################################
-->
<extension id="io.sloeber.builddef"
point="io.sloeber.autoBuild.buildDefinitions"
name="%extension.name.0" >
<!--
#######################################################################################
# AVR-GCC Compiler #
#######################################################################################
-->
<builder
autoBuildTarget="all"
buildRunner="io.sloeber.core.toolchain.SloeberBuildRunner"
cleanBuildTarget="clean"
command="${sloeber.make_location}make"
errorParsers="org.eclipse.cdt.core.MakeErrorParser"
id="io.sloeber.gnu.builder"
ignoreErrCmd="-k"
incrementalBuildTarget="all"
name="%toolchain.builder.name"
parallelBuildCmd="-j*"
reservedMacroNames="ROOT,DEPS,OBJS,.*_SRCS,EXECUTABLES,SUBDIRS,LIBS,USER_OBJS,.*_INPUTS,.*_OUTPUTS"
variableFormat="${=}">
</builder>
<projectType
environmentSupplier="io.sloeber.core.toolchain.SloeberProjectVariableSupplier"
id="io.sloeber.core.sketch"
name="%projectType.name"
>
<!-- This config and toolchain 'Release' is the standard "just like Arduino IDE" configuration. -->
<!-- It is also used for the base of the Debug configuration (for use with a JTAG/DragonAVR etc). -->
<!-- TODO: Consider renaming as base. -->
<configuration
cleanCommand="rm -f"
id="io.sloeber.core.configuration.release"
languageSettingsProviders="io.sloeber.languageSettingsProvider"
name="%configuration.name">
<toolChain
archList="all"
environmentSupplier="io.sloeber.core.toolchain.SloeberConfigurationVariableSupplier"
id="io.sloeber.core.toolChain.release"
isAbstract="false"
languageSettingsProviders="io.sloeber.languageSettingsProvider"
name="%toolChain.name"
osList="all"
targetTool="io.sloeber.tool.size">
<targetPlatform
archList="all"
binaryParser="org.eclipse.cdt.core.ELF"
id="io.sloeber.targetplatform"
name="%targetPlatform.name"
osList="all">
</targetPlatform>
<builder
id="io.sloeber.sketch.builder"
name="%toolchain.gnu.builder.name"
superClass="io.sloeber.gnu.builder">
</builder>
<optionCategory
id="io.sloeber.core.optionCategory.includePaths"
name="%optionCategory.include.name">
</optionCategory>
<tool
announcement="%tool.Arduino.CPP.announcement"
command="${recipe.cpp.o.pattern}"
commandLinePattern="recipe.cpp.o.pattern"
errorParsers="org.eclipse.cdt.core.GCCErrorParser"
id="io.sloeber.tool.sketch.compiler.cpp"
name="%tool.Arduino.CPP2O.name"
natureFilter="both">
<optionCategory
id="io.sloeber.core.cpp.optionCategory.includePaths"
name="%optionCategory.include.name">
</optionCategory>
<option
browseType="directory"
category="io.sloeber.core.cpp.optionCategory.includePaths"
command="-I"
id="io.sloeber.compiler.cpp.sketch.option.incpath"
name="%option.include.path.name"
resourceFilter="project"
valueType="includePath">
</option>
<inputType
id="io.sloeber.compiler.cpp.sketch.input"
languageId="org.eclipse.cdt.core.gcc"
name="%inputType.CPP.name"
sourceContentType="org.eclipse.cdt.core.cxxSource">
</inputType>
<outputType
id="io.sloeber.compiler.cpp.sketch.link.output"
name="%outputType.CPP.link.name"
superClass="io.sloeber.compiler.c.link.output">
</outputType>
<outputType
id="io.sloeber.compiler.cpp.ar.output"
name="%outputType.CPP.AR.name"
superClass="io.sloeber.compiler.c.ar.output">
</outputType>
</tool>
<tool
announcement="%tool.Arduino.C.announcement"
command="${recipe.c.o.pattern}"
commandLinePattern="recipe.c.o.pattern"
errorParsers="org.eclipse.cdt.core.GCCErrorParser"
id="io.sloeber.tool.compiler.c"
name="%tool.Arduino.C2O.name"
natureFilter="both">
<optionCategory
id="io.sloeber.core.c.optionCategory.includePaths"
name="%optionCategory.include.name">
</optionCategory>
<option
browseType="directory"
category="io.sloeber.core.c.optionCategory.includePaths"
command="-I"
id="io.sloeber.compiler.c.sketch.option.incpath"
name="%option.include.path.name"
resourceFilter="project"
valueType="includePath">
</option>
<inputType
id="io.sloeber.compiler.c.sketch.input"
languageId="org.eclipse.cdt.core.g++"
name="%inputType.C.name"
sourceContentType="org.eclipse.cdt.core.cSource">
</inputType>
<outputType
buildVariable="LINK_OBJ"
id="io.sloeber.compiler.c.link.output"
name="%outputType.C.link.name"
namePattern="*.o"
nameProvider="io.sloeber.managedBuild.Internal.CompileOutputNameProvider">
</outputType>
<outputType
buildVariable="AR_OBJ"
id="io.sloeber.compiler.c.ar.output"
name="%outputType.C.AR.name"
superClass="io.sloeber.compiler.c.link.output">
</outputType>
</tool>
<tool
announcement="%tool.Arduino.S.announcement"
command="${recipe.S.o.pattern}"
commandLinePattern="recipe.S.o.pattern"
errorParsers="org.eclipse.cdt.core.GCCErrorParser"
id="io.sloeber.tool.sketch.compiler.s"
name="%tool.Arduino.S20.name"
natureFilter="both">
<optionCategory
id="io.sloeber.core.asm.optionCategory.includePaths"
name="%optionCategory.include.name">
</optionCategory>
<option
browseType="directory"
category="io.sloeber.core.asm.optionCategory.includePaths"
command="-I"
id="io.sloeber.compiler.asm.sketch.option.incpath"
name="%option.include.path.name"
resourceFilter="project"
valueType="includePath">
</option>
<inputType
id="io.sloeber.compiler.S.sketch.input"
languageId="org.eclipse.cdt.core.assembly"
name="%inputType.Asembly.name"
sourceContentType="org.eclipse.cdt.core.asmSource">
</inputType>
<outputType
buildVariable="LINK_OBJ"
id="io.sloeber.compiler.S.sketch.link.output"
name="%outputType.S.link.name"
namePattern="%.o"
nameProvider="io.sloeber.managedBuild.Internal.CompileOutputNameProvider"
superClass="io.sloeber.compiler.c.link.output">
</outputType>
<outputType
id="io.sloeber.compiler.S.ar.output"
name="%outputType.S.AR.name"
superClass="io.sloeber.compiler.c.ar.output">
</outputType>
</tool>
<tool
announcement="%tool.Arduino.archiver.announcement"
command="${recipe.ar.pattern}"
commandLinePattern="recipe.ar.pattern"
errorParsers="org.eclipse.cdt.core.GLDErrorParser"
id="io.sloeber.tool.ar"
name="%tool.archiver.name">
<outputType
buildVariable="AR"
id="io.sloeber.tool.archiver.output"
name="%outputType.archiver.name"
outputExtension="ar"
outputName="${archive_file}">
</outputType>
<inputType
id="io.sloeber.tool.archiver.obj.input"
name="%inputType.archiver.obj.name"
outputTypeIDs="io.sloeber.compiler.cpp.ar.output,io.sloeber.compiler.c.ar.output,io.sloeber.compiler.S.ar.output">
</inputType>
</tool>
<tool
announcement="%tool.Arduino.combiner.announcement"
command="${recipe.c.combine.pattern}"
commandLinePattern="recipe.c.combine.pattern"
errorParsers="org.eclipse.cdt.core.GLDErrorParser"
id="io.sloeber.tool.combine"
name="%tool.combiner.name"
natureFilter="both">
<outputType
buildVariable="ELF"
id="io.sloeber.tool.combiner.output"
name="%outputType.elf.name"
outputName="${ProjName}.elf"
outputExtension="elf">
</outputType>
<inputType
id="io.sloeber.tool.combiner.c_ob.input"
name="%inputType.linker.c.name"
outputTypeIDs="io.sloeber.compiler.c.link.output,io.sloeber.compiler.cpp.sketch.link.output,io.sloeber.compiler.S.sketch.link.output">
</inputType>
<inputType
id="io.sloeber.tool.combiner.ar.input"
name="Build Archives"
outputTypeIDs="io.sloeber.tool.archiver.output">
</inputType>
</tool>
<tool
announcement="%tool.obcopy.announcement"
command="${sloeber.objcopy}"
commandLinePattern="sloeber.objcopy"
id="io.sloeber.tool.objcopy.eep"
isAbstract="false"
name="%tool.objcopy.name"
natureFilter="both">
<inputType
id="io.sloeber.tool.objcopy.eep.input"
name="%inputType.objcopy.name"
outputTypeIDs="io.sloeber.tool.combiner.output">
</inputType>
<outputType
buildVariable="HEX"
id="io.sloeber.tool.objcopy.output"
name="%outputType.hexdump.name"
outputName="${ProjName}.hex"
outputExtension="hex">
</outputType>
</tool>
<tool
announcement="%tool.printsize.announcement"
command="${sloeber.size.switch} "
commandLinePattern="${sloeber.size.switch} "
id="io.sloeber.tool.size"
isAbstract="false"
name="%tool.printsize.name">
<inputType
id="io.sloeber.tool.size.input"
outputTypeIDs="io.sloeber.tool.objcopy.output">
</inputType>
<outputType
buildVariable="SIZEDUMMY"
id="io.sloeber.tool.size.output"
name="size info"
outputName="${ProjName}.size"
outputExtension="size">
</outputType>
</tool>
</toolChain>
</configuration>
</projectType>
</extension>
<!--
#######################################################################################
# Content Types #
#######################################################################################
-->
<extension
point="org.eclipse.core.contenttype.contentTypes">
<content-type
base-type="org.eclipse.core.runtime.text"
file-extensions="eep"
id="io.sloeber.contenttype.eeprom"
name="%content-type.hexdump.name">
</content-type>
<content-type id="io.sloeber.contenttype.hex"
base-type="org.eclipse.core.runtime.text"
file-extensions="hex"
name="%content-type.hexdump.flash.name">
</content-type>
</extension>
<!--
#######################################################################################
# ino and pde association
# this makes that the *.ino and *.pde files are treated as cpp files
#
#######################################################################################
-->
<extension point="org.eclipse.core.contenttype.contentTypes">
<!-- declares a content type for ino and pde source files -->
<content-type id="cxxSource" name="%cxxSourceName"
base-type="org.eclipse.cdt.core.cSource"
file-extensions="ino,pde"
priority="high"/>
</extension>
<extension
id="io.sloeber.core.inoToCpp"
name="%builder.ino.to.cpp"
point="org.eclipse.core.resources.builders">
<builder
callOnEmptyDelta="true"
hasNature="false"
isConfigurable="false"
supportsConfigurations="true">
<run
class="io.sloeber.core.builder.inoToCpp">
</run>
</builder>
</extension>
<extension
point="org.eclipse.core.variables.dynamicVariables">
<variable
description="The expanded value of the key (provided in the argument) as defined in Arduino txt files (boaards/platfor/programmers) from the active configuration ."
name="Arduino_environment_variable"
resolver="io.sloeber.core.eclipseIntegrations.CDT_EnvironmentVariableResolver"
supportsArgument="true">
</variable>
</extension>
<extension
id="product"
name="Sloeber"
point="org.eclipse.core.runtime.products">
<product
application="org.eclipse.ui.ide.workbench"
description="Arduino layer for CDT"
name="Sloeber">
<property
name="windowImages"
value="icons/logo_16.png,icons/logo_32.png,icons/logo_48.png,icons/logo_64.png,icons/logo_128.png,icons/logo_256.png">
</property>
<property
name="startupForegroundColor"
value="C8D5EA">
</property>
<property
name="startupProgressRect"
value="97,370,100,4">
</property>
<property
name="startupMessageRect"
value="400,370,441,20">
</property>
<property
name="appName"
value="Sloeber">
</property>
<property
name="aboutImage"
value="icons/eclipse_lg.png">
</property>
<property
name="preferenceCustomization"
value="plugin_customization.ini">
</property>
<property
name="aboutText"
value="Sloeber, the Eclipse IDE for Arduino Developers

Info: https://eclipse.baeyens.it/
Source: https://github.com/sloeber/arduino-eclipse-plugin


Contributors (github users): jantje, wimjongman, rlogiacco, MarceloLimori, brodykenrick, neuweiler, darcade, amorellgarcia

https://github.com/sloeber/arduino-eclipse-plugin/graphs/contributors">
</property>
</product>
</extension>
<extension
id="io.sloeber.product.intro"
point="org.eclipse.ui.intro">
<intro
class="org.eclipse.ui.intro.config.CustomizableIntroPart"
id="io.sloeber.product.intro">
</intro>
<introProductBinding
introId="io.sloeber.product.intro"
productId="io.sloeber.product.sloeber">
</introProductBinding>
</extension>
<extension
point="org.eclipse.ui.intro.config">
<config
content="introContent.xml"
id="io.sloeber.product.introConfigId"
introId="io.sloeber.product.intro">
<presentation
home-page-id="root">
<implementation
kind="html"
os="win32,linux,macosx"
style="content/shared.css">
</implementation>
</presentation>
</config>
</extension>
</plugin>