forked from microsoft/vscode-cmake-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
640 lines (640 loc) · 24.6 KB
/
package.json
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
{
"name": "cmake-tools",
"displayName": "CMake Tools",
"description": "Extended CMake support in Visual Studio Code",
"version": "0.10.2",
"repository": {
"type": "git",
"url": "https://github.com/vector-of-bool/vscode-cmake-tools"
},
"bugs": {
"url": "https://github.com/vector-of-bool/vscode-cmake-tools/issues"
},
"homepage": "https://github.com/vector-of-bool/vscode-cmake-tools",
"keywords": [
"cmake",
"tools",
"build",
"c++",
"native"
],
"publisher": "vector-of-bool",
"engines": {
"vscode": "^1.12.0"
},
"categories": [
"Other"
],
"galleryBanner": {
"color": "#13578c",
"theme": "dark"
},
"icon": "res/icon_128.png",
"activationEvents": [
"onCommand:cmake.configure",
"onCommand:cmake.build",
"onCommand:cmake.install",
"onCommand:cmake.buildWithTarget",
"onCommand:cmake.setBuildType",
"onCommand:cmake.setDefaultTarget",
"onCommand:cmake.cleanConfigure",
"onCommand:cmake.clean",
"onCommand:cmake.cleanRebuild",
"onCommand:cmake.ctest",
"onCommand:cmake.jumpToCacheFile",
"onCommand:cmake.quickStart",
"onCommand:cmake.launchTargetProgramPath",
"onCommand:cmake.launchTarget",
"onCommand:cmake.debugTarget",
"onCommand:cmake.selectLaunchTarget",
"onCommand:cmake.selectEnvironments",
"onCommand:cmake.toggleCoverageDecorations",
"workspaceContains:CMakeLists.txt"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "cmake.configure",
"title": "Configure",
"category": "CMake"
},
{
"command": "cmake.build",
"title": "Build",
"category": "CMake"
},
{
"command": "cmake.install",
"title": "Install",
"category": "CMake"
},
{
"command": "cmake.buildWithTarget",
"title": "Build a target",
"category": "CMake"
},
{
"command": "cmake.setBuildType",
"title": "Set build type",
"category": "CMake"
},
{
"command": "cmake.setDefaultTarget",
"title": "Set the default build target",
"category": "CMake"
},
{
"command": "cmake.cleanConfigure",
"title": "Delete cached build settings and reconfigure",
"category": "CMake"
},
{
"command": "cmake.clean",
"title": "Clean",
"category": "CMake"
},
{
"command": "cmake.cleanRebuild",
"title": "Clean rebuild",
"category": "CMake"
},
{
"command": "cmake.ctest",
"title": "Run tests",
"category": "CMake"
},
{
"command": "cmake.jumpToCacheFile",
"title": "Edit the CMake Cache",
"category": "CMake"
},
{
"command": "cmake.quickStart",
"title": "Quick Start",
"category": "CMake"
},
{
"command": "cmake.debugTarget",
"title": "Debug Target",
"category": "CMake"
},
{
"command": "cmake.launchTarget",
"title": "Execute the current target without a debugger",
"category": "CMake"
},
{
"command": "cmake.selectLaunchTarget",
"title": "Select a Target to Debug",
"category": "CMake"
},
{
"command": "cmake.selectEnvironments",
"title": "Select active build environments",
"category": "CMake"
},
{
"command": "cmake.toggleCoverageDecorations",
"title": "Toggle visibility of test coverage in the editor",
"category": "CMake"
}
],
"menus": {
"commandPalette": [
{
"command": "cmake.configure"
},
{
"command": "cmake.build"
},
{
"command": "cmake.install"
},
{
"command": "cmake.buildWithTarget"
},
{
"command": "cmake.setBuildType"
},
{
"command": "cmake.setDefaultTarget"
},
{
"command": "cmake.setDefaultTarget"
},
{
"command": "cmake.cleanConfigure"
},
{
"command": "cmake.clean"
},
{
"command": "cmake.cleanRebuild"
},
{
"command": "cmake.ctest"
},
{
"command": "cmake.jumpToCacheFile"
},
{
"command": "cmake.debugTarget"
},
{
"command": "cmake.launchTarget"
},
{
"command": "cmake.selectLaunchTarget"
},
{
"command": "cmake.selectEnvironments"
},
{
"command": "cmake.toggleCoverageDecorations"
}
]
},
"configuration": {
"type": "object",
"title": "CMake Tools configuration",
"properties": {
"cmake.buildDirectory": {
"type": "string",
"default": "${workspaceRoot}/build",
"description": "The directory where CMake build files will go"
},
"cmake.installPrefix": {
"type": "string",
"default": null,
"description": "The directory where CMake installed files will go."
},
"cmake.sourceDirectory": {
"type": "string",
"default": "${workspaceRoot}",
"description": "The directory of the root CMakeLists.txt file"
},
"cmake.saveBeforeBuild": {
"type": "boolean",
"default": true,
"description": "Save open files before building"
},
"cmake.buildBeforeRun": {
"type": "boolean",
"default": true,
"description": "Build the target before running it."
},
"cmake.clearOutputBeforeBuild": {
"type": "boolean",
"default": true,
"description": "Clear build output before each build"
},
"cmake.configureSettings": {
"type": "object",
"default": {},
"description": "CMake variables to set on the command line"
},
"cmake.initialBuildType": {
"type": "null",
"default": null,
"description": "[[This option is deprecated and will no longer be used]]"
},
"cmake.preferredGenerators": {
"type": "array",
"default": [
"Ninja",
"Unix Makefiles"
],
"description": "The preferred CMake generator(s) to use when configuring (tried in order of listing)"
},
"cmake.generator": {
"type": "string",
"default": null,
"description": "The CMake generator to use"
},
"cmake.toolset": {
"type": "string",
"default": null,
"description": "The CMake toolset to use when configuring"
},
"cmake.platform": {
"type": "string",
"default": null,
"description": "The CMake platform to use when configuring"
},
"cmake.configureArgs": {
"type": "array",
"description": "Additional arguments to pass to CMake when configuring",
"items": {
"type": "string",
"title": "CMake Arguments"
},
"default": []
},
"cmake.buildArgs": {
"type": "array",
"description": "Additional arguments to pass to CMake when building",
"items": {
"type": "string"
},
"default": []
},
"cmake.buildToolArgs": {
"type": "array",
"description": "Additional arguments to pass to the underlying build tool when building",
"items": {
"type": "string"
},
"default": []
},
"cmake.parallelJobs": {
"type": "number",
"default": 0,
"description": "The number of parallel build jobs. Use zero to automatically detect the number of CPUs."
},
"cmake.ctestPath": {
"type": "string",
"default": null,
"description": "Path to CTest executable. If null, will be inference from cmake.cmakePath (recommended to leave null)"
},
"cmake.ctest.parallelJobs": {
"type": "number",
"default": 0,
"description": "The number of parallel test jobs. Use zero to use the value of cmake.parallelJobs"
},
"cmake.parseBuildDiagnostics": {
"type": "boolean",
"default": true,
"description": "Parse compiler output for warnings and errors"
},
"cmake.enabledOutputParsers": {
"type": "array",
"description": "Output parsers to use. Supported parsers 'cmake', 'gcc', 'gnuld' for GNULD-style inker output, 'msvc' for Microsoft Visual C++, and 'ghs' for the Green Hills compiler with --no_wrap_diagnostics --brief_diagnostics",
"items": {
"type": "string",
"enum": [
"cmake",
"gcc",
"gnuld",
"msvc",
"ghs"
]
},
"default": [
"cmake",
"gcc",
"gnuld",
"msvc",
"ghs"
]
},
"cmake.debugConfig": {
"type": "object",
"description": "The debug configuration to use when debugging a target",
"properties": {
"symbolSearchPath": {
"type": "string",
"description": "Visual Studio debugger symbol search paths"
},
"additionalSOLibSearchPath": {
"type": "string",
"description": "Paths for GDB or LLDB to search for .so files"
},
"externalConsole": {
"type": "boolean",
"description": "Launch an external console for the program"
},
"logging": {
"type": "object",
"description": "Tell what types of messages should be logged to the console",
"properties": {
"exceptions": {
"type": "boolean",
"default": true
},
"moduleLoad": {
"type": "boolean",
"default": true
},
"programOutput": {
"type": "boolean",
"default": true
},
"engineLogging": {
"type": "boolean",
"default": false
},
"trace": {
"type": "boolean",
"default": false
},
"traceResponse": {
"type": "boolean",
"default": false
}
}
},
"visualizerFile": {
"type": "string",
"description": ".natvis file to be used when debugging"
},
"args": {
"type": "array",
"description": "Arguments to pass to program command line",
"items": {
"type": "string"
},
"default": []
},
"cwd": {
"type": "string",
"description": "Set the working directory for the program"
},
"environment": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of environment variable"
},
"value": {
"type": "string",
"description": "Value for the environment variable"
}
}
}
},
"MIMode": {
"type": "string",
"enum": [
"gdb",
"lldb"
]
},
"miDebuggerPath": {
"type": "string",
"description": "Path to gdb or lldb debugger"
},
"stopAtEntry": {
"type": "boolean",
"description": "Stop at the entry point of the target",
"default": false
},
"setupCommands": {
"type": "array",
"description": "Command to set up gdb or lldb",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Command to run"
},
"description": {
"type": "string",
"description": "Description of the command"
},
"ignoreFailures": {
"type": "boolean",
"default": false
}
}
}
},
"customLaunchSetupCommands": {
"type": "array",
"description": "Command to set up gdb or lldb",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "Command to run"
},
"description": {
"type": "string",
"description": "Description of the command"
},
"ignoreFailures": {
"type": "boolean",
"default": false
}
}
}
},
"launchCompleteCommand": {
"type": "string"
},
"dumpPath": {
"type": "string"
},
"coreDumpPath": {
"type": "string"
}
}
},
"cmake.defaultVariants": {
"type": "object",
"$schema": "schemas/variants-schema.json",
"default": {
"buildType": {
"default$": "debug",
"description$": "The build type to use",
"debug": {
"oneWordSummary$": "Debug",
"description$": "Emit debug information without performing optimizations",
"buildType": "Debug"
},
"release": {
"oneWordSummary$": "Release",
"description$": "Enable optimizations, omit debug info",
"buildType": "Release"
},
"minsize": {
"oneWordSummary$": "MinSizeRel",
"description$": "Optimize for smallest binary size",
"buildType": "MinSizeRel"
},
"reldeb": {
"oneWordSummary$": "RelWithDebInfo",
"description$": "Perform optimizations AND include debugging information",
"buildType": "RelWithDebInfo"
}
}
}
},
"cmake.ctestArgs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Arguments to pass to CTest",
"default": []
},
"cmake.environment": {
"type": "object",
"default": {},
"description": "Environment variables to set when running CMake commands",
"additionalProperties": {
"type": "string",
"description": "Value for the environment variable"
}
},
"cmake.configureEnvironment": {
"type": "object",
"default": {},
"description": "Environment variables to pass to CMake during configure",
"additionalProperties": {
"type": "string",
"description": "Value for the environment variable"
}
},
"cmake.buildEnvironment": {
"type": "object",
"default": {},
"description": "Environment variables to pass to CMake during build",
"additionalProperties": {
"type": "string",
"description": "Value for the environment variable"
}
},
"cmake.testEnvironment": {
"type": "object",
"default": {},
"description": "Environment variables to pass to CTest",
"additionalProperties": {
"type": "string",
"description": "Value for the environment variable"
}
},
"cmake.mingwSearchDirs": {
"type": "array",
"items": {
"type": "string",
"description": "Path to a directory"
},
"default": [
"C:\\MinGW"
],
"description": "Directories where MinGW may be installed"
},
"cmake.emscriptenSearchDirs": {
"type": "array",
"items": {
"type": "string",
"description": "Path to a directory"
},
"default": [],
"description": "Directories where Emscripten may be installed"
},
"cmake.useCMakeServer": {
"type": "boolean",
"default": true,
"description": "Enable CMake server"
},
"cmake.loggingLevel": {
"type": "string",
"default": "normal",
"enum": [
"verbose",
"normal",
"minimal"
]
}
}
},
"keybindings": [
{
"key": "f7",
"command": "cmake.build"
},
{
"key": "shift+f7",
"command": "cmake.buildWithTarget"
},
{
"key": "ctrl+f5",
"command": "cmake.debugTarget",
"when": "!inDebugMode"
},
{
"key": "shift+f5",
"command": "cmake.launchTarget"
}
],
"jsonValidation": [
{
"fileMatch": "cmake-variants.json",
"url": "./schemas/variants-schema.json"
}
]
},
"scripts": {
"vscode:prepublish": "./node_modules/.bin/tsc -p ./",
"compile": "./node_modules/.bin/tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"typescript": "~2.0.3",
"@types/node": "~6.0.45",
"vscode": "~1.1.0",
"mocha": "~3.4.2",
"@types/mocha": "~2.2.41",
"@types/js-yaml": "^3.5.28",
"@types/ajv": "^0.0.3",
"@types/xml2js": "^0.0.28",
"@types/rimraf": "^0.0.28",
"@types/ws": "^0.0.38"
},
"dependencies": {
"open": "0.0.5",
"js-yaml": "^3.6.1",
"ajv": "^4.7.5",
"xml2js": "^0.4.17",
"rimraf": "^2.5.4",
"ws": "^1.1.1",
"Polymer": "1.6.1--"
}
}