Skip to content

Commit

Permalink
Cmake: Add presets for building Arch Linux package
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasperal committed Aug 18, 2024
1 parent f37a841 commit 6f38f0d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"include": [
"cmake/presets/Linux.json",
"cmake/presets/Arch_Linux.json",
"cmake/presets/MSYS2.json",
"cmake/presets/MSVC.json",
"cmake/presets/CI/Linux.json",
Expand Down
55 changes: 55 additions & 0 deletions cmake/presets/Arch_Linux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"version": 6,
"include": [
"Base_configurations.json",
"Linux.json"
],
"configurePresets": [
{
"name": "arch-linux-release",
"inherits": ["linux", "release"],
"displayName": "Arch Linux Release",
"description": "Configuration for Arch Linux Release builds",
"binaryDir": "${sourceDir}/../build",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "/usr"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
}
],
"buildPresets": [
{
"name": "arch-linux-release",
"configurePreset": "arch-linux-release",
"displayName": "Arch Linux Release",
"description": "Cmake build configuration for Arch Linux Release builds",
"jobs": 4,
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
}
],
"workflowPresets": [
{
"name": "arch-linux-release",
"displayName": "Arch Linux Release",
"description": "Workflow for Arch Linux Release builds",
"steps": [
{
"type": "configure",
"name": "arch-linux-release"
},
{
"type": "build",
"name": "arch-linux-release"
}
]
}
]
}

0 comments on commit 6f38f0d

Please sign in to comment.