2023-01-02 18:21:08 +00:00
|
|
|
{
|
|
|
|
"version": 6,
|
|
|
|
"cmakeMinimumRequired": {
|
|
|
|
"major": 3,
|
|
|
|
"minor": 19,
|
|
|
|
"patch": 0
|
|
|
|
},
|
|
|
|
"configurePresets": [
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "gcc-base",
|
|
|
|
"displayName": "GCC Base",
|
|
|
|
"description": "Base preset for GCC. Only for inheriting from.",
|
2023-01-02 18:21:08 +00:00
|
|
|
"hidden": true,
|
|
|
|
"binaryDir": "${sourceDir}/build"
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "clang-base",
|
|
|
|
"displayName": "Base",
|
|
|
|
"description": "Base preset for Clang. Only for inheriting from.",
|
2023-01-02 18:21:08 +00:00
|
|
|
"hidden": true,
|
2023-01-04 01:37:32 +00:00
|
|
|
"binaryDir": "${sourceDir}/build",
|
|
|
|
"generator": "Ninja",
|
2023-01-02 19:11:39 +00:00
|
|
|
"cacheVariables": {
|
2023-01-04 01:37:32 +00:00
|
|
|
"CMAKE_EXE_LINKER_FLAGS_INIT": "-fuse-ld=lld",
|
|
|
|
"CMAKE_MODULE_LINKER_FLAGS_INIT": "-fuse-ld=lld",
|
|
|
|
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-fuse-ld=lld",
|
2023-01-02 19:11:39 +00:00
|
|
|
"CMAKE_C_COMPILER": "clang",
|
|
|
|
"CMAKE_CXX_COMPILER": "clang++"
|
2023-01-02 18:21:08 +00:00
|
|
|
}
|
|
|
|
},
|
2023-01-04 01:37:32 +00:00
|
|
|
{
|
|
|
|
"name": "lto",
|
|
|
|
"displayName": "Default Profile using clang/ninja & lto.",
|
|
|
|
"description": "Release lto build using ninja & clang.",
|
|
|
|
"inherits": "clang-base",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON",
|
|
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
|
|
}
|
|
|
|
},
|
2023-01-02 18:21:08 +00:00
|
|
|
{
|
|
|
|
"name": "ninja-multi",
|
|
|
|
"displayName": "Ninja Multi Config",
|
|
|
|
"description": "Generate multiple ninja build files.",
|
2023-01-04 01:37:32 +00:00
|
|
|
"inherits": "gcc-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"generator": "Ninja Multi-Config"
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "gcc-debug",
|
|
|
|
"displayName": "GCC Debug",
|
|
|
|
"description": "GCC Debug build with make.",
|
|
|
|
"inherits": "gcc-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"generator": "Unix Makefiles",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "gcc-devel",
|
|
|
|
"displayName": "GCC Devel",
|
|
|
|
"description": "GCC Developer build using make.",
|
|
|
|
"inherits": "gcc-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"generator": "Unix Makefiles",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Devel"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "gcc-release",
|
|
|
|
"displayName": "GCC Release",
|
|
|
|
"description": "GCC Release build using make.",
|
|
|
|
"inherits": "gcc-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"generator": "Unix Makefiles",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "gcc-debug-ninja",
|
|
|
|
"displayName": "GCC Debug Ninja",
|
2023-01-02 18:21:08 +00:00
|
|
|
"description": "Debug build using ninja.",
|
2023-01-04 01:37:32 +00:00
|
|
|
"inherits": "gcc-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"generator": "Ninja",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "gcc-devel-ninja",
|
|
|
|
"displayName": "GCC Devel Ninja",
|
|
|
|
"description": "GCC Developer build using ninja.",
|
|
|
|
"inherits": "gcc-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"generator": "Ninja",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Devel"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2023-01-04 01:37:32 +00:00
|
|
|
"name": "gcc-release-ninja",
|
|
|
|
"displayName": "GCC Release Ninja",
|
|
|
|
"description": "GCC Release build using ninja.",
|
|
|
|
"inherits": "gcc-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"generator": "Ninja",
|
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "clang-debug",
|
|
|
|
"displayName": "Clang Debug",
|
|
|
|
"description": "Debug build using ninja and clang.",
|
2023-01-04 01:37:32 +00:00
|
|
|
"inherits": "clang-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Debug"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "clang-devel",
|
|
|
|
"displayName": "Clang Devel",
|
|
|
|
"description": "Developer build using ninja & clang.",
|
2023-01-04 01:37:32 +00:00
|
|
|
"inherits": "clang-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Devel"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "clang-release",
|
|
|
|
"displayName": "Clang Release",
|
|
|
|
"description": "Release build using ninja & clang.",
|
2023-01-04 01:37:32 +00:00
|
|
|
"inherits": "clang-base",
|
2023-01-02 18:21:08 +00:00
|
|
|
"cacheVariables": {
|
|
|
|
"CMAKE_BUILD_TYPE": "Release"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|