basic local windows presets

This commit is contained in:
BlackMATov
2022-10-29 20:23:12 +07:00
parent 47fa6862e3
commit f0e95a8037
3 changed files with 93 additions and 3 deletions

4
.gitattributes vendored Normal file
View File

@@ -0,0 +1,4 @@
* text=auto
*.sh text eol=lf
*.bat text eol=crlf

View File

@@ -1,5 +1,4 @@
# 3.12 version is required for `cxx_std_20`
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
if(NOT DEFINED PROJECT_NAME)
set(BUILD_AS_STANDALONE ON)

View File

@@ -21,7 +21,12 @@
{
"name": "macos-base",
"hidden": true,
"inherits": "ninja-base"
"inherits": "ninja-base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Darwin"
}
},
{
"name": "macos-arm64",
@@ -52,6 +57,48 @@
"cacheVariables": {
"BUILD_WITH_SANITIZERS": true
}
},
{
"name": "windows-base",
"hidden": true,
"inherits": "ninja-base",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
},
{
"name": "windows-x86",
"inherits": "windows-base",
"architecture": {
"value": "x86",
"strategy": "external"
},
"toolset": {
"value": "host=x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
},
{
"name": "windows-x64",
"inherits": "windows-base",
"architecture": {
"value": "x64",
"strategy": "external"
},
"toolset": {
"value": "host=x64",
"strategy": "external"
},
"cacheVariables": {
"CMAKE_C_COMPILER": "cl",
"CMAKE_CXX_COMPILER": "cl"
}
}
],
@@ -75,6 +122,26 @@
"name": "macos-x64-release",
"configuration": "Release",
"configurePreset": "macos-x64"
},
{
"name": "windows-x86-debug",
"configuration": "Debug",
"configurePreset": "windows-x86"
},
{
"name": "windows-x86-release",
"configuration": "Release",
"configurePreset": "windows-x86"
},
{
"name": "windows-x64-debug",
"configuration": "Debug",
"configurePreset": "windows-x64"
},
{
"name": "windows-x64-release",
"configuration": "Release",
"configurePreset": "windows-x64"
}
],
@@ -98,6 +165,26 @@
"name": "macos-x64-release",
"configuration": "Release",
"configurePreset": "macos-x64"
},
{
"name": "windows-x86-debug",
"configuration": "Debug",
"configurePreset": "windows-x86"
},
{
"name": "windows-x86-release",
"configuration": "Release",
"configurePreset": "windows-x86"
},
{
"name": "windows-x64-debug",
"configuration": "Debug",
"configurePreset": "windows-x64"
},
{
"name": "windows-x64-release",
"configuration": "Release",
"configurePreset": "windows-x64"
}
]
}