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
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Managed Build System Extensibility Document</title>
<link rel="stylesheet"
href="http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/cdt-home/cdt.css?cvsroot=Tools_Project"
type="text/css">
<link rel="stylesheet" href="cdt.css" type="text/css">
<style>
<!--
h3
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
page-break-after:avoid;
font-size:13.0pt;
font-family:Arial}
-->
</style>
<!--[if !mso]>
<style>h2
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:0in;
page-break-after:avoid;
font-size:14.0pt;
font-family:Arial;
font-style:italic}
table.MsoTableGrid
{border:1.0pt solid windowtext;
font-size:10.0pt;
font-family:"Times New Roman";
}
li.MsoNormal
{mso-style-parent:"";
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
margin-left:0in; margin-right:0in; margin-top:0in}
h4
{margin-top:12.0pt;
margin-right:0in;
margin-bottom:3.0pt;
margin-left:.6in;
text-indent:-.6in;
page-break-after:avoid;
tab-stops:list .6in;
font-size:12.0pt;
font-family:"Times New Roman";
}
table.MsoNormalTable
{mso-style-parent:"";
font-size:10.0pt;
font-family:"Times New Roman";
}
</style>
<![endif]-->
</head>
<body>
<!-- Document Header -->
<table border="0" cellpadding="2" width="100%">
<tbody>
<tr>
<td align="left" width="72%"><font class="indextop">What's New in CDT
Build System 4.0</font><br>
<font class="indexsub">This document outlines the new features presented
in the new
CDT build system in CDT 4.0</font></td>
<td width="28%"><img src="http://dev.eclipse.org/images/Idea.jpg"
alt="" height="86" width="120"></td>
</tr>
</tbody>
</table>
<table border="1">
<tr>
<td width="50%" rowspan="2">Authors</td>
</tr>
<tr>
<td width="50%"><a href="mailto:mikhail.sennikovsky@intel.com">Mikhail
Sennikovsky</a></td>
</tr>
<tr>
<td width="50%" rowspan="2">Revision Date</td>
</tr>
<tr>
<td width="50%">06/21/07 - Version 4.0</td>
</tr>
<tr>
<td width="50%" rowspan="2">Change History</td>
</tr>
<tr>
<td width="50%">4.0 - Document Creation</td>
</tr>
</table>
<br>
<!-- End of Document Header --><!-- Table of Contents -->
<div class="section">Table of Contents</div>
<div class="indent">
<p style="margin-top: 0; margin-bottom: 0"><a href="#_TocSectionIntro">1 </a>
<A href="#_TocSectionIntro">Scope of the document</A></div>
<div class="indent">
<p style="margin-top: 0; margin-bottom: 0"><a href="#_TocSectionUIModel">2
New features</a></p>
<div class="indent">
<p style="margin-top: 0; margin-bottom: 0"><a href="#_TocSectionUIModel_1">2.1 Standard and
Managed Build system incorporation</a></p>
<p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_1_1">2.1.1 Build Definitions Model Schema</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_2">2.2 New New Project Wizard</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_3">2.3 Multi-configuration support for Makefile projects.</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_4">2.4 Tool-chain support for Makefile Projects</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_5">2.5 Per-folder settings</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_6">2.6 Internal Builder</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_7">2.7 Customized Configuration Builds</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_8">2.8 Make target build for Managed Build projects</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_9">2.9 Tool-chain modification</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_10">2.10 Build Properties</a><p style="margin-top: 0; margin-bottom: 0">
<a href="#_TocSectionUIModel_11">2.11 Model schema changes</a></div>
</div>
<p> </p>
<p class="section"><a name="_TocSectionIntro">1 Scope of the document</a></p>
<p>The document highlights the new features that were introduced in
the New CDT Build System 4.0 from the ISV point of view. The document mostly
focuses on the API details rather than on UI ones.</p>
<p>The document should be useful for ISVs willing to migrate or integrate their
tool-chains to the CDT 4.0 and should serve as as a valuable addition to the the
<a href="../../migration_guides/4.0/migration_guide_40.html">Migration Guide
document</a>, although despite of the
<a href="../../migration_guides/4.0/migration_guide_40.html">Migration Guide</a>
it mostly focuses on highlighting feature details rather than on the migration
problems. Please also refer to the
<a href="../../migration_guides/4.0/migration_guide_40.html">Migration Guide
document</a> for additional detail on migration to the 4.0</p>
<p> </p>
<p class="section"><a name="_TocSectionUIModel">2 New features</a></p>
<p class="MsoNormal" style="margin-top:6.0pt">The CDT 4.0 introduces a lot of
Build System functionality updates. The list of the new features is given below:</p>
<ol>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_1">Standard and
Managed Build system incorporation</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_2">New New Project Wizard</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_3">Multi-configuration support for Makefile projects.</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_4">Tool-chain
support for Makefile Projects</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_5">Per-folder
settings</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_6">Internal
Builder</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_7">Customized
Configuration Builds</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_8">Make target
build for Managed Build projects</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_9">Tool-chain
modification</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_10">Build
Properties</a></p></li>
<li>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
<a href="#_TocSectionUIModel_11">Model schema changes</a></p></li>
</ol>
<p class="subsection"><a name="_TocSectionUIModel_1">2.1 Standard and Managed
Build System incorporation</a></p>
<p>In CDT 4.0 Standard and Managed Build Systems are incorporated into one CDT
Build System. This allows all Standard Make features to be used for the Managed
Build Projects and vice a versa and also provides one common API and UI
interface for the build settings.</p>
<p>The CDT Build System is created based upon the Managed Build System
functionality (org.eclipse.cdt.managedbuilder.core and
org.eclipse.cdt.managedbuilder.ui plug-ins). So all the API that were used for
the Managed Build Projects in the CDT 3.x becomes valid for the Makefile
Projects in the 4.0, i.e</p>
<p style="margin-top: 0; margin-bottom: 0">The <b>
org.eclipse.cdt.managedbuilder.core.buildDefinitions</b> extension point serves
as an entry-point for the tool integration into the Build System.</p>
<p style="margin-top: 0; margin-bottom: 0">The <b>
org.eclipse.cdt.managedbuilder.core.ManagedBuildManager</b> class serves as an
entry-point for accessing/manipulating the Build Settings information.</p>
<p>From the API point of view there is no principal difference between
the Makefile and Managed Build Projects. From the Build System perspective the
difference between the "Makefile" and the "Managed" modes is that in case of the
Managed build the makefile generation is performed (or the Internal Builder is
used), while for the Makefile Build no makefile generation is done, so it is
expected that the makefile is supplied by the user. Switching between the
Managed and the Makefile modes is actually switching the Makefile generation
either on or off.</p>
<p>A toolChain, tool, builder definitions now have have the "supportsManagedBuild"
property to specify whether or not the managed build is supported for the given
object. </p>
<p class="subsection"><a name="_TocSectionUIModel_1_1">2.1.1 Build Definitions
Model schema</a></p>
<p class="MsoNormal" style="margin-top:6.0pt">The figure below shows a UML model
of the schema elements. It is simplified by leaving out the fact that the
configuration, toolChain, tool, targetPlatform, and builder definition elements
can be defined at the top level in a manifest file.</p>
<p class="MsoNormal" style="margin-top:6.0pt"><img border="0" src="whats_1.gif"></p>
<p> </p>
<p class="subsection"><a name="_TocSectionUIModel_2">2.2 New New Project Wizard</a></p>
<p>The CDT 4.0 presents a new New Project Wizard. This section primarily
focusing and describing the ways a tool-integrator can influence on how his/her tool-chains and project types
are presented in the wizard on the first wizard page. Please refer to the "New
Project Wizard" user description for more detail on the New Project Wizard UI.</p>
<p>The first wizard page presents the wizard allows user to select a project
type and tool-chain(s) to be used with the project type.</p>
<p> </p>
<p><img border="0" src="../../migration_guides/4.0/migrat1.gif"></p>
<p><b>Presenting project-types and tool-chains in the New Project Wizard</b></p>
<p>A tool-integrator has two options of presenting his project-types in the
wizard.</p>
<ol>
<li>Define a new custom Project Type entry.</li>
<li>Use the general project type entries mechanism.</li>
</ol>
<p><b><font color="#FF0000">NOTE:</font></b> The new New Project Wizard now
operates with tool-chains allowing to select the tool-chain(s) to be used on
project creation. Thus it is
required that all toolChain/tool/builder build definitions representing
different tool-chains/tools/builders must have different names as well as toolChain/tool/builder build definitions representing one and the same
tool-chain/tool/builder must have identical names.</p>
<p class="MsoNormal" style="margin-top:0; margin-bottom:0"><b>
Example:</b> to illustrate the above requirement here is how this is handled
in the gnu tool-chain definitions:</p>
<p class="MsoNormal" style="margin-top:0; margin-bottom:0">
The gnu plug-in contains the gcc linker tool on Linux is defined as</p>
<p class="MsoNormal" style="margin-top:0; margin-bottom:0">
<tool<br> natureFilter="cnature"<br> name="%ToolName.linker.gnu.c"<br> outputFlag="-o"<br> command="gcc"<br> id="cdt.managedbuild.tool.gnu.c.linker"</p>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
...</p>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
</p>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
At the same time the gnu tool-chain definitions refers to the gcc linker by
defining a new tool as a super-class of the "cdt.managedbuild.tool.gnu.c.linker"
tool</p>
<p class="MsoNormal" style="margin-top:6.0pt"> <tool<br> id="cdt.managedbuild.tool.gnu.c.linker.base"<br> superClass="cdt.managedbuild.tool.gnu.c.linker"></p>
<p class="MsoNormal" style="margin-top:6.0pt">...</p>
<p class="MsoNormal" style="margin-top:6.0pt">Both tool definitions listed
above are actually treated as two different tools by the Build System, while
both of them refer to one and the same "gcc" executable. To make the
build system aware that both tool definitions refer to one and the same tool/executable
it is required that both tool definitions specify one and the same name. In
the above sample the tool of id="cdt.managedbuild.tool.gnu.c.linker.base"
does not specify any name thus making the name to be inherited from the
super-class tool, so both tools have the same name.</p>
<p class="MsoNormal" style="margin-top:6.0pt">On the other hand the cygwin
gcc linker is defined as </p>
<p class="MsoNormal" style="margin-top:6.0pt"> <tool<br>id="cdt.managedbuild.tool.gnu.c.linker.cygwin"<br>name="%ToolName.linker.cygwin.gnu.c"<br>superClass="cdt.managedbuild.tool.gnu.c.linker"><br>...</p>
<p class="MsoNormal" style="margin-top:6.0pt">although the tool definitions
is defined as a super-class of the linux gcc linker, it refers to the
different tool(executable) than the Linux linker definition. The cygwin
linker definition specifies the name="%ToolName.linker.cygwin.gnu.c" that
differs from the one defined by the Linux gcc linker.</p>
<p><b>Defining new Project Type entries</b></p>
<p>In case a tool-integrator is willing his/her project type to be displayed as
separate entries with custom names, his project-type definition must specify a
"name" property for the project-type, e.g.</p>
<p><img border="0" src="whats_3.gif"></p>
<p>When the project type entry is selected in the wizard the "Toolchain:"
pane will display the list of tool-chains defined/associated with the project type</p>
<p><b>Using general project type entries</b></p>
<p>The "general project types" mechanism allows grouping multiple project
types/tool-chains under one project-type entry thus ensuring the compactness of
the project-type information and ensuring a common user experience across
different tool-chains and integrations. When the general project type entry is selected the
"ToolChains:" pane will list all tool-chains contributed from different project
types allowing user to select the tool-chain to be used with the given
project-type.</p>
<p><b>What are the general project type entries?</b></p>
<p>The general project type entries mechanism is made based upon the new Build
Properties mechanism introduces in the new CDT Build System. Each general project type
entry is a value of the "buildArtefactType" property which represents the build
artifact type. The New Project wizard searches for the tool-chains supporting
each of the defined build artifact types and displays them in the "ToolChains:"
pane for each of the build artifact type.</p>
<p>CDT pre-defines the following values of the build artifact type property:</p>
<p>"org.eclipse.cdt.build.core.buildArtefactType.exe" - to represent executable</p>
<p>"org.eclipse.cdt.build.core.buildArtefactType.staticLib" - to represent
static library</p>
<p>"org.eclipse.cdt.build.core.buildArtefactType.sharedLib" - to represent
shared library</p>
<p>ISVs can define their own custom build artifact values by contributing to the
org.eclipse.cdt.managedbuilder.core.buildProperties extension point.</p>
<p>See the "Build Properties" section for more detail on the Build Properties
mechanism.</p>
<p><b>Contributing to the general project type entries</b></p>
<p>The minimal steps needed to specify that the general project type entry should be used, a project-type
definition should specify the "buildArtefact" attribute and assign it to one of
the values of the buildArtefactType build property, e.g.</p>
<p> <projectType <br>
buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"<br>
id="cdt.managedbuild.target.gnu.exe"></p>
<p> ...</p>
<p><img border="0" src="whats_2.gif"></p>
<p> </p>
<p class="subsection"><a name="_TocSectionUIModel_3">2.3 Multi-configuration support for makefile
projects</a></p>
<p>The new CDT Build System supports multiple configuration settings. This is
applicable for the Managed and Makefile projects now. As with the Managed
projects the org.eclipse.cdt.managedbuilder.core.IConfiguration interface serves
as a holder of the configuration settings.</p>
<p> </p>
<p class="subsection"><a name="_TocSectionUIModel_4">2.4 Tool-chain support for makefile projects</a></p>
<p>The new CDT Build System provider the notion of the tool-chain/tool/builder
definitions. The tool-chain are used for the Makefile projects as
holders/profiles containing/grouping different settings applicable for the given
tool-chain thus allowing the project seyttings to be automatically configured
based upon the tool-chain being used. This includes adjusting error parser,
binary parser settings, scanner discovery profile settings, etc.</p>
<p class="subsection"><a name="_TocSectionUIModel_5">2.5 Per-folder settings</a></p>
<p>It is now possible to specify custom settings on the per-folder level.
It is as well possible to exclude folders from build. A new interface folderInfo
schema element is presented. See the buildDefinitions model above for more
detail.</p>
<p class="subsection"><a name="_TocSectionUIModel_6">2.6 Internal Builder</a></p>
<p style="margin-top: 0; margin-bottom: 0">It is now possible to use the Internal Builder in the tool-chain definitions.
The Internal Builder is treated as a regular builder by the Build System. To
associate the Internal Builder with the tool-chain the tool-chain should define
the builder specifying the Internal Builder as its super-class via a builder#superClass
attribute. The Internal Builder id is "org.eclipse.cdt.build.core.internal.builder".
E.g.</p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy"><builder</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
id=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"cdt.managedbuild.tool.gnu.builder.mingw.base"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-family: Courier New"><font size="2" color="#008000">
</font><span style="font-size: 10.0pt; color: navy"> ...</span></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black"> </span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
superClass=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.internal.builder"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">>
</span><span style="font-size: 10.0pt; font-family: Courier New; color: black">
<- setting the Internal Builder id as a super-class ID specifies that the
Internal Builder will be used</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
</builder></span></p>
<p style="margin-top: 0; margin-bottom: 0">
...</p>
<p class="subsection"><a name="_TocSectionUIModel_7">2.7 Customized configuration builds</a></p>
<p style="margin-top: 0; margin-bottom: 0">It is now possible to initiate the
project build that will use customized settings that differ from those of the
currently active configuration.</p>
<p style="margin-top: 0; margin-bottom: 0">The following modes are supported:</p>
<ol>
<li>
<p style="margin-top: 0; margin-bottom: 0">Building any number of project
build configurations with one build request</p></li>
<li>
<p style="margin-top: 0; margin-bottom: 0">Building any number of
configurations with builder settings customized</p></li>
</ol>
<p style="margin-top: 0; margin-bottom: 0">This functionality can be used
programmatically via the
org.eclipse.cdt.managedbuilder.core.ManagedBuildManager.buildConfigurations(...)
methods.</p>
<p style="margin-top: 0; margin-bottom: 0">It is also accessible in UI via the
"Build Configurations" -> "Build" project context menu.</p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0">NOTE: For Managed builds (makefiles
are generated automatically) this functionality works only in case the buildfile
generator implements the
org.eclipse.cdt.managedbuilder.makegen.IManagedBuilderMakefileGenerator2. This
interface extends the old IManagedBuilderMakefileGenerator by defining a new
initialize() method which accepts IConfiguration and IBuilder rather than
IManagedBuildInfo thus removing an assumption that only active configuration can
be used for building.</p>
<p style="margin-top: 0; margin-bottom: 0">The default GnuMakefileGenerator
supplied with the CDT now implements this interface, so in case the builder is
using this default implementation, no changes are needed.</p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p class="subsection"><a name="_TocSectionUIModel_8">2.8 Make Target Build for Managed Build
Projects</a></p>
<p style="margin-top: 0; margin-bottom: 0">As a result of combining the features
of old Managed and Standard Build systems, the make target build is now
available for Managed Projects also.</p>
<p style="margin-top: 0; margin-bottom: 0">Internally it is actually
treated as a special case of the Custom configuration build (see the "Custom
configuration builds" section).</p>
<p class="subsection"><a name="_TocSectionUIModel_9">2.9 Tool-chain modification</a></p>
<p style="margin-top: 0; margin-bottom: 0">The CDT Build System now allows
changing tool-chains used in the configurations for the already created
projects.</p>
<p style="margin-top: 0; margin-bottom: 0">The following modifications are
supported</p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<table border="1" width="725" height="45">
<tr>
<td height="12" width="352" align="center"><b>Modification type</b></td>
<td height="12" width="357" align="center"><b>Possible levels of
modifications</b></td>
</tr>
<tr>
<td height="11" width="352">Changing/substituting the entire tool-chain</td>
<td height="11" width="357">
<ol>
<li>Project-wide</li>
<li>Per-folder</li>
</ol>
</td>
</tr>
<tr>
<td height="11" width="352">Adding/removing tools to the tool-chain
currently used</td>
<td height="11" width="357">
<ol>
<li>
<p style="margin-top: 0; margin-bottom: 0">Project-wide</li>
<li>
<p style="margin-top: 0; margin-bottom: 0">Per-folder</li>
<li>
<p style="margin-top: 0; margin-bottom: 0">Per-file</li>
</ol>
</td>
</tr>
<tr>
<td height="11" width="352">Changing builder </td>
<td height="11" width="357">
<ol>
<li>Project-wide</li>
</ol>
</td>
</tr>
</table>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0">To make the tool-chain modification
mechanism work properly a tool-integrator is responsible for providing an
information that would allow to preserve/adjust the necessary settings while
conversion. There are several mechanisms that could be used for these purposes.</p>
<ol>
<li>
<p style="margin-top: 0; margin-bottom: 0">Specifying a tool-chain/tool
converter</p></li>
<li>
<p style="margin-top: 0; margin-bottom: 0">Specifying build properties
supported and enablement expressions for automatic settings adjustment. (See
the "Build Properties mechanism" section for detail on the Build Properties
mechanism)</p></li>
</ol>
<p style="margin-top: 0; margin-bottom: 0">When the tool-chain modification is
performed the Build System checks whether there mechanism is performed in the
following </p>
<ol>
<li>
<p style="margin-top: 0; margin-bottom: 0">In case there is an appropriate
converter defined that could be used for conversion, the converter is used
while modification</p></li>
<li>
<p style="margin-top: 0; margin-bottom: 0">Otherwise the Build properties
mechanism is used. In this case settings adjustment is performed based upon
adjustment expressions defined for the tool-chain/tools and the set of build
properties associated with the configuration. (See the "Build Properties
mechanism" section for detail on the Build Properties mechanism)</p></li>
</ol>
<p><font color="#FF0000"><b>NOTE: </b></font> In order to function properly
the tool-chain modification functionality requires that all toolChain/tool/builder build definitions representing
different tool-chains/tools/builders must have different names as well as toolChain/tool/builder build definitions representing one and the same
tool-chain/tool/builder must have identical names.</p>
<p class="MsoNormal" style="margin-top:0; margin-bottom:0"><b>
Example:</b> to illustrate the above requirement here is how this is handled
in the gnu tool-chain definitions:</p>
<p class="MsoNormal" style="margin-top:0; margin-bottom:0">
The gnu plug-in contains the gcc linker tool on Linux is defined as</p>
<p class="MsoNormal" style="margin-top:0; margin-bottom:0">
<tool<br> natureFilter="cnature"<br> name="%ToolName.linker.gnu.c"<br> outputFlag="-o"<br> command="gcc"<br> id="cdt.managedbuild.tool.gnu.c.linker"</p>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
...</p>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
</p>
<p class="MsoNormal" style="margin-top:0pt; margin-bottom:0">
At the same time the gnu tool-chain definitions refers to the gcc linker by
defining a new tool as a super-class of the "cdt.managedbuild.tool.gnu.c.linker"
tool</p>
<p class="MsoNormal" style="margin-top:6.0pt"> <tool<br> id="cdt.managedbuild.tool.gnu.c.linker.base"<br> superClass="cdt.managedbuild.tool.gnu.c.linker"></p>
<p class="MsoNormal" style="margin-top:6.0pt">...</p>
<p class="MsoNormal" style="margin-top:6.0pt">Both tool definitions listed
above are actually treated as two different tools by the Build System, while
both of them refer to one and the same "gcc" executable. To make the
build system aware that both tool definitions refer to one and the same tool/executable
it is required that both tool definitions specify one and the same name. In
the above sample the tool of id="cdt.managedbuild.tool.gnu.c.linker.base"
does not specify any name thus making the name to be inherited from the
super-class tool, so both tools have the same name.</p>
<p class="MsoNormal" style="margin-top:6.0pt">On the other hand the cygwin
gcc linker is defined as </p>
<p class="MsoNormal" style="margin-top:6.0pt"> <tool<br>id="cdt.managedbuild.tool.gnu.c.linker.cygwin"<br>name="%ToolName.linker.cygwin.gnu.c"<br>superClass="cdt.managedbuild.tool.gnu.c.linker"><br>...</p>
<p class="MsoNormal" style="margin-top:6.0pt">although the tool definitions
is defined as a super-class of the linux gcc linker, it refers to the
different tool(executable) than the Linux linker definition. The cygwin
linker definition specifies the name="%ToolName.linker.cygwin.gnu.c" that
differs from the one defined by the Linux gcc linker.</p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p class="subsection"><a name="_TocSectionUIModel_10">2.10 Build Properties mechanism</a></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><span lang="EN-US">
The Build Properties mechanism allows defining a set of properties along with
the possible property values for each property.</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">It is possible to
associate some set of properties with the configuration/project type.</p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">The tool-chains and
tools in their turn are allowed to specify the set of supported properties and
their supported values for those properties.</p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">Given these
capabilities the Build Properties mechanism is used to facilitate the following
functionality:</p>
<ol>
<li>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">The New Project
Wizard is now now creating the set of "general" project type entries based
upon the available values for the "org.eclipse.cdt.build.core.buildArtefactType"
build property and allows associating tool-chains with those project type
entries given the information on the build artefact type values supported by
the tool-chains and defined for the project types.</li>
<li>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">With the
tool-chain modification functionality <span lang="EN-US">tool-chains, tools
and builders can use the build properties mechanism to adjust their settings
(e.g. option values for tools, etc. ) using enablement expressions
mechanism. This allows easy tool-chain/tool/builder switching without the
necessity to implement a converter. Having this mechanism it is possible to
define tools whose default option values will depend on the set build
properties associated with the configuration. Thus it is possible to have
one tool-chain definition whose values will be automatically adjusted
depending on whether the tool-chain is being used to create executable or
library, etc. or depending on whether the tool-chain is used in the
"release" or "debug" build, etc.</span></li>
<li>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">It is now
possible to change the build artifact type of the already created project by
changing the value of the buildArtefactType property in case the tool-chain
supports that.</li>
</ol>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><b>Defining new
Build Properties and their values</b></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">Build Properties
are defined with the org.eclipse.cdt.managedbuilder.core.buildProperties
extension point. Please refer to the extension point description for the
detailed info on extension point schema.</p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><span lang="EN-US">
The Build Property definition consists of the property ID, a human-readable
property name and the set of values this property supports.</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">The property value
definition in its turn consist of the value id and <span lang="EN-US">a
human-readable value name.</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<extension</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
id=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"baseProperties"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
name=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"Base
Build Properties Definition"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
point=</span><span style="font-size:10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.managedbuilder.core.buildProperties"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"><propertyType</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
id=</span><span style="font-size:10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
name=</span><span style="font-size:10.0pt;font-family:"Courier New";color:green">"%BuildProperty.type.name.buildType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"><propertyType</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
id=</span><span style="font-size:10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildArtefactType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
name=</span><span style="font-size:10.0pt;font-family:"Courier New";color:green">"%BuildProperty.type.name.buildArtefactType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"><propertyValue</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">property=</span><span style="font-size:
10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">id=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildType.debug"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">name=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"%BuildProperty.value.name.debug"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"><propertyValue</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">property=</span><span style="font-size:
10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">id=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildType.release"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">name=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"%BuildProperty.value.name.release"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"><propertyValue</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">property=</span><span style="font-size:
10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildArtefactType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">id=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildArtefactType.exe"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">name=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"%BuildProperty.type.name.executable"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"><propertyValue</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">property=</span><span style="font-size:
10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildArtefactType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">id=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildArtefactType.staticLib"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">name=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"%BuildProperty.type.name.staticLibrary"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black"> </span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"><propertyValue</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">property=</span><span style="font-size:
10.0pt;font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildArtefactType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">id=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"org.eclipse.cdt.build.core.buildArtefactType.sharedLib"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy">name=</span><span style="font-size:10.0pt;
font-family:"Courier New";color:green">"%BuildProperty.type.name.sharedLibrary"</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New""> </span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";
color:black"> </span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
</extension></span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><span lang="EN-US">
The values are defined separately from the property, so it is possible for the
property values set to be customized and extended by an ISV.</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><span lang="EN-US">
</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><span lang="EN-US">
The Build System will pre-define some common general build properties listed in
the table below and the set of values for each of those properties, but it will
be possible for the tool-integrators to define their own properties as well as
to add some new custom values to the already defined properties.</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><span lang="EN-US">
<br>
Build System-predefined properties</span></p>
<table class="MsoNormalTable" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: medium none; margin-left: 5.4pt" id="table18">
<tr style="height: 13.5pt">
<td width="120" valign="top" style="width: 1.25in; height: 13.5pt; border: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" align="center" style="text-align: center; margin-top: 0; margin-bottom: 0">
<b><span lang="EN-US">Property id</span></b></td>
<td width="324" valign="top" style="width: 243.0pt; height: 13.5pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" align="center" style="text-align: center; margin-top: 0; margin-bottom: 0">
<b><span lang="EN-US">Description</span></b></td>
<td width="168" valign="top" style="width: 1.75in; height: 13.5pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: 1.0pt solid windowtext; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" align="center" style="text-align: center; margin-top: 0; margin-bottom: 0">
<b><span lang="EN-US">Pre-defined Values</span></b></td>
</tr>
<tr style="height: 8.25pt">
<td width="120" valign="top" style="width: 1.25in; height: 8.25pt; border-left: 1.0pt solid windowtext; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New; color: green">
org.eclipse.cdt.build.core.buildArtefactType</span></td>
<td width="324" valign="top" style="width: 243.0pt; height: 8.25pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US">Represents the type of the build artifact built by
this project-type, configuration</span></td>
<td width="168" valign="top" style="width: 1.75in; height: 8.25pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New; color: green">
org.eclipse.cdt.build.core.buildArtefactType.exe</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
(Executable)</p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New; color: green">
org.eclipse.cdt.build.core.buildArtefactType.sharedLib</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US">(Shared Library)</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New; color: green">
org.eclipse.cdt.build.core.buildArtefactType.staticLib</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US">Static Library</span></td>
</tr>
<tr style="height: 11.25pt">
<td width="120" valign="top" style="width: 1.25in; height: 11.25pt; border-left: 1.0pt solid windowtext; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New; color: green">
org.eclipse.cdt.build.core.buildType</span></td>
<td width="324" valign="top" style="width: 243.0pt; height: 11.25pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US">Represents the build type for this configuration</span></td>
<td width="168" valign="top" style="width: 1.75in; height: 11.25pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New; color: green">
org.eclipse.cdt.build.core.buildType.debug</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US">(Debug)</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 10.0pt; font-family: Courier New; color: green">
org.eclipse.cdt.build.core.buildType.release</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US">(Release)</span></td>
</tr>
<tr style="height: 9.75pt">
<td width="120" valign="top" style="width: 1.25in; height: 9.75pt; border-left: 1.0pt solid windowtext; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US"> </span></td>
<td width="324" valign="top" style="width: 243.0pt; height: 9.75pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US"> </span></td>
<td width="168" valign="top" style="width: 1.75in; height: 9.75pt; border-left: medium none; border-right: 1.0pt solid windowtext; border-top: medium none; border-bottom: 1.0pt solid windowtext; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0in; padding-bottom: 0in">
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span lang="EN-US"> </span></td>
</tr>
</table>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><span lang="EN-US">
</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"><b>Automatic tool
settings adjustment with Build Properties</b></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">Tool-chain ant tool
definitions can specify enablement expressions to make their default settings be
automatically adjusted depending on the value of Build Properties, other
options, Strings, etc. </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">Below is the
snippet of the gcc compiler tool definition that specifies dynamic option value
adjustment depending on the "buildType" property value.</p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy"><option</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
name=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"%Option.Posix.DebugLevel"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
...</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
valueType=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"enumerated"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
...</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<enablement</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
type=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"CONTAINER_ATTRIBUTE"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
<- specifying that enablement is applicable for the option attribute</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
attribute=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"value"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
<- attribute name the enablement is applicable to</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
value=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"gnu.c.debugging.level.none"</span><span style="font-size: 10.0pt; font-family: Courier New; color: black">
<- the value that is to be assigned to the attribute in case enablement
expression is true</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
extensionAdjustment=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"false"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">></span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
<- specifying that enablement is applicable for non-extension (project) elements</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black"> </span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<checkBuildProperty</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
<- evaluates the build property value. treated as true if the property value
equals to the one defined in the value attribute</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
property=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType"</span><span style="font-size: 10.0pt; font-family: Courier New; color: black">
<- property id of the property to be checked</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
value=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType.release"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">/></span><span style="font-size: 10.0pt; font-family: Courier New; color: black">
<- expected property value id </span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
</enablement> </span>
<span style="font-size: 10.0pt; font-family: Courier New; color: black"><- in
case the buildType property value is "release" debugging level is set to "none"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy"><enablement</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
type=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"CONTAINER_ATTRIBUTE"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
attribute=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"value"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
value=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"gnu.c.debugging.level.max"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
extensionAdjustment=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"false"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<checkBuildProperty</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
property=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
value=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType.debug"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"></enablement> </span>
<span style="font-size: 10.0pt; font-family: Courier New; color: black"><- in
case the buildType property value is "debug" debugging level is set to "max"</span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";
color:black"> </span><span style="font-size:10.0pt;
font-family:"Courier New";color:navy"></option></span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">For more
information on using enablement expressions please refer to the description of
the org.eclipse.cdt.managedbuilder.core.buildDefinitions extension-point.</p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0"><b>Specifying the set of supported
build properties</b></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0">The tool-chain modification and New
Project Wizard mechanisms need to know the set of build properties each
tool/tool-chain support for filtering incompatible tools/tool-chains.</p>
<ol>
<li>
<p style="margin-top: 0; margin-bottom: 0">Specifying the set of supported
build properties for tools.</p>
<p style="margin-top: 0; margin-bottom: 0">There are several options of how
the tool can specify the build properties supported</p>
<ul>
<li>
<p style="margin-top: 0; margin-bottom: 0">A tool can specify a "supportedProperties"
element listing all properties and property values supported, e.g.</p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy"><supportedProperties></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<property</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
id=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<value</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
id=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType.debug"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<value</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
id=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType.release"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">/></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span><span style="font-size:10.0pt;font-family:"Courier New";color:navy"></property></span></p>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";
color:black"> </span><span style="font-size:10.0pt;font-family:"Courier New";color:navy"></supportedProperties></span></li>
<li>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">In case the
"supportedProperties" element is not specified the supported properties
will be automatically calculated: all build properties referenced in the
tool's enablement expressions will be treated as supported</li>
</ul>
</li>
<li>
<p style="margin-top: 0; margin-bottom: 0">Specifying the set of supported
build properties for tool-chains.</p>
<ul>
<li>
<p style="margin-top: 0; margin-bottom: 0">All build properties and
their values supported by the tool-chain's tools will be treated as
supported by the given tool-chain. </p></li>
<li>
<p style="margin-top: 0; margin-bottom: 0">A tool-chain may specify
additional supported properties and property value</p>
<ul>
<li>
<p style="margin-top: 0; margin-bottom: 0">A tool-chain can specify
a "supportedProperties" element listing additional properties and
property values supported in the same way as for tool elements, e.g.</p>
</li>
<li>
<p class="MsoNormal" style="margin-top: 0; margin-bottom: 0">In case
the "supportedProperties" element is not specified but the
tool-chain contains enablement expressions, all build properties
referenced in the tool-chain's enablement expressions will be
treated as supported</li>
</ul>
</li>
</ul>
</li>
</ol>
<p style="margin-top: 0; margin-bottom: 0"><b>Assigning the set of build
properties for configurations/project-types</b></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0">Once the tools/tool-chains has
specified the setting adjustment expressions it is possible to use one and the
same tools in different configurations and project types without a necessity to
override/specify any project-type/configuration-specific options, e.g. debug
level, optimization level, etc.</p>
<p style="margin-top: 0; margin-bottom: 0">For this purpose it is possible to
assign the set of build properties and their values for project-types and
configurations</p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black"> </span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<projectType</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black"> </span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
buildArtefactType=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildArtefactType.exe"</span><span style="font-size: 10.0pt; font-family: Courier New; color: black">
<- the project-type level build properties will be applied for all
configurations. The buildArtefactType is a convenience attribute that allows to
specify the value for the "buildArtefactType" property.</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<font size="2"><span style="font-family: Courier New">It is possible to specify
the "buildProperties" attribute for the project type and define the set of build
properties there in the same way as for configuration (see below)</span></font></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
.......</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<configuration</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<font size="2" color="#000080"><span style="font-family: Courier New">
...</span></font></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
buildProperties=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug"
</span><span style="font-size: 10.0pt; font-family: Courier New; color: black">
<- defines/assigns the set of build properties for the configuration in the form
of comma-separated list of <property_id>=<property_value_id> pairs</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black"> </span>
<span style="font-size:10.0pt;font-family:"Courier New";color:navy">
cleanCommand=</span><span style="font-size:10.0pt;font-family:"Courier New";color:green">"rm
-rf"</span><span style="font-size:10.0pt;font-family:"Courier New";
color:navy">></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black"> </span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<toolChain</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
.....</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">></span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<font size="2" color="#000080"><span style="font-family: Courier New">
...</span></font></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
<tool</span><span style="font-size: 10.0pt; font-family: Courier New; color: black">
<- note that we are not defining any configuration specific options here (debug
level, optimization level, etc.) Those option values will be automatically
adjusted based upon enablement/adjustment expressions defined for the tool's
options and the set of build properties and their values assigned for the
configuration</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
id=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"cdt.managedbuild.tool.gnu.c.compiler.exe.debug"</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black"> </span>
<span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">
superClass=</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: green">"cdt.managedbuild.tool.gnu.c.compiler.base"</span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: navy">></span><span lang="EN-US" style="font-size: 10.0pt; font-family: Courier New; color: black">
</span></p>
<p class="MsoNormal" style="text-autospace: none; margin-top: 0; margin-bottom: 0">
<span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span>
<span style="font-size:10.0pt;
font-family:"Courier New";color:navy"> </toolChain></span></p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p class="subsection"><a name="_TocSectionUIModel_11">2.11 Model schema changes</a></p>
<p class="subsection"><a name="_TocSectionUIModel_11_1">2.11.1 folderInfo</a></p>
The folderInfo is a new element presented in 4.0. The element represents the
per-folder settings<table border="1" width="688" height="58" id="table21">
<tr>
<td height="30" width="271" align="center"><b>Property</b></td>
<td height="30" width="235" align="center"><b>Description</b></td>
<td height="30" width="160" align="center"><b>Default Value</b></td>
</tr>
<tr>
<td height="20" width="271">resourcePath</td>
<td height="20" width="235">Project-relative resource path</td>
<td height="20" width="160">
<p align="center">value is required</td>
</tr>
<tr>
<td height="20" width="271">exclude</td>
<td height="20" width="235">Specifies whether the resource is excluded
from building in the parent configuration. The default is false. The
resourceConfiguration element retains its tool children, if any exist,
even when excluded from the build. </td>
<td height="20" width="160">
<p align="center">false</td>
</tr>
</table>
<p class="subsection"><a name="_TocSectionUIModel_11_2">2.11.2 fileInfo</a></p>
The fildeInfo is a new element presented in 4.0. The element represents the
per-file settings.<p class="ConfigMarkup" id="elementDesc">This element has the
same meaning as the resourceConfiguration element. It is added for consistency
with the folderInfo element. The only difference between this element and the
resourceConfiguration is that resourceConfiguration specifies the resource full
path, while the fileInfo specifies project-relative resource path in the same
way as the folderInfo does.</p>
<table border="1" width="688" height="58" id="table22">
<tr>
<td height="30" width="271" align="center"><b>Property</b></td>
<td height="30" width="235" align="center"><b>Description</b></td>
<td height="30" width="160" align="center"><b>Default Value</b></td>
</tr>
<tr>
<td height="20" width="271">resourcePath</td>
<td height="20" width="235">Project-relative resource path</td>
<td height="20" width="160">
<p align="center">value is required</td>
</tr>
<tr>
<td height="20" width="271">exclude</td>
<td height="20" width="235">Specifies whether the resource is excluded
from building in the parent configuration. The default is false. The
resourceConfiguration element retains its tool children, if any exist,
even when excluded from the build. </td>
<td height="20" width="160">
<p align="center">false</td>
</tr>
<tr>
<td height="20" width="271">rcbsApplicability </td>
<td height="20" width="235">Identifies how the user desires to apply a
resource custom build step: 1. Apply rcbs tool before any other tools
defined for the resource. 2. Apply rcbs tool after any other tools
defined for the resource. 3. Apply rcbs tool overriding any other tools
defined for the resource. 4. Disable (don't apply) the rcbs tool. </td>
<td height="20" width="160">
<p align="center">disable</td>
</tr>
<tr>
<td height="20" width="271">toolsToInvoke</td>
<td height="20" width="235">Identifies which tools to invoke by a
semicolon separated list of child tool ids. Applies as follows: 1.
Defaults to all tools in the order found 2. Use specified ordered list
of children to invoke 3. If empty string, treat as if no resource
configuration existed, i.e., use project level tool.</td>
<td height="20" width="160">
<p align="center">all tools in the order found</td>
</tr>
</table>
<p class="subsection"> </p>
<p class="subsection"><a name="_TocSectionUIModel_11_3">2.11.3 toolChain</a></p>
Note:
the default value is used ONLY in case the property is undefined for all
tool-chain's super-classes<table border="1" width="688" height="58">
<tr>
<td height="30" width="271" align="center"><b>Property</b></td>
<td height="30" width="235" align="center"><b>Description</b></td>
<td height="30" width="160" align="center"><b>Default Value</b></td>
</tr>
<tr>
<td height="20" width="271">supportsManagedBuild</td>
<td height="20" width="235">specifies whether the managed build is
supported by the tool-chain</td>
<td height="20" width="160">
<p align="center">true</td>
</tr>
</table>
<p class="subsection"><a name="_TocSectionUIModel_11_4">2.11.4 tool</a></p>Note:
the default value is used ONLY in case the property is undefined for all tool's
super-classes<table border="1" width="688" height="58" id="table19">
<tr>
<td height="30" width="271" align="center"><b>Property</b></td>
<td height="30" width="235" align="center"><b>Description</b></td>
<td height="30" width="160" align="center"><b>Default Value</b></td>
</tr>
<tr>
<td height="20" width="271">supportsManagedBuild</td>
<td height="20" width="235">specifies whether the managed build is
supported by the tool</td>
<td height="20" width="160">
<p align="center">true</td>
</tr>
</table>
<p class="subsection"><a name="_TocSectionUIModel_11_5">2.11.5 inputType</a></p>Note:
the default value is used ONLY in case the property is undefined for all input
types's super-classes<table border="1" width="688" height="58" id="table20">
<tr>
<td height="30" width="271" align="center"><b>Property</b></td>
<td height="30" width="235" align="center"><b>Description</b></td>
<td height="30" width="160" align="center"><b>Default Value</b></td>
</tr>
<tr>
<td height="20" width="271">languageId</td>
<td height="20" width="235">the id of the org.eclipse.cdt.core.language
extension point specifying the language for resources represented with
the input type<p>The value of this attribute is used only in case
languageInfoCalculator is not specified</td>
<td height="20" width="160">
<p align="center">none</td>
</tr>
<tr>
<td height="20" width="271">languageInfoCalculator</td>
<td height="20" width="235">Specifies the name of the class that
implements org.eclipse.cdt.managedbuilder.core.ILanguageInfoCalculator
for dinamic providing the language id info.<br>
Overrides language id specified with the languageId attribute.</td>
<td height="20" width="160" align="center">
none</td>
</tr>
<tr>
<td height="20" width="271">scannerConfigDiscoveryProfileId</td>
<td height="20" width="235">Specifies an id of scanner configuration
discovery profile for gathering the built-in compiler settings for
resource type presented with this input type.</td>
<td height="20" width="160" align="center">
the value of the scannerConfigDiscoveryProfileId defined for the
tool-chain</td>
</tr>
</table>
<p class="subsection"><a name="_TocSectionUIModel_11_6">2.11.6 builder</a></p>Note:
the default value is used ONLY in case the property is undefined for all input
types's super-classes<table border="1" width="688" height="58" id="table23">
<tr>
<td height="30" width="271" align="center"><b>Property</b></td>
<td height="30" width="235" align="center"><b>Description</b></td>
<td height="30" width="160" align="center"><b>Default Value</b></td>
</tr>
<tr>
<td height="20" width="271">parallelBuildCmd</td>
<td height="20" width="235">specifies the "parallel build" builder
option. <br>
If the builder supports specifying custom number of parallel jobs, the
option definition may contain "*" the Build System sill substitute the
"*" with the number of parallel threads to be used.</td>
<td height="20" width="160">
<p align="center">none</td>
</tr>
<tr>
<td height="20" width="271">ignoreErrCmd</td>
<td height="20" width="235">specifies the "ignore error" builder option.</td>
<td height="20" width="160" align="center">
none</td>
</tr>
<tr>
<td height="20" width="271">cleanBuildTarget</td>
<td height="20" width="235">represents the build target to be used for
clean build</td>
<td height="20" width="160" align="center">
clean</td>
</tr>
<tr>
<td height="20" width="271">incrementalBuildTarget</td>
<td height="20" width="235">represents the build target to be used for
incremental build</td>
<td height="20" width="160" align="center">
all</td>
</tr>
<tr>
<td height="20" width="271">autoBuildTarget</td>
<td height="20" width="235">represents the build target to be used for
auto build</td>
<td height="20" width="160" align="center">
all</td>
</tr>
<tr>
<td height="20" width="271">supportsManagedBuild</td>
<td height="20" width="235">Specifies whether the duilder supports
managed build. Default value is true.</td>
<td height="20" width="160" align="center">
true</td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</body>
</html>
|