windows build fix

This commit is contained in:
Agel committed 2026-10-25 21:41:24 +01:00
1 parent 5b0dcc1b07
commit 00c88a940c
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ Full target format list:
### Dependencies
- Qt 6.10+ components: `Core`, `Gui`, `Qml`, `Quick`, `Widgets`, `Concurrent`, `Svg`, `QuickControls2`, `Test`, `Xml`, `Network`, optional `DBus`.
- Third-party packages: `minizip`, `libarchive`.
- Third-party packages: `minizip`, `libarchive`, `iconv`.
- Graphics API: Vulkan (Windows, Linux), Metal (macOS) configured via `QQuickWindow::setGraphicsApi()`.
### Windows Build Environment
+3 -2
View File
@@ -25,13 +25,14 @@ find_package(Qt6 OPTIONAL_COMPONENTS DBus)
# Third-party libraries
find_package(PkgConfig REQUIRED)
find_package(Iconv REQUIRED)
pkg_check_modules(MINIZIP REQUIRED IMPORTED_TARGET minizip)
pkg_check_modules(LIBARCHIVE REQUIRED IMPORTED_TARGET libarchive)
# libarchive on Windows is built with CNG enabled (BCryptGenRandom for temp files).
# bcrypt.lib is not listed in the .pc file, so inject it here.
# bcrypt.lib and iconv are not listed in the .pc file, so inject them here.
if(WIN32)
set_property(TARGET PkgConfig::LIBARCHIVE APPEND PROPERTY
INTERFACE_LINK_LIBRARIES bcrypt)
INTERFACE_LINK_LIBRARIES bcrypt Iconv::Iconv)
endif()
# Source files