2024-06-03 21:33:28 +00: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": {
|
2024-06-17 12:49:56 +00:00
|
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
2024-06-06 22:35:08 +00:00
|
|
|
"SERENITY_CACHE_DIR": "${sourceDir}/Build/caches",
|
|
|
|
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/Toolchain/Tarballs/vcpkg/scripts/buildsystems/vcpkg.cmake",
|
2024-06-27 15:00:13 +00:00
|
|
|
"VCPKG_INSTALL_OPTIONS": "--no-print-usage",
|
|
|
|
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/Meta/CMake/vcpkg/release-triplets"
|
2024-06-03 21:33:28 +00:00
|
|
|
},
|
|
|
|
"environment": {
|
2024-06-06 15:57:52 +00:00
|
|
|
"LADYBIRD_SOURCE_DIR": "${sourceDir}",
|
2024-06-06 22:35:08 +00:00
|
|
|
"VCPKG_ROOT": "${sourceDir}/Toolchain/Tarballs/vcpkg",
|
|
|
|
"VCPKG_BINARY_SOURCES": "clear;files,${sourceDir}/Toolchain/Build/vcpkg-binary-cache,readwrite"
|
2024-06-03 21:33:28 +00:00
|
|
|
},
|
|
|
|
"vendor": {
|
|
|
|
"jetbrains.com/clion": {
|
|
|
|
"toolchain": "Default"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-06-06 20:55:14 +00:00
|
|
|
{
|
2024-06-28 14:16:37 +00:00
|
|
|
"name": "Debug",
|
|
|
|
"inherits": "default",
|
|
|
|
"displayName": "Debug Config",
|
|
|
|
"description": "Debug build using Ninja generator",
|
|
|
|
"binaryDir": "${sourceDir}/Build/ladybird-debug",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
|
|
|
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/Meta/CMake/vcpkg/debug-triplets"
|
2024-06-06 20:55:14 +00:00
|
|
|
}
|
|
|
|
},
|
2024-06-03 21:33:28 +00:00
|
|
|
{
|
|
|
|
"name": "Sanitizer",
|
2024-06-28 14:16:37 +00:00
|
|
|
"inherits": "Debug",
|
2024-06-03 21:33:28 +00:00
|
|
|
"displayName": "Sanitizer Config",
|
|
|
|
"description": "Debug build using Sanitizers",
|
|
|
|
"binaryDir": "${sourceDir}/Build/ladybird-sanitizers",
|
|
|
|
"cacheVariables": {
|
|
|
|
"ENABLE_UNDEFINED_SANITIZER": "ON",
|
2024-06-14 16:14:37 +00:00
|
|
|
"ENABLE_ADDRESS_SANITIZER": "ON",
|
|
|
|
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/Meta/CMake/vcpkg/sanitizer-triplets"
|
2024-06-03 21:33:28 +00:00
|
|
|
}
|
2024-06-06 20:55:14 +00:00
|
|
|
},
|
2024-06-28 14:16:37 +00:00
|
|
|
{
|
|
|
|
"hidden": true,
|
|
|
|
"name": "vcpkg_ci",
|
|
|
|
"description": "Use the GitHub Actions vcpkg cache",
|
|
|
|
"environment": {
|
|
|
|
"VCPKG_BINARY_SOURCES": "clear;x-gha,readwrite"
|
|
|
|
}
|
|
|
|
},
|
2024-06-06 20:55:14 +00:00
|
|
|
{
|
|
|
|
"name": "CI",
|
|
|
|
"inherits": ["vcpkg_ci", "default" ],
|
|
|
|
"displayName": "Non-Sanitizer CI Config"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Sanitizer_CI",
|
|
|
|
"inherits": ["vcpkg_ci", "Sanitizer" ],
|
|
|
|
"displayName": "Sanitizer CI Config",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Fuzzers_CI",
|
|
|
|
"inherits": ["vcpkg_ci", "default" ],
|
|
|
|
"displayName": "Fuzzers Config",
|
|
|
|
"description": "Fuzzers build with GitHub Actions cache",
|
|
|
|
"binaryDir": "${sourceDir}/Build/ladybird-fuzzers",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "",
|
|
|
|
"ENABLE_QT": "OFF",
|
|
|
|
"ENABLE_FUZZERS_LIBFUZZER": "ON",
|
|
|
|
"ENABLE_ADDRESS_SANITIZER": "ON"
|
|
|
|
}
|
2024-06-03 21:33:28 +00:00
|
|
|
}
|
|
|
|
],
|
2024-06-04 22:27:48 +00: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-03 21:33:28 +00:00
|
|
|
"testPresets": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"configurePreset": "default",
|
|
|
|
"output": {
|
|
|
|
"outputOnFailure": true
|
|
|
|
},
|
|
|
|
"execution": {
|
|
|
|
"noTestsAction": "error",
|
|
|
|
"stopOnFailure": true
|
2024-06-04 22:27:48 +00:00
|
|
|
},
|
|
|
|
"environment": {
|
|
|
|
"LADYBIRD_SOURCE_DIR": "${sourceDir}"
|
2024-06-03 21:33:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Sanitizer",
|
|
|
|
"inherits": "default",
|
2024-06-04 22:27:48 +00: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-03 21:33:28 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|