2016-10-03 04:45:02 +03:00
|
|
|
{
|
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-06-04 23:38:52 +03:00
|
|
|
},
|
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+$": {
|
2021-07-01 22:01:24 +03:00
|
|
|
"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"
|
2016-10-03 04:45:02 +03:00
|
|
|
},
|
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"
|
|
|
|
},
|
2018-03-26 03:51:57 +03:00
|
|
|
"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"
|
2016-10-03 04:45:02 +03:00
|
|
|
}
|
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"
|
2016-10-03 04:45:02 +03:00
|
|
|
}
|
2017-10-17 09:18:39 +03:00
|
|
|
}
|
2016-10-03 04:45:02 +03:00
|
|
|
}
|
2017-10-17 09:18:39 +03:00
|
|
|
}
|
2016-10-03 04:45:02 +03:00
|
|
|
}
|
2017-10-17 09:18:39 +03:00
|
|
|
},
|
|
|
|
"required": [
|
|
|
|
"default",
|
|
|
|
"choices"
|
|
|
|
]
|
2016-10-03 04:45:02 +03:00
|
|
|
}
|
2017-10-17 09:18:39 +03:00
|
|
|
}
|
2016-10-03 04:45:02 +03:00
|
|
|
}
|