mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
CMake: Add a CMakePresets.json to make IDE integration easier
This commit is contained in:
parent
66d91fa08c
commit
74e82b57cf
Notes:
sideshowbarker
2024-07-17 06:24:08 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/74e82b57cf Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/34 Reviewed-by: https://github.com/trflynn89
58
CMakePresets.json
Normal file
58
CMakePresets.json
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
{
|
||||||
|
"version": 6,
|
||||||
|
"cmakeMinimumRequired": {
|
||||||
|
"major": 3,
|
||||||
|
"minor": 25,
|
||||||
|
"patch": 0
|
||||||
|
},
|
||||||
|
"configurePresets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"displayName": "Default Config",
|
||||||
|
"description": "Default build using Ninja generator",
|
||||||
|
"generator": "Ninja",
|
||||||
|
"binaryDir": "${sourceDir}/Build/ladybird",
|
||||||
|
"cacheVariables": {
|
||||||
|
"SERENITY_CACHE_DIR": "${sourceDir}/Build/caches"
|
||||||
|
},
|
||||||
|
"environment": {
|
||||||
|
"LADYBIRD_SOURCE_DIR": "${sourceDir}"
|
||||||
|
},
|
||||||
|
"vendor": {
|
||||||
|
"jetbrains.com/clion": {
|
||||||
|
"toolchain": "Default"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sanitizer",
|
||||||
|
"inherits": "default",
|
||||||
|
"displayName": "Sanitizer Config",
|
||||||
|
"description": "Debug build using Sanitizers",
|
||||||
|
"binaryDir": "${sourceDir}/Build/ladybird-sanitizers",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": "Debug",
|
||||||
|
"ENABLE_UNDEFINED_SANITIZER": "ON",
|
||||||
|
"ENABLE_ADDRESS_SANITIZER": "ON"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testPresets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"configurePreset": "default",
|
||||||
|
"output": {
|
||||||
|
"outputOnFailure": true
|
||||||
|
},
|
||||||
|
"execution": {
|
||||||
|
"noTestsAction": "error",
|
||||||
|
"stopOnFailure": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sanitizer",
|
||||||
|
"inherits": "default",
|
||||||
|
"configurePreset": "Sanitizer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user