2024-06-03 21:33:28 +00:00
|
|
|
{
|
|
|
|
"version": 6,
|
|
|
|
"cmakeMinimumRequired": {
|
|
|
|
"major": 3,
|
|
|
|
"minor": 25,
|
|
|
|
"patch": 0
|
|
|
|
},
|
|
|
|
"configurePresets": [
|
|
|
|
{
|
2024-10-09 02:33:33 +00:00
|
|
|
"hidden": true,
|
|
|
|
"name": "default_base",
|
2024-06-03 21:33:28 +00:00
|
|
|
"displayName": "Default Config",
|
2024-07-17 17:03:09 +00:00
|
|
|
"binaryDir": "${fileDir}/Build/ladybird",
|
2024-06-03 21:33:28 +00:00
|
|
|
"cacheVariables": {
|
2024-06-17 12:49:56 +00:00
|
|
|
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
2024-07-17 17:03:09 +00:00
|
|
|
"SERENITY_CACHE_DIR": "${fileDir}/Build/caches",
|
2024-10-13 03:57:53 +00:00
|
|
|
"CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake",
|
2024-06-27 15:00:13 +00:00
|
|
|
"VCPKG_INSTALL_OPTIONS": "--no-print-usage",
|
2024-07-17 17:03:09 +00:00
|
|
|
"VCPKG_OVERLAY_TRIPLETS": "${fileDir}/Meta/CMake/vcpkg/release-triplets"
|
2024-06-03 21:33:28 +00:00
|
|
|
},
|
|
|
|
"environment": {
|
2024-07-17 17:03:09 +00:00
|
|
|
"LADYBIRD_SOURCE_DIR": "${fileDir}",
|
|
|
|
"VCPKG_ROOT": "${fileDir}/Toolchain/Tarballs/vcpkg",
|
2024-10-13 03:57:53 +00:00
|
|
|
"VCPKG_BINARY_SOURCES": "clear;files,${fileDir}/Toolchain/Build/vcpkg-binary-cache,readwrite;$penv{VCPKG_BINARY_SOURCES}"
|
2024-06-03 21:33:28 +00:00
|
|
|
},
|
|
|
|
"vendor": {
|
|
|
|
"jetbrains.com/clion": {
|
|
|
|
"toolchain": "Default"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2024-10-09 02:33:33 +00:00
|
|
|
{
|
|
|
|
"hidden": true,
|
|
|
|
"name": "windows",
|
|
|
|
"description": "Visual Studio IDE config (experimental)",
|
|
|
|
"architecture": {
|
|
|
|
"value": "x64",
|
|
|
|
"strategy": "external"
|
|
|
|
},
|
|
|
|
"cacheVariables": {
|
|
|
|
"ENABLE_QT": "OFF"
|
|
|
|
},
|
|
|
|
"vendor": {
|
|
|
|
"microsoft.com/VisualStudioSettings/CMake/1.0": {
|
|
|
|
"intelliSenseMode": "windows-clang-x64"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"condition": {
|
|
|
|
"type": "equals",
|
|
|
|
"lhs": "${hostSystemName}",
|
|
|
|
"rhs": "Windows"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"description": "Default build using Ninja generator",
|
|
|
|
"generator": "Ninja",
|
|
|
|
"inherits": "default_base",
|
|
|
|
"condition": {
|
|
|
|
"type": "notEquals",
|
|
|
|
"lhs": "${hostSystemName}",
|
|
|
|
"rhs": "Windows"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows_ninja",
|
|
|
|
"displayName": "Default with ClangCL and Ninja",
|
|
|
|
"description": "Windows build using Ninja generator (experimental)",
|
|
|
|
"inherits": [
|
|
|
|
"default_base",
|
|
|
|
"windows"
|
|
|
|
],
|
|
|
|
"generator": "Ninja",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_C_COMPILER": "clang-cl",
|
|
|
|
"CMAKE_CXX_COMPILER": "clang-cl"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows_msbuild",
|
|
|
|
"displayName": "Default with ClangCL and MSBuild",
|
|
|
|
"description": "Default build using Visual Studio generator (experimental)",
|
|
|
|
"inherits": [
|
|
|
|
"default_base",
|
|
|
|
"windows"
|
|
|
|
],
|
|
|
|
"generator": "Visual Studio 17 2022",
|
|
|
|
"toolset": "ClangCL"
|
|
|
|
},
|
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",
|
2024-07-17 17:03:09 +00:00
|
|
|
"binaryDir": "${fileDir}/Build/ladybird-debug",
|
2024-06-28 14:16:37 +00:00
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug",
|
2024-07-17 17:03:09 +00:00
|
|
|
"VCPKG_OVERLAY_TRIPLETS": "${fileDir}/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",
|
2024-07-17 17:03:09 +00:00
|
|
|
"binaryDir": "${fileDir}/Build/ladybird-sanitizers",
|
2024-06-03 21:33:28 +00:00
|
|
|
"cacheVariables": {
|
|
|
|
"ENABLE_UNDEFINED_SANITIZER": "ON",
|
2024-06-14 16:14:37 +00:00
|
|
|
"ENABLE_ADDRESS_SANITIZER": "ON",
|
2024-07-17 17:03:09 +00:00
|
|
|
"VCPKG_OVERLAY_TRIPLETS": "${fileDir}/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",
|
2024-10-09 02:33:33 +00:00
|
|
|
"inherits": [
|
|
|
|
"vcpkg_ci",
|
|
|
|
"default"
|
|
|
|
],
|
2024-06-06 20:55:14 +00:00
|
|
|
"displayName": "Non-Sanitizer CI Config"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Sanitizer_CI",
|
2024-10-09 02:33:33 +00:00
|
|
|
"inherits": [
|
|
|
|
"vcpkg_ci",
|
|
|
|
"Sanitizer"
|
|
|
|
],
|
2024-06-06 20:55:14 +00:00
|
|
|
"displayName": "Sanitizer CI Config",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Fuzzers_CI",
|
2024-10-09 02:33:33 +00:00
|
|
|
"inherits": [
|
|
|
|
"vcpkg_ci",
|
|
|
|
"default"
|
|
|
|
],
|
2024-06-06 20:55:14 +00:00
|
|
|
"displayName": "Fuzzers Config",
|
|
|
|
"description": "Fuzzers build with GitHub Actions cache",
|
2024-07-17 17:03:09 +00:00
|
|
|
"binaryDir": "${fileDir}/Build/ladybird-fuzzers",
|
2024-06-06 20:55:14 +00:00
|
|
|
"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"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-10-09 02:33:33 +00:00
|
|
|
"name": "windows_msbuild",
|
|
|
|
"configurePreset": "windows_msbuild",
|
|
|
|
"displayName": "Build",
|
|
|
|
"description": "Build the project",
|
|
|
|
"targets": [
|
|
|
|
"ALL_BUILD"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "windows_ninja",
|
|
|
|
"configurePreset": "windows_ninja",
|
|
|
|
"displayName": "Build",
|
|
|
|
"description": "Build the project",
|
|
|
|
"targets": [
|
|
|
|
"all"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2024-06-04 22:27:48 +00:00
|
|
|
"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": {
|
2024-07-17 17:03:09 +00:00
|
|
|
"LADYBIRD_SOURCE_DIR": "${fileDir}"
|
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-08-28 05:54:49 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug",
|
|
|
|
"inherits": "default",
|
|
|
|
"configurePreset": "Debug"
|
2024-06-03 21:33:28 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|