Add /m option for builds.
[platform/upstream/coreclr.git] / config.json
1 {
2   "settings": {
3     "CloudDropAccessToken": {
4       "description": "Azure access token",
5       "valueType": "property",
6       "values": [],
7       "defaultValue": ""
8     },
9     "CloudDropAccountName": {
10       "description": "Azure account name.",
11       "valueType": "property",
12       "values": [],
13       "defaultValue": ""
14     },
15     "BuildNumberMajor": {
16       "description": "Product build major number.",
17       "valueType": "property",
18       "values": [],
19       "defaultValue": ""
20     },
21     "BuildNumberMinor": {
22       "description": "Product build minor number.",
23       "valueType": "property",
24       "values": [],
25       "defaultValue": ""
26     },
27     "MsBuildParameters": {
28       "description": "MsBuild building options.",
29       "valueType": "passThrough",
30       "values": [],
31       "defaultValue": "/nologo /verbosity:minimal /clp:Summary"
32     },
33     "MsBuildFileLogging": {
34       "description": "MsBuild logging options.",
35       "valueType": "passThrough",
36       "values": [],
37       "defaultValue": "/flp:v=normal"
38     },
39     "MsBuildEventLogging": {
40       "description": "MsBuild logging options.",
41       "valueType": "passThrough",
42       "values": [],
43       "defaultValue": "/l:BinClashLogger,Tools/net45/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log"
44     },
45     "FilterToOSGroup": {
46       "description": "Specifies the OSGroup.",
47       "valueType": "property",
48       "values": [ "Windows_NT", "Linux", "Unix", "OSX" ],
49       "defaultValue": "${OSName}"
50     },
51     "RestoreNETCorePlatforms": {
52       "description": "MsBuild target that restores the NETCore packages.",
53       "valueType": "target",
54       "values": [],
55       "defaultValue": ""
56     },
57     "RestoreDuringBuild": {
58       "description": "Enables/disables package restore.",
59       "valueType": "property",
60       "values": [ true, false ],
61       "defaultValue": true
62     },
63     "Project": {
64       "description": "Project where the commands are going to be applied.",
65       "valueType": "passThrough",
66       "values": [],
67       "defaultValue": ""
68     },
69     "__BuildType": {
70       "description": "Specifies the configuration to publish packages",
71       "valueType": "property",
72       "values": [ "release", "debug", "checked" ],
73       "defaultValue": "debug"
74     },
75     "__BuildArch": {
76       "description": "Specifies the architecture to publish packages",
77       "valueType": "property",
78       "values": [ "x64", "x86", "arm", "arm64" ],
79       "defaultValue": "${CPUArch}"
80     },
81     "__BuildOS": {
82       "description": "Specifies the OS to publish packages.",
83       "valueType": "property",
84       "values": [ "Linux", "OSX", "FreeBSD", "OpenBSD", "NetBSD", "SunOS", "Windows_NT" ],
85       "defaultValue": "${OSName}"
86     },
87     "__DistroRid": {
88       "description": "Specifies the distro rid for Unix OS.",
89       "valueType": "property",
90       "values": [],
91       "defaultValue": "${OSRid}"
92     },
93     "__VSVersion": {
94       "description": "Sets the Visual Studio version to use.",
95       "valueType": "property",
96       "values": [],
97       "defaultValue": "vs2015"
98     },
99     "__ProjectDir": {
100       "description": "Directory of the dir.props file.",
101       "valueType": "property",
102       "values": [],
103       "defaultValue": ""
104     },
105     "__SourceDir": {
106       "description": "Source directory.",
107       "valueType": "property",
108       "values": [],
109       "defaultValue": ""
110     },
111     "__PackagesDir": {
112       "description": "Packages directory.",
113       "valueType": "property",
114       "values": [],
115       "defaultValue": ""
116     },
117     "__RootBinDir": {
118       "description": "Root bin directory.",
119       "valueType": "property",
120       "values": [],
121       "defaultValue": ""
122     },
123     "__BinDir": {
124       "description": "Bin directory of specific OS, Arch and Type being built.",
125       "valueType": "property",
126       "values": [],
127       "defaultValue": ""
128     },
129     "__IntermediatesDir": {
130       "description": "Intermediates bin directory.",
131       "valueType": "property",
132       "values": [],
133       "defaultValue": ""
134     },
135     "__PackagesBinDir": {
136       "description": "Packages bin directory.",
137       "valueType": "property",
138       "values": [],
139       "defaultValue": ""
140     },
141     "__TestWorkingDir": {
142       "description": "Test working directory.",
143       "valueType": "property",
144       "values": [],
145       "defaultValue": ""
146     },
147     "GenerateVersionHeader": {
148       "description": "Generates _version.h",
149       "valueType": "passThrough",
150       "values": [],
151       "defaultValue": "/t:GenerateVersionHeader /p:GenerateVersionHeader=true"
152     },
153     "GenerateVersionSourceFile": {
154       "description": "Generate version.cpp",
155       "valueType": "passThrough",
156       "values": [],
157       "defaultValue": "/t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true"
158     },
159     "NativeVersionSourceFile": {
160       "description": "Provides location for version.cpp",
161       "valueType": "property",
162       "values": [],
163       "defaultValue": ""
164     },
165     "NativeVersionHeaderFile": {
166       "description": "Provides location for _version.h",
167       "valueType": "property",
168       "values": [],
169       "defaultValue": ""
170     },
171     "OfficialBuildId": {
172       "description": "Official Build Id.",
173       "valueType": "property",
174       "values": [],
175       "defaultValue": ""
176     },
177     "Configuration": {
178       "description": "Specifies the build type for native build.",
179       "valueType": "property",
180       "values": [ "debug", "release", "checked" ],
181       "defaultValue": "debug"
182     },
183     "UseEnv": {
184       "description": "Set when building for arm64.",
185       "valueType": "property",
186       "values": [ true, false ],
187       "defaultValue": true
188     },
189     "Platform": {
190       "description": "Sets the build arch for native build.",
191       "valueType": "property",
192       "values": [ "x86", "x64", "arm", "arm64" ],
193       "defaultValue": "${CPUArch}"
194     },
195     "Rebuild": {
196       "description": "Specifies rebuild target.",
197       "valueType": "target",
198       "values": [],
199       "defaultValue": ""
200     },
201     "MsBuildLog": {
202       "description": "Specifies build logs for build alias.",
203       "valueType": "passThrough",
204       "values": [],
205       "defaultValue": ""
206     },
207     "MsBuildWrn": {
208       "description": "Specifies build logs for build alias.",
209       "valueType": "passThrough",
210       "values": [],
211       "defaultValue": ""
212     },
213     "MsBuildErr": {
214       "description": "Specifies build logs for build alias.",
215       "valueType": "passThrough",
216       "values": [],
217       "defaultValue": ""
218     },
219     "BuildNugetPackage": {
220       "description": "Specifies to build nuget packages.",
221       "valueType": "property",
222       "values": [ true, false ],
223       "defaultValue": true
224     },
225     "SignType": {
226       "description": "Sets the SignType.",
227       "valueType": "property",
228       "values": [ "real" ],
229       "defaultValue": ""
230     },
231     "maxcpucount": {
232       "description": "Msbuild internal command.",
233       "valueType": "internal",
234       "values": [],
235       "defaultValue": ""
236     },
237     "CLRTestPriorityToBuild": {
238       "description": "Sets priority to build test.",
239       "valueType": "property",
240       "values": [],
241       "defaultValue": ""
242     },
243     "IlasmRoundTrip": {
244       "description": "Sets ilasm round trip property.",
245       "valueType": "property",
246       "values": [ true, false ],
247       "defaultValue": true
248     },
249     "CreateTestOverlay": {
250       "description": "Runs CreateTestOverlay target.",
251       "valueType": "target",
252       "values": [],
253       "defaultValue": ""
254     },
255     "Verbosity": {
256       "description": "Sets build verbosity.",
257       "valueType": "passThrough",
258       "values": [],
259       "defaultValue": "/v:normal"
260     },
261     "Build": {
262       "description": "Runs the build target.",
263       "valueType": "target",
264       "values": [],
265       "defaultValue": ""
266     },
267     "UseSharedCompilation": {
268       "description": "Sets the use shared compilation property.",
269       "valueType": "property",
270       "values": [ true, false ],
271       "defaultValue": true
272     },
273     "UpdateInvalidPackageVersions": {
274       "description": "Runs the target to update package versions.",
275       "valueType": "target",
276       "values": [],
277       "defaultValue": ""
278     },
279     "ExtraParameters": {
280       "description": "Extra parameters will be passed to the selected command.",
281       "valueType": "passThrough",
282       "values": [],
283       "defaultValue": ""
284     }
285   },
286   "commands": {
287     "build": {
288       "alias": {
289         "generateHeaderWindows": {
290           "description": "Generates _version.h",
291           "settings": {
292             "GenerateVersionHeader": "default",
293             "NativeVersionHeaderFile": "default",
294             "Project": "./build.proj"
295           }
296         },
297         "generateHeaderUnix": {
298           "description": "Generates version.cpp",
299           "settings": {
300             "GenerateVersionSourceFile": "default",
301             "NativeVersionSourceFile": "default",
302             "Project": "./build.proj"
303           }
304         },
305         "buildCoreLib": {
306           "description": "Builds System.Private.CoreLib.",
307           "settings": {
308             "Project": "./build.proj"
309           }
310         },
311         "buildPackages": {
312           "description": "Builds nuget packages.",
313           "settings": {
314             "Project": "./src/.nuget/packages.builds"
315           }
316         },
317         "verbose": {
318           "description": "Sets the verbosity",
319           "settings": {
320             "Verbosity": "/v:detailed"
321           }
322         },
323         "disableoss": {
324           "description": "Sets the sign type.",
325           "settings": {
326             "SignType": "real"
327           }
328         },
329         "buildType": {
330           "description": "Sets buildtype.",
331           "settings": {
332             "__BuildType": "default"
333           }
334         },
335         "buildArch": {
336           "description": "Sets buildarch.",
337           "settings": {
338             "__BuildArch": "default"
339           }
340         },
341         "buildOS": {
342           "description": "Sets the OS to build.",
343           "settings": {
344             "__BuildOS": "default"
345           }
346         },
347         "testOverlay": {
348           "description": "Runs test overlay target.",
349           "settings": {
350             "Project": "./tests/runtest.proj",
351             "CreateTestOverlay": "default"
352           }
353         },
354         "buildManagedTests": {
355           "description": "Builds managed tests.",
356           "settings": {
357             "Project": "./tests/build.proj"
358           }
359         },
360         "priority": {
361           "description": "Sets CLRTestPriorityToBuild property.",
362           "settings": {
363             "CLRTestPriorityToBuild": "default"
364           }
365         },
366         "sequential": {
367           "description": "Sets sequential build",
368           "settings": {
369             "maxcpucount": "default"
370           }
371         },
372         "skipRestore": {
373           "description": "Skips restoring packages during build.",
374           "settings": {
375             "RestoreDuringBuild": false
376           }
377         },
378         "BuildTarget": {
379           "description": "Runs the build target.",
380           "settings": {
381             "Build": "default"
382           }
383         }
384       },
385       "defaultValues": {
386         "toolName": "msbuild",
387         "settings": {
388           "maxcpucount": "default",
389           "MsBuildParameters": "default",
390           "MsBuildLog": "default",
391           "MsBuildWrn": "default",
392           "MsBuildErr": "default"
393         }
394       }
395     },
396     "sync": {
397       "alias": {
398         "p": {
399           "description": "Restores all NuGet packages for repository.",
400           "settings": {
401             "Project": "./build.proj",
402             "RestoreDuringBuild": true,
403             "RestoreNETCorePlatforms": "default"
404           }
405         },
406         "ab": {
407           "description": "Downloads the latests product packages from Azure. The values for '-AzureAccount' and '-AzureToken' are required",
408           "settings": {
409             "Project": "./src/syncAzure.proj"
410           }
411         },
412         "azureToken": {
413           "description": "Account token to connect to Azure Blob storage.",
414           "settings": {
415             "CloudDropAccessToken": "default"
416           }
417         },
418         "azureAccount": {
419           "description": "Account name to connect to Azure Blob storage.",
420           "settings": {
421             "CloudDropAccountName": "default"
422           }
423         },
424         "verbose": {
425           "description": "Passes /flp:v=diag to the msbuild command or the value passed by the user.",
426           "settings": {
427             "MsBuildFileLogging": "/flp:v=diag;LogFile=sync.log"
428           }
429         },
430         "buildMajor": {
431           "description": "To download a specific group of product packages, specify build number. The value for -BuildMinor required.",
432           "settings": {
433             "BuildNumberMajor": "default"
434           }
435         },
436         "buildMinor": {
437           "description": "To download a specific group of product packages, specify build number. The value for -BuildMajor required.",
438           "settings": {
439             "BuildNumberMinor": "default"
440           }
441         }
442       },
443       "defaultValues": {
444         "toolName": "msbuild",
445         "settings": {
446           "MsBuildParameters": "default",
447           "maxcpucount": "default",
448           "MsBuildFileLogging": "/flp:v=detailed;LogFile=sync.log"
449         }
450       }
451     },
452     "publish-packages": {
453       "alias": {
454         "azureToken": {
455           "description": "Account token to connect to Azure Blob storage.",
456           "settings": {
457             "CloudDropAccessToken": "default"
458           }
459         },
460         "azureAccount": {
461           "description": "Account name to connect to Azure Blob storage.",
462           "settings": {
463             "CloudDropAccountName": "default"
464           }
465         },
466         "buildArch": {
467           "description": "Specifies architecture to publish, can be x64, x86, arm or arm64",
468           "settings": {
469             "__BuildArch": "default"
470           }
471         },
472         "buildType": {
473           "description": "Specifies configuration to publish, can be Release, Debug or Checked.",
474           "settings": {
475             "__BuildType": "default"
476           }
477         },
478         "buildOS": {
479           "description": "Specifies the OS to publish packages.",
480           "settings": {
481             "__BuildOS": "default"
482           }
483         }
484       },
485       "defaultValues": {
486         "toolName": "msbuild",
487         "settings": {
488           "Project": "./src/publish.proj",
489           "MsBuildParameters": "default",
490           "maxcpucount": "default",
491           "MsBuildFileLogging": "/flp:v=detailed;LogFile=publish-packages.log"
492         }
493       }
494     },
495     "build-packages": {
496       "alias": {
497         "buildArch": {
498           "description": "Specifies architecture to publish, can be x64, x86, arm or arm64",
499           "settings": {
500             "__BuildArch": "default"
501           }
502         },
503         "buildType": {
504           "description": "Specifies configuration to publish, can be Release, Debug or Checked.",
505           "settings": {
506             "__BuildType": "default"
507           }
508         },
509         "distroRid": {
510           "description": "Specifies distro rid for Unix OS.",
511           "settings": {
512             "__DistroRid": "default"
513           }
514         }
515       },
516       "defaultValues": {
517         "toolName": "msbuild",
518         "settings": {
519           "MsBuildParameters": "default",
520           "__BuildOS": "default",
521           "maxcpucount": "default",
522           "MsBuildFileLogging": "/flp:v=detailed;Append;LogFile=build-packages.log",
523           "MsBuildEventLogging": "default"
524         }
525       }
526     }
527   },
528   "tools": {
529     "msbuild": {
530       "run": {
531         "windows": "Tools\\msbuild.cmd",
532         "unix": "Tools/msbuild.sh"
533       },
534       "valueTypes": {
535         "property": "/p:{name}={value}",
536         "target": "/t:{name}",
537         "internal": "/{name}"
538       }
539     },
540     "terminal": {
541       "run": {
542         "windows": "cmd",
543         "unix": "sh"
544       },
545       "valueTypes": {}
546     }
547   }
548 }