[build] msquic: complete MinGW cross-build

This commit is contained in:
Geoffrey McRae
2026-10-01 06:58:33 +10:00
parent 1b9199355b
commit 1cc7145162
2 changed files with 10 additions and 0 deletions

View File

@@ -160,6 +160,15 @@ function(lg_add_static_msquic)
set(LG_MSQUIC_MINGW_ROOT "/usr/${MINGW64_TRIPLE}")
endif()
find_library(LG_MSQUIC_NTDLL_LIBRARY
NAMES ntdll
PATHS "${LG_MSQUIC_MINGW_ROOT}/lib"
NO_DEFAULT_PATH
REQUIRED)
list(REMOVE_ITEM LG_MSQUIC_SYSTEM_LIBRARIES ntdll)
list(APPEND LG_MSQUIC_SYSTEM_LIBRARIES
"${LG_MSQUIC_NTDLL_LIBRARY}")
set(LG_MSQUIC_DEBUG_LIBRARY
"${LG_MSQUIC_BINARY_DIR}/bin/Release/msquic.lib")
find_program(LG_MSQUIC_CLANG_CL clang-cl REQUIRED)

View File

@@ -1,5 +1,6 @@
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_SYSTEM_PROCESSOR AMD64)
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
set(MSQUIC_MINGW_TRIPLE x86_64-w64-mingw32 CACHE STRING
"MinGW-w64 target triple")