mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-13 17:53:11 +02:00
Update CMake presets to version 9 and enhance build configurations for Windows
This commit is contained in:
parent
36366e254d
commit
52514e1bfe
@ -1,56 +1,83 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"version": 9,
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "base",
|
"name": "base",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"generator": "Ninja",
|
"generator": "Ninja",
|
||||||
"binaryDir": "${sourceDir}/build",
|
"binaryDir": "${sourceDir}/build",
|
||||||
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
"toolchainFile": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
||||||
"condition": {
|
"condition": {
|
||||||
"type": "equals",
|
"type": "equals",
|
||||||
"lhs": "${hostSystemName}",
|
"lhs": "${hostSystemName}",
|
||||||
"rhs": "Windows"
|
"rhs": "Windows"
|
||||||
|
},
|
||||||
|
"cacheVariables": {
|
||||||
|
"KICAD_BUILD_QA_TESTS": "OFF",
|
||||||
|
"KICAD_BUILD_I18N": "ON",
|
||||||
|
"KICAD_SCRIPTING_WXPYTHON": "ON"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"cacheVariables": {
|
{
|
||||||
"KICAD_BUILD_QA_TESTS": "OFF",
|
"name": "win64",
|
||||||
"KICAD_BUILD_I18N": "ON",
|
"hidden": true,
|
||||||
"KICAD_SCRIPTING_WXPYTHON": "ON"
|
"cacheVariables": {
|
||||||
}
|
"KICAD_WIN32_DPI_AWARE": "ON",
|
||||||
},
|
"CMAKE_INSTALL_PREFIX": "out",
|
||||||
{
|
"CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb"
|
||||||
"name": "win64",
|
},
|
||||||
"hidden": true,
|
"architecture": {
|
||||||
"cacheVariables": {
|
"value": "x64",
|
||||||
"KICAD_WIN32_DPI_AWARE": "ON",
|
"strategy": "external"
|
||||||
"CMAKE_INSTALL_PREFIX": "out",
|
},
|
||||||
"CMAKE_PDB_OUTPUT_DIRECTORY": "out/pdb"
|
"inherits": [
|
||||||
|
"base"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"architecture": {
|
{
|
||||||
"value": "x64",
|
"name": "x64-debug",
|
||||||
"strategy": "external"
|
"displayName": "x64 Debug",
|
||||||
|
"description": "Sets debug build type and x64 arch",
|
||||||
|
"inherits": "win64",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Debug"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"inherits": [
|
{
|
||||||
"base"
|
"name": "x64-release",
|
||||||
]
|
"displayName": "x64 Release",
|
||||||
},
|
"description": "Sets release build type",
|
||||||
{
|
"inherits": "win64",
|
||||||
"name": "x64-debug",
|
"cacheVariables": {
|
||||||
"displayName": "x64 Debug",
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
||||||
"description": "Sets debug build type and x64 arch",
|
}
|
||||||
"inherits": "win64",
|
|
||||||
"cacheVariables": {
|
|
||||||
"CMAKE_BUILD_TYPE": "Debug"
|
|
||||||
}
|
}
|
||||||
},
|
],
|
||||||
{
|
"buildPresets": [
|
||||||
"name": "x64-release",
|
{
|
||||||
"displayName": "x64 Release",
|
"name": "kicad",
|
||||||
"description": "Sets release build type",
|
"configurePreset": "x64-debug",
|
||||||
"inherits": "win64",
|
"configuration": "Debug",
|
||||||
"cacheVariables": {
|
"targets": [
|
||||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
|
"install"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"workflowPresets": [
|
||||||
|
{
|
||||||
|
"name": "kicad",
|
||||||
|
"description": "kicad",
|
||||||
|
"displayName": "kicad",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"type": "configure",
|
||||||
|
"name": "x64-debug"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"name": "kicad"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user