Skip to content

Commit

Permalink
Convert CMakeSettings.json to CMakePresets.json for coreclr (dotnet#8…
Browse files Browse the repository at this point in the history
  • Loading branch information
huoyaoyuan authored Aug 7, 2023
1 parent 8917ca2 commit c37f6c3
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 78 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ Vagrantfile
CMakeFiles/
cmake_install.cmake
CMakeCache.txt
CMakeUserPresets.json

# Cross compilation
cross/rootfs/*
Expand Down
169 changes: 169 additions & 0 deletions src/coreclr/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
{
"version": 2,
"cmakeMinimumRequired": {
"major": 3,
"minor": 20
},
"configurePresets": [
{
"name": "base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/../../artifacts/obj/coreclr/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/../../artifacts/bin/coreclr/${presetName}"
}
},
{
"name": "windows-base",
"hidden": true,
"inherits": "base",
"cacheVariables": {
"CLR_CMAKE_TARGET_OS": "windows",
"CLI_CMAKE_FALLBACK_OS": "win10"
},
"vendor": {
"microsoft.com/VisualStudioSettings/CMake/1.0": {
"hostOS": [
"Windows"
]
}
}
},
{
"name": "Debug",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "Release",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "Checked",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Checked"
}
},
{
"name": "x64",
"hidden": true,
"architecture": {
"value": "x64",
"strategy": "external"
},
"cacheVariables": {
"CLR_CMAKE_HOST_ARCH": "x64"
}
},
{
"name": "x86",
"hidden": true,
"architecture": {
"value": "x86",
"strategy": "external"
},
"cacheVariables": {
"CLR_CMAKE_HOST_ARCH": "x86"
}
},
{
"name": "ARM64",
"hidden": true,
"architecture": {
"value": "ARM64",
"strategy": "external"
},
"cacheVariables": {
"CLR_CMAKE_HOST_ARCH": "ARM64"
}
},
{
"name": "windows.x64.Debug",
"displayName": "windows.x64.Debug",
"inherits": [
"windows-base",
"Debug",
"x64"
]
},
{
"name": "windows.x64.Release",
"displayName": "windows.x64.Release",
"inherits": [
"windows-base",
"Release",
"x64"
]
},
{
"name": "windows.x64.Checked",
"displayName": "windows.x64.Checked",
"inherits": [
"windows-base",
"Checked",
"x64"
]
},
{
"name": "windows.x86.Debug",
"displayName": "windows.x86.Debug",
"inherits": [
"windows-base",
"Debug",
"x86"
]
},
{
"name": "windows.x86.Release",
"displayName": "windows.x86.Release",
"inherits": [
"windows-base",
"Release",
"x86"
]
},
{
"name": "windows.x86.Checked",
"displayName": "windows.x86.Checked",
"inherits": [
"windows-base",
"Checked",
"x86"
]
},
{
"name": "windows.arm64.Debug",
"displayName": "windows.arm64.Debug",
"inherits": [
"windows-base",
"Debug",
"ARM64"
]
},
{
"name": "windows.arm64.Release",
"displayName": "windows.arm64.Release",
"inherits": [
"windows-base",
"Release",
"ARM64"
]
},
{
"name": "windows.arm64.Checked",
"displayName": "windows.arm64.Checked",
"inherits": [
"windows-base",
"Checked",
"ARM64"
]
}
]
}
78 changes: 0 additions & 78 deletions src/coreclr/CMakeSettings.json

This file was deleted.

0 comments on commit c37f6c3

Please sign in to comment.