mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Add CMake preset for ARM64 cross compilation build
This commit is contained in:
parent
279d5145ba
commit
19c47e6b44
@ -42,6 +42,20 @@
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Linux"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "linux-cross-arm64",
|
||||
"inherits": "defaults",
|
||||
"generator": "Ninja Multi-Config",
|
||||
"condition": {
|
||||
"type": "equals",
|
||||
"lhs": "${hostSystemName}",
|
||||
"rhs": "Linux"
|
||||
},
|
||||
"cacheVariables": {
|
||||
"VCPKG_TARGET_TRIPLET": "arm64-linux",
|
||||
"CMAKE_TOOLCHAIN_FILE": "${sourceDir}/cmake/toolchains/linux-aarch64-gcc-toolchain.cmake"
|
||||
}
|
||||
}
|
||||
],
|
||||
"buildPresets": [
|
||||
@ -56,6 +70,10 @@
|
||||
{
|
||||
"name": "linux",
|
||||
"configurePreset": "linux"
|
||||
},
|
||||
{
|
||||
"name": "linux-cross-arm64",
|
||||
"configurePreset": "linux-cross-arm64"
|
||||
}
|
||||
],
|
||||
"testPresets": [
|
||||
@ -85,4 +103,4 @@
|
||||
"configurePreset": "linux"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user