mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-11-12 14:57:20 +00:00
[build] msquic: complete MinGW cross-build
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user