mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 14:09:02 +07:00
basic local windows presets
This commit is contained in:
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
* text=auto
|
||||||
|
|
||||||
|
*.sh text eol=lf
|
||||||
|
*.bat text eol=crlf
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
# 3.12 version is required for `cxx_std_20`
|
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
|
||||||
cmake_minimum_required(VERSION 3.12 FATAL_ERROR)
|
|
||||||
|
|
||||||
if(NOT DEFINED PROJECT_NAME)
|
if(NOT DEFINED PROJECT_NAME)
|
||||||
set(BUILD_AS_STANDALONE ON)
|
set(BUILD_AS_STANDALONE ON)
|
||||||
|
|||||||
@@ -21,7 +21,12 @@
|
|||||||
{
|
{
|
||||||
"name": "macos-base",
|
"name": "macos-base",
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"inherits": "ninja-base"
|
"inherits": "ninja-base",
|
||||||
|
"condition": {
|
||||||
|
"type": "equals",
|
||||||
|
"lhs": "${hostSystemName}",
|
||||||
|
"rhs": "Darwin"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "macos-arm64",
|
"name": "macos-arm64",
|
||||||
@@ -52,6 +57,48 @@
|
|||||||
"cacheVariables": {
|
"cacheVariables": {
|
||||||
"BUILD_WITH_SANITIZERS": true
|
"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",
|
"name": "macos-x64-release",
|
||||||
"configuration": "Release",
|
"configuration": "Release",
|
||||||
"configurePreset": "macos-x64"
|
"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",
|
"name": "macos-x64-release",
|
||||||
"configuration": "Release",
|
"configuration": "Release",
|
||||||
"configurePreset": "macos-x64"
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user