windows build fix
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -51,7 +51,7 @@ Full target format list:
|
|||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
- Qt 6.10+ components: `Core`, `Gui`, `Qml`, `Quick`, `Widgets`, `Concurrent`, `Svg`, `QuickControls2`, `Test`, `Xml`, `Network`, optional `DBus`.
|
- 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()`.
|
- Graphics API: Vulkan (Windows, Linux), Metal (macOS) configured via `QQuickWindow::setGraphicsApi()`.
|
||||||
|
|
||||||
### Windows Build Environment
|
### Windows Build Environment
|
||||||
|
|||||||
+3
-2
@@ -25,13 +25,14 @@ find_package(Qt6 OPTIONAL_COMPONENTS DBus)
|
|||||||
|
|
||||||
# Third-party libraries
|
# Third-party libraries
|
||||||
find_package(PkgConfig REQUIRED)
|
find_package(PkgConfig REQUIRED)
|
||||||
|
find_package(Iconv REQUIRED)
|
||||||
pkg_check_modules(MINIZIP REQUIRED IMPORTED_TARGET minizip)
|
pkg_check_modules(MINIZIP REQUIRED IMPORTED_TARGET minizip)
|
||||||
pkg_check_modules(LIBARCHIVE REQUIRED IMPORTED_TARGET libarchive)
|
pkg_check_modules(LIBARCHIVE REQUIRED IMPORTED_TARGET libarchive)
|
||||||
# libarchive on Windows is built with CNG enabled (BCryptGenRandom for temp files).
|
# 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)
|
if(WIN32)
|
||||||
set_property(TARGET PkgConfig::LIBARCHIVE APPEND PROPERTY
|
set_property(TARGET PkgConfig::LIBARCHIVE APPEND PROPERTY
|
||||||
INTERFACE_LINK_LIBRARIES bcrypt)
|
INTERFACE_LINK_LIBRARIES bcrypt Iconv::Iconv)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Source files
|
# Source files
|
||||||
|
|||||||
Reference in new issue
Block a user