2024-06-04 00:33:28 +03:00
|
|
|
{
|
|
|
|
"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": {
|
2024-06-06 18:57:52 +03:00
|
|
|
"LADYBIRD_SOURCE_DIR": "${sourceDir}",
|
|
|
|
"VCPKG_ROOT": "${sourceDir}/Toolchain/Tarballs/vcpkg"
|
2024-06-04 00:33:28 +03:00
|
|
|
},
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2024-06-05 01:27:48 +03:00
|
|
|
"buildPresets": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"configurePreset": "default",
|
|
|
|
"displayName": "Build",
|
|
|
|
"description": "Build the project",
|
|
|
|
"targets": [
|
|
|
|
"all"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Sanitizer",
|
|
|
|
"configurePreset": "Sanitizer",
|
|
|
|
"displayName": "Build with Sanitizers",
|
|
|
|
"description": "Build the project with Sanitizers",
|
|
|
|
"targets": [
|
|
|
|
"all"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
2024-06-04 00:33:28 +03:00
|
|
|
"testPresets": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"configurePreset": "default",
|
|
|
|
"output": {
|
|
|
|
"outputOnFailure": true
|
|
|
|
},
|
|
|
|
"execution": {
|
|
|
|
"noTestsAction": "error",
|
|
|
|
"stopOnFailure": true
|
2024-06-05 01:27:48 +03:00
|
|
|
},
|
|
|
|
"environment": {
|
|
|
|
"LADYBIRD_SOURCE_DIR": "${sourceDir}"
|
2024-06-04 00:33:28 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Sanitizer",
|
|
|
|
"inherits": "default",
|
2024-06-05 01:27:48 +03:00
|
|
|
"configurePreset": "Sanitizer",
|
|
|
|
"environment": {
|
|
|
|
"ASAN_OPTIONS": "strict_string_checks=1:check_initialization_order=1:strict_init_order=1:detect_stack_use_after_return=1:allocator_may_return_null=1",
|
|
|
|
"UBSAN_OPTIONS": "print_stacktrace=1:print_summary=1:halt_on_error=1"
|
|
|
|
}
|
2024-06-04 00:33:28 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|