vscode-cmake-tools/schemas/variants-schema.json

111 строки
3.4 KiB
JSON
Исходник Постоянная ссылка Обычный вид История

{
2017-10-17 09:18:39 +03:00
"type": "object",
"description": "Variant options",
"additionalProperties": false,
"minProperties": 1,
"patternProperties": {
"base\\$": {
"type": "object",
"description": "Base mix-in for all variants (Not implemented for CMake Tools)",
"additionalProperties": true
},
"^\\w+$": {
"type": "object",
"properties": {
"description": {
"description": "A description of this option",
"type": "string"
},
2017-10-17 09:18:39 +03:00
"default": {
"description": "The default setting for this option",
"type": "string"
},
"choices": {
"type": "object",
"description": "A possible option value",
"minProperties": 1,
"patternProperties": {
"^\\w+$": {
"type": "object",
2017-10-17 09:18:39 +03:00
"required": [
2017-12-11 02:19:34 +03:00
"short"
2017-10-17 09:18:39 +03:00
],
"properties": {
2017-12-11 02:19:34 +03:00
"short": {
2017-10-17 09:18:39 +03:00
"type": "string",
"description": "A simple one-word description of this value"
},
2017-12-11 02:19:34 +03:00
"long": {
2017-10-17 09:18:39 +03:00
"type": "string",
"description": "A lengthier description of what this value does"
},
"buildType": {
"type": "string",
"default": "Debug",
"description": "The value of CMAKE_BUILD_TYPE for this variant"
},
"linkage": {
"type": "string",
"enum": [
"static",
"shared"
],
"default": "static",
"description": "Sets the value of BUILD_SHARED on the CMake command line"
},
"env": {
"type": "object",
"description": "Environment variables to set during CMake configuration",
"additionalProperties": false,
"patternProperties": {
"^\\w+$": {
"type": "string",
"description": "Value for the environment variable"
}
}
},
2017-10-17 09:18:39 +03:00
"settings": {
"type": "object",
"description": "The -D arguments to pass to CMake for this variant",
"minProperties": 1,
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
2017-10-17 09:18:39 +03:00
},
{
"type": "integer"
},
{
"type": "boolean"
}
]
}
},
"generator": {
"type": "string",
"description": "The CMake generator to use for this variant",
"default": "Ninja"
},
"toolset": {
"type": "string",
"description": "The generator toolset to use for this variant"
}
2017-10-17 09:18:39 +03:00
}
}
2017-10-17 09:18:39 +03:00
}
}
2017-10-17 09:18:39 +03:00
},
"required": [
"default",
"choices"
]
}
2017-10-17 09:18:39 +03:00
}
}