[client] windows: add native clang-cl build

Build the Windows client against the MSVC ABI while retaining clang
language support. Use vcpkg for ANGLE and libsamplerate, and build
MsQuic with its bundled static OpenSSL.
This commit is contained in:
Geoffrey McRae
2026-10-02 18:52:45 +10:00
parent c456596bd7
commit 57f18d7e80
33 changed files with 583 additions and 205 deletions

View File

@@ -12,15 +12,25 @@ add_library(lg_gui STATIC
cimplot/implot/implot_items.cpp
)
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
if(MSVC)
target_compile_options(lg_gui PRIVATE /fp:precise)
set_source_files_properties(cimgui/cimgui.cpp PROPERTIES
COMPILE_OPTIONS "/clang:-Wno-error=unused-function"
)
set_source_files_properties(cimplot/cimplot.cpp PROPERTIES
COMPILE_OPTIONS
"/clang:-Wno-error=array-bounds;/clang:-Wno-error=unused-function"
)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
target_compile_options(lg_gui PRIVATE "-fno-fast-math")
set_source_files_properties(cimgui/cimgui.cpp PROPERTIES
COMPILE_FLAGS "-Wno-error=unused-function"
COMPILE_OPTIONS "-Wno-error=unused-function"
)
set_source_files_properties(cimplot/cimplot.cpp PROPERTIES
COMPILE_FLAGS
"-Wno-error=array-bounds -Wno-error=unused-function"
COMPILE_OPTIONS
"-Wno-error=array-bounds;-Wno-error=unused-function"
)
endif()