Files
lifting-bits-remill/CMakePresets.json
T
Alex Cameron a8ead7b584 Move to explicitly setting CMake toolchain file (#639)
* Move to CMake toolchain file

* Update docs and scripts

* Fix `build.sh` to manually specify the `VCPKG_TARGET_TRIPLET`

* Use x64 instead of amd64 in the VCPKG target triplet

* Remove references to VCPKG in Remill config

* Update cmake/remillConfig.cmake.in

Co-authored-by: Eric Kilmer <eric.d.kilmer@gmail.com>

* Update cmake/remillConfig.cmake.in

Co-authored-by: Eric Kilmer <eric.d.kilmer@gmail.com>

* Fix suggested edit

* Stop specifying compilers in CMake presets

* Fix typo

* Remove trailing comma from JSON file

Co-authored-by: Eric Kilmer <eric.d.kilmer@gmail.com>
2022-12-02 15:45:48 +11:00

132 lines
4.4 KiB
JSON

{
"version": 3,
"cmakeMinimumRequired": {
"major": 3,
"minor": 19,
"patch": 0
},
"configurePresets": [
{
"name": "debug-flags",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS": "-fno-omit-frame-pointer -fno-optimize-sibling-calls -gfull -O0",
"CMAKE_CXX_FLAGS": "-fno-omit-frame-pointer -fno-optimize-sibling-calls -gfull -O0"
}
},
{
"name": "release-flags",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "arm64",
"hidden": true,
"environment": {
"VCPKG_ARCH": "arm64"
},
"architecture": {
"value": "arm64",
"strategy": "external"
}
},
{
"name": "x86_64",
"hidden": true,
"environment": {
"VCPKG_ARCH": "x64"
},
"architecture": {
"value": "x64",
"strategy": "external"
}
},
{
"name": "vcpkg-common",
"hidden": true,
"binaryDir": "$env{INSTALL_DIR}/build/remill",
"generator": "Ninja",
"cacheVariables": {
"VCPKG_TARGET_TRIPLET": "$env{VCPKG_TARGET_TRIPLET}",
"CMAKE_TOOLCHAIN_FILE": "$env{CMAKE_TOOLCHAIN_FILE}",
"CMAKE_INSTALL_PREFIX": "$env{INSTALL_DIR}/install"
}
},
{
"name": "vcpkg-debug",
"hidden": true,
"inherits": ["debug-flags", "vcpkg-common"]
},
{
"name": "vcpkg-release",
"hidden": true,
"inherits": ["release-flags", "vcpkg-common"]
},
{
"name": "vcpkg-x64-dbg",
"inherits": ["vcpkg-debug", "x86_64"],
"displayName": "Debug Build (vcpkg) (x64)",
"description": "Build a Debug version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-x64-rel",
"inherits": ["vcpkg-release", "x86_64"],
"displayName": "Release Build (vcpkg) (x64)",
"description": "Build a Release version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-arm64-dbg",
"inherits": ["vcpkg-debug", "arm64"],
"displayName": "Debug Build (vcpkg) (arm64)",
"description": "Build a Debug version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
},
{
"name": "vcpkg-arm64-rel",
"inherits": ["vcpkg-release", "arm64"],
"displayName": "Release Build (vcpkg) (arm64)",
"description": "Build a Release version against a VCPKG installation. Define 'CMAKE_TOOLCHAIN_FILE', 'INSTALL_DIR', 'VCPKG_TARGET_TRIPLET' env vars!"
}
],
"buildPresets": [
{
"name": "build-base-debug",
"hidden": true,
"description": "Build in Debug mode",
"configuration": "Debug"
},
{
"name": "build-base-release",
"hidden": true,
"description": "Build in Release mode",
"configuration": "Release"
},
{
"name": "x64-dbg",
"configurePreset": "vcpkg-x64-dbg",
"displayName": "Build (debug) (x64)",
"inherits": ["build-base-debug"]
},
{
"name": "x64-rel",
"configurePreset": "vcpkg-x64-rel",
"displayName": "Build (release) (x64)",
"inherits": ["build-base-release"]
},
{
"name": "arm64-dbg",
"configurePreset": "vcpkg-arm64-dbg",
"displayName": "Build (debug) (arm64)",
"inherits": ["build-base-debug"]
},
{
"name": "arm64-rel",
"configurePreset": "vcpkg-arm64-rel",
"displayName": "Build (release) (arm64)",
"inherits": ["build-base-release"]
}
]
}