Closed denis-shienkov closed 3 years ago
Right now it is implemented with the following configurations.json
format:
[
{
"name": "release",
"display-name": "Release",
"description": "Enable optimizations.",
"overridden-properties": {}
},
{
"name": "debug",
"display-name": "Debug",
"description": "Disable optimizations.",
"overridden-properties": {
"projects.foo.hasSpecialFeature": false
}
},
{
"name": "profiling",
"display-name": "Profiling",
"description": "Enable profiling.",
"overridden-properties": {}
}
]
where the :
name
- is the mandatory build configuration name (will be passed to qbs)display-name
- the text which will be displayed on the Select Configuration
button and in the Select Configurations
selector.description
- a short brief which will be displayed in the Select Configurations
selector.overridden-properties
- it contains the set of properties which should be overridden (will be passed to qbs)UPD: File configurations.json
renamed with qbs-configurations.json
.
Right now we use the separate
overriden-properties.json
file to store the overriden properties, and the separate buildconfigurations
button on the status bar.In this case it is impossible to assign the overriden-properties for the specific build configuration.
The solution is to get rid of the
overriden-properties.json
file in vafor to theconfigurations.json
file. In this case thisconfigurations.json
file may contains all build configurations and its overriden properties e.g. in a such format:where the
release
,debug
,profiling
(or something custom) - are the build configurations maps, and the underlying dict is the map containing overriden-properties for each configuration (it iskey -> value
pairs).Also we need to do the additional changes:
configurations.json
file if it not exists yet, and then to open this file in the editor.configurations.json
file to select the desired configuration.configuration.json
file.