qt-tracing/diplomat.cmake
numzero e40a729048 replace custom FFI with Diplomat
adapted from: qt-wgpu-skel:
* 751408ea92268a16a6931862cb00e8dbccb4e47e replace custom FFI with Diplomat
* 46ce52c2bf2f8ab76a68c284a2f70556a29d7c3b reduce the unsafe part to the GPU initialization
* 784e99b31c4ae3ab0f97ec26045511d00683d66b move the GPU initialization out of the bridge
2026-10-27 19:43:26 +03:00

9 lines
297 B
CMake

set(crates "${CMAKE_BINARY_DIR}/crates")
set(diplomat "${crates}/bin/diplomat-tool")
if(NOT IS_EXECUTABLE "${diplomat}")
message(CONFIGURE_LOG "Downloading Diplomat...")
file(MAKE_DIRECTORY "${crates}")
execute_process(COMMAND ${CARGO} install --root "${crates}" diplomat-tool@0.17.0)
endif()