mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: Add a debug build CMake preset
Since the default mode now only builds release vcpkg libraries, having an easy-to-create debug build will be convenient.
This commit is contained in:
parent
1c2aef9255
commit
d9470d6a93
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/d9470d6a93 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/305 Reviewed-by: https://github.com/ADKaster ✅
5 changed files with 32 additions and 13 deletions
|
@ -30,6 +30,29 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "Sanitizer",
|
||||
"inherits": "Debug",
|
||||
"displayName": "Sanitizer Config",
|
||||
"description": "Debug build using Sanitizers",
|
||||
"binaryDir": "${sourceDir}/Build/ladybird-sanitizers",
|
||||
"cacheVariables": {
|
||||
"ENABLE_UNDEFINED_SANITIZER": "ON",
|
||||
"ENABLE_ADDRESS_SANITIZER": "ON",
|
||||
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/Meta/CMake/vcpkg/sanitizer-triplets"
|
||||
}
|
||||
},
|
||||
{
|
||||
"hidden": true,
|
||||
"name": "vcpkg_ci",
|
||||
|
@ -38,19 +61,6 @@
|
|||
"VCPKG_BINARY_SOURCES": "clear;x-gha,readwrite"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"VCPKG_OVERLAY_TRIPLETS": "${sourceDir}/Meta/CMake/vcpkg/sanitizer-triplets"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "CI",
|
||||
"inherits": ["vcpkg_ci", "default" ],
|
||||
|
|
2
Meta/CMake/vcpkg/debug-triplets/arm64-osx.cmake
Normal file
2
Meta/CMake/vcpkg/debug-triplets/arm64-osx.cmake
Normal file
|
@ -0,0 +1,2 @@
|
|||
include (${CMAKE_CURRENT_LIST_DIR}/../base-triplets/arm64-osx.cmake)
|
||||
include (${CMAKE_CURRENT_LIST_DIR}/debug.cmake)
|
3
Meta/CMake/vcpkg/debug-triplets/debug.cmake
Normal file
3
Meta/CMake/vcpkg/debug-triplets/debug.cmake
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Ideally, we would set VCPKG_BUILD_TYPE="debug", but that is currently not supported as a standalone build type.
|
||||
# See: https://github.com/microsoft/vcpkg/issues/38224
|
||||
set(VCPKG_LIBRARY_LINKAGE static)
|
2
Meta/CMake/vcpkg/debug-triplets/x64-linux.cmake
Normal file
2
Meta/CMake/vcpkg/debug-triplets/x64-linux.cmake
Normal file
|
@ -0,0 +1,2 @@
|
|||
include (${CMAKE_CURRENT_LIST_DIR}/../base-triplets/x64-linux.cmake)
|
||||
include (${CMAKE_CURRENT_LIST_DIR}/debug.cmake)
|
2
Meta/CMake/vcpkg/debug-triplets/x64-osx.cmake
Normal file
2
Meta/CMake/vcpkg/debug-triplets/x64-osx.cmake
Normal file
|
@ -0,0 +1,2 @@
|
|||
include (${CMAKE_CURRENT_LIST_DIR}/../base-triplets/x64-osx.cmake)
|
||||
include (${CMAKE_CURRENT_LIST_DIR}/debug.cmake)
|
Loading…
Reference in a new issue