Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 31 additions & 95 deletions CMakeUserPresets.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"LLVM_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\install\\MSVC\\DebWithOpt",
"Clang_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\install\\MSVC\\DebWithOpt",
"LLVM_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\install\\MSVC\\Debug",
"Clang_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\install\\MSVC\\Debug",
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON",
"CMAKE_CXX_FLAGS": "/W4",
"CMAKE_C_FLAGS": "/W4"
Expand All @@ -34,17 +34,6 @@
}
}
},
{
"name": "debwithopt-msvc",
"displayName": "Debug with Optimizations MSVC",
"description": "Build on Windows + MSVC natively (Debug with optimizations). This is the preset typically used for development. CI tests it and generates LLVM binaries for it.",
"inherits": "debug-msvc",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"LLVM_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\DebWithOpt",
"Clang_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\DebWithOpt"
}
},
{
"name": "release-msvc",
"displayName": "Release MSVC",
Expand All @@ -57,29 +46,6 @@
"Clang_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\Release"
}
},
{
"name": "relwithdebinfo-msvc",
"displayName": "RelWithDebInfo MSVC",
"description": "Build on Windows + MSVC natively (RelWithDebInfo). This is the preset used for the release builds.",
"inherits": "debug-msvc",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"LLVM_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\Release",
"Clang_ROOT": "C:\\Users\\$env{USERNAME}\\Libraries\\llvm\\Release"
}
},
{
"name": "debwithopt-clang-cl",
"displayName": "Debug with Optimizations Clang-CL",
"description": "Build on Windows + Clang natively. Windows developers can use this preset to catch Clang-specific issues natively.",
"inherits": "debwithopt-msvc",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl.exe",
"CMAKE_CXX_COMPILER": "clang-cl.exe"
}
},
{
"name": "debug-wsl-gcc",
"displayName": "Debug WSL GCC",
Expand Down Expand Up @@ -117,18 +83,6 @@
"CMAKE_CXX_FLAGS": "-fsanitize=address -fno-omit-frame-pointer -g -O0 -fno-inline-functions"
}
},
{
"name": "debwithopt-wsl-gcc",
"displayName": "Debug with Optimizations WSL GCC",
"description": "Build on WSL + GCC (Debug with optimizations). Windows developers can use this preset to catch GCC-specific issues with WSL. WSL tends to be very slow, so this is not recommended for interactive development.",
"inherits": "debug-wsl-gcc",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"LLVM_ROOT": "/home/$env{USER}/libraries/llvm-project/llvm/install/Linux/Release",
"Clang_ROOT": "/home/$env{USER}/libraries/llvm-project/llvm/install/Linux/Release"
}
},
{
"name": "release-wsl-gcc",
"displayName": "Release WSL GCC",
Expand Down Expand Up @@ -171,7 +125,7 @@
},
{
"name": "debug-macos",
"displayName": "Debug macOS",
"displayName": "Debug (macOS)",
"description": "Preset for building MrDocs in Debug mode with the default compiler in macOS.",
"inherits": "debug",
"binaryDir": "${sourceDir}/build/${presetName}",
Expand All @@ -186,7 +140,8 @@
"MRDOCS_BUILD_TESTS": true,
"MRDOCS_BUILD_DOCS": false,
"MRDOCS_GENERATE_REFERENCE": false,
"MRDOCS_GENERATE_ANTORA_REFERENCE": false
"MRDOCS_GENERATE_ANTORA_REFERENCE": false,
"CMAKE_MAKE_PROGRAM": "$env{HOME}/Developer/cpp-libs/ninja/ninja"
},
"condition": {
"type": "equals",
Expand All @@ -195,39 +150,42 @@
},
"warnings": {
"unusedCli": false
}
},
"generator": "Ninja"
},
{
"name": "debwithopt-macos",
"displayName": "DebWithOpt macOS",
"description": "Preset for building MrDocs in DebWithOpt mode with the default compiler in macOS.",
"name": "debug-macos-fast",
"displayName": "Debug with Optimized Dependencies (macOS)",
"description": "Preset for building MrDocs in Debug mode with the default compiler in macOS.",
"inherits": "debug",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"LLVM_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/debwithopt",
"Clang_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/debwithopt",
"duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/debwithopt",
"Duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/debwithopt",
"LLVM_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/release",
"Clang_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/release",
"duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/release",
"Duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/release",
"libxml2_ROOT": "$env{HOME}/Developer/cpp-libs/libxml2/install/release",
"LibXml2_ROOT": "$env{HOME}/Developer/cpp-libs/libxml2/install/release",
"MRDOCS_BUILD_TESTS": true,
"MRDOCS_BUILD_DOCS": false,
"MRDOCS_GENERATE_REFERENCE": false,
"MRDOCS_GENERATE_ANTORA_REFERENCE": false
"MRDOCS_GENERATE_ANTORA_REFERENCE": false,
"CMAKE_MAKE_PROGRAM": "$env{HOME}/Developer/cpp-libs/ninja/ninja"
},
"warnings": {
"unusedCli": false
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
},
"warnings": {
"unusedCli": false
}
"generator": "Ninja"
},
{
"name": "release-macos",
"displayName": "Release macOS",
"displayName": "Release (macOS)",
"description": "Preset for building MrDocs in Release mode with the default compiler in macOS.",
"inherits": "release",
"binaryDir": "${sourceDir}/build/${presetName}",
Expand All @@ -242,7 +200,8 @@
"MRDOCS_BUILD_TESTS": true,
"MRDOCS_BUILD_DOCS": false,
"MRDOCS_GENERATE_REFERENCE": false,
"MRDOCS_GENERATE_ANTORA_REFERENCE": false
"MRDOCS_GENERATE_ANTORA_REFERENCE": false,
"CMAKE_MAKE_PROGRAM": "$env{HOME}/Developer/cpp-libs/ninja/ninja"
},
"condition": {
"type": "equals",
Expand All @@ -251,11 +210,12 @@
},
"warnings": {
"unusedCli": false
}
},
"generator": "Ninja"
},
{
"name": "release-macos-gcc",
"displayName": "Release macOS (gcc)",
"displayName": "Release (macOS) (gcc)",
"description": "Preset for building MrDocs in Release mode with the gcc compiler in macOS.",
"inherits": "release",
"binaryDir": "${sourceDir}/build/${presetName}",
Expand All @@ -270,7 +230,10 @@
"MRDOCS_BUILD_TESTS": true,
"MRDOCS_BUILD_DOCS": false,
"MRDOCS_GENERATE_REFERENCE": false,
"MRDOCS_GENERATE_ANTORA_REFERENCE": false
"MRDOCS_GENERATE_ANTORA_REFERENCE": false,
"CMAKE_C_COMPILER": "/usr/bin/gcc",
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
"CMAKE_MAKE_PROGRAM": "$env{HOME}/Developer/cpp-libs/ninja/ninja"
},
"warnings": {
"unusedCli": false
Expand All @@ -279,35 +242,8 @@
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "debug-macos-fast",
"displayName": "Debug with Optimized Dependencies (macOS)",
"description": "Preset for building MrDocs in Debug mode with the default compiler in macOS.",
"inherits": "debug",
"binaryDir": "${sourceDir}/build/${presetName}",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"LLVM_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/release",
"Clang_ROOT": "$env{HOME}/Developer/cpp-libs/llvm-project/install/release",
"duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/release",
"Duktape_ROOT": "$env{HOME}/Developer/cpp-libs/duktape/install/release",
"libxml2_ROOT": "$env{HOME}/Developer/cpp-libs/libxml2/install/release",
"LibXml2_ROOT": "$env{HOME}/Developer/cpp-libs/libxml2/install/release",
"MRDOCS_BUILD_TESTS": true,
"MRDOCS_BUILD_DOCS": false,
"MRDOCS_GENERATE_REFERENCE": false,
"MRDOCS_GENERATE_ANTORA_REFERENCE": false
},
"warnings": {
"unusedCli": false
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
"generator": "Ninja"
}
]
}
Loading
Loading