vcpkg/ports/qt5-tools/portfile.cmake
Kai Pastor 4215306d07
[qt5-base,qt5-tools,qt5-doc] Fix dependencies, enable qdoc (#38058)
- at-spi2-core used to be satisfied by a system package in the linux CI
image, noticed in the host build in android CI.
- dbus used to be provided by a system dev package in the linux CI. The
automatic configuration chooses "linked" mode in this case. With the
system package remove from CI, this auto configuration created an
installation order dependency due to the lack of a dbus dependency.
Noticed in some CI runs, e.g.
https://github.com/microsoft/vcpkg/pull/38618.
- libclang probably became a dependency for qdoc with 5.15, but nobody
noticed.
- pcre2 has a default feature jit which is causing problems, #38604.
This PR unblocks opt-put from pcre2[jit] in qt5-base.

---------

Co-authored-by: MonicaLiu <110024546+MonicaLiu0311@users.noreply.github.com>
Co-authored-by: Monica <liuyumei01@beyondsoft.com>
2024-05-22 19:39:25 -07:00

24 lines
822 B
CMake

include(${CURRENT_INSTALLED_DIR}/share/qt5/qt_port_functions.cmake)
vcpkg_list(SET OPTIONS_RELEASE)
if("qdoc" IN_LIST FEATURES)
set(ENV{LLVM_INSTALL_DIR} "${CURRENT_INSTALLED_DIR}")
vcpkg_list(APPEND OPTIONS_RELEASE -feature-qdoc)
else()
vcpkg_list(APPEND OPTIONS_RELEASE -no-feature-qdoc)
endif()
qt_submodule_installation(
PATCHES
fix-pkgconfig-qt5uiplugin-not-found.patch
libclang.patch
BUILD_OPTIONS_RELEASE
${OPTIONS_RELEASE}
BUILD_OPTIONS_DEBUG
-no-feature-qdoc
)
if(EXISTS "${CURRENT_INSTALLED_DIR}/plugins/platforms/qminimal${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}")
file(INSTALL "${CURRENT_INSTALLED_DIR}/plugins/platforms/qminimal${VCPKG_TARGET_SHARED_LIBRARY_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/plugins/platforms")
endif()