From 26850c5c2f86ba06e4cced7741ad733eb6a4baf8 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Thu, 4 Jul 2024 08:49:52 +0200 Subject: [PATCH] Remove qtbase overlay --- vcpkg/ports/qtbase/GLIB2-static.patch | 103 ---- vcpkg/ports/qtbase/allow_outside_prefix.patch | 22 - vcpkg/ports/qtbase/clang-cl_QGADGET_fix.diff | 38 -- .../qtbase/clang-cl_source_location.patch | 14 - .../qtbase/cmake/qt_install_copyright.cmake | 27 - .../qtbase/cmake/qt_install_submodule.cmake | 356 ------------ vcpkg/ports/qtbase/cmake/qt_port_data.cmake | 49 -- .../ports/qtbase/cmake/qt_port_details.cmake | 183 ------ vcpkg/ports/qtbase/config_install.patch | 13 - .../qtbase/dont_force_cmakecache_latest.patch | 13 - vcpkg/ports/qtbase/env.patch | 16 - vcpkg/ports/qtbase/fix-host-aliasing.patch | 17 - vcpkg/ports/qtbase/fix_cmake_build.patch | 15 - vcpkg/ports/qtbase/fix_cmake_build_type.patch | 22 - vcpkg/ports/qtbase/fix_deploy_windows.patch | 26 - vcpkg/ports/qtbase/fix_egl.patch | 12 - vcpkg/ports/qtbase/fix_egl_2.patch | 13 - vcpkg/ports/qtbase/harfbuzz.patch | 13 - vcpkg/ports/qtbase/installed_dir.patch | 15 - vcpkg/ports/qtbase/portfile.cmake | 502 ----------------- vcpkg/ports/qtbase/qmake.debug.bat | 2 - vcpkg/ports/qtbase/qt.conf.in | 31 -- vcpkg/ports/qtbase/qtpaths.debug.bat | 2 - vcpkg/ports/qtbase/vcpkg.json | 526 ------------------ vcpkg/ports/qtbase/windeployqt.debug.bat | 10 - 25 files changed, 2040 deletions(-) delete mode 100644 vcpkg/ports/qtbase/GLIB2-static.patch delete mode 100644 vcpkg/ports/qtbase/allow_outside_prefix.patch delete mode 100644 vcpkg/ports/qtbase/clang-cl_QGADGET_fix.diff delete mode 100644 vcpkg/ports/qtbase/clang-cl_source_location.patch delete mode 100644 vcpkg/ports/qtbase/cmake/qt_install_copyright.cmake delete mode 100644 vcpkg/ports/qtbase/cmake/qt_install_submodule.cmake delete mode 100644 vcpkg/ports/qtbase/cmake/qt_port_data.cmake delete mode 100644 vcpkg/ports/qtbase/cmake/qt_port_details.cmake delete mode 100644 vcpkg/ports/qtbase/config_install.patch delete mode 100644 vcpkg/ports/qtbase/dont_force_cmakecache_latest.patch delete mode 100644 vcpkg/ports/qtbase/env.patch delete mode 100644 vcpkg/ports/qtbase/fix-host-aliasing.patch delete mode 100644 vcpkg/ports/qtbase/fix_cmake_build.patch delete mode 100644 vcpkg/ports/qtbase/fix_cmake_build_type.patch delete mode 100644 vcpkg/ports/qtbase/fix_deploy_windows.patch delete mode 100644 vcpkg/ports/qtbase/fix_egl.patch delete mode 100644 vcpkg/ports/qtbase/fix_egl_2.patch delete mode 100644 vcpkg/ports/qtbase/harfbuzz.patch delete mode 100644 vcpkg/ports/qtbase/installed_dir.patch delete mode 100644 vcpkg/ports/qtbase/portfile.cmake delete mode 100644 vcpkg/ports/qtbase/qmake.debug.bat delete mode 100644 vcpkg/ports/qtbase/qt.conf.in delete mode 100644 vcpkg/ports/qtbase/qtpaths.debug.bat delete mode 100644 vcpkg/ports/qtbase/vcpkg.json delete mode 100644 vcpkg/ports/qtbase/windeployqt.debug.bat diff --git a/vcpkg/ports/qtbase/GLIB2-static.patch b/vcpkg/ports/qtbase/GLIB2-static.patch deleted file mode 100644 index 0384482bbc..0000000000 --- a/vcpkg/ports/qtbase/GLIB2-static.patch +++ /dev/null @@ -1,103 +0,0 @@ -diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake -index 24a194c..91c8e41 100644 ---- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake -+++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindGLIB2.cmake -@@ -95,6 +95,18 @@ find_library(GLIB2_GIO_LIBRARIES - HINTS ${PC_GIO_LIBDIR} - ) - -+pkg_check_modules(PC_GMODULE QUIET gmodule-2.0) -+ -+find_path(GLIB2_GMODULE_INCLUDE_DIRS -+ NAMES gmodule.h -+ HINTS ${PC_GMODULE} -+ PATH_SUFFIXES glib-2.0) -+ -+find_library(GLIB2_GMODULE_LIBRARIES -+ NAMES gmodule-2.0 -+ HINTS ${PC_GMODULE} -+) -+ - # search the glibconfig.h include dir under the same root where the library is found - get_filename_component(glib2LibDir "${GLIB2_LIBRARIES}" PATH) - -@@ -126,6 +138,11 @@ if(GLIB2_GIO_LIBRARIES AND GLIB2_GIO_INCLUDE_DIRS) - set(GLIB2_GIO_FOUND TRUE) - endif() - -+if(GLIB2_GMODULE_LIBRARIES AND GLIB2_GMODULE_INCLUDE_DIRS) -+ set(GLIB2_GMODULE_FOUND TRUE) -+endif() -+ -+ - include(FindPackageHandleStandardArgs) - find_package_handle_standard_args(GLIB2 - REQUIRED_VARS GLIB2_LIBRARIES GTHREAD2_LIBRARIES GLIB2_INCLUDE_DIRS -@@ -137,6 +154,16 @@ if(GLIB2_FOUND AND NOT TARGET GLIB2::GLIB2) - IMPORTED_LOCATION "${GLIB2_LIBRARIES}" - INTERFACE_LINK_LIBRARIES "${GTHREAD2_LIBRARIES}" - INTERFACE_INCLUDE_DIRECTORIES "${GLIB2_INCLUDE_DIRS}") -+ #vcpkg specific -+ pkg_check_modules(PC_PCRE2_8BIT QUIET libpcre2-8) -+ find_library(PCRE2_8BIT_LIBRARIES -+ NAMES pcre2-8 -+ HINTS ${PC_PCRE2_8BIT} -+ ) -+ target_link_libraries(GLIB2::GLIB2 INTERFACE ${PCRE2_8BIT_LIBRARIES}) -+ find_package(Iconv) -+ find_package(Intl) -+ target_link_libraries(GLIB2::GLIB2 INTERFACE Intl::Intl Iconv::Iconv) - endif() - - if(GLIB2_GOBJECT_FOUND AND NOT TARGET GLIB2::GOBJECT) -@@ -153,12 +180,21 @@ if(GLIB2_GIO_FOUND AND NOT TARGET GLIB2::GIO) - INTERFACE_INCLUDE_DIRECTORIES "${GLIB2_GIO_INCLUDE_DIRS}") - endif() - -+if(GLIB2_GMODULE_FOUND AND NOT TARGET GLIB2::GMODULE) -+ add_library(GLIB2::GMODULE UNKNOWN IMPORTED) -+ set_target_properties(GLIB2::GMODULE PROPERTIES -+ IMPORTED_LOCATION "${GLIB2_GMODULE_LIBRARIES}" -+ INTERFACE_INCLUDE_DIRECTORIES "${GLIB2_GMODULE_INCLUDE_DIRS}") -+endif() -+ -+ - mark_as_advanced(GLIB2_INCLUDE_DIRS GLIB2_INCLUDE_DIR - GLIB2_LIBRARIES GLIB2_LIBRARY - GLIB2_GOBJECT_INCLUDE_DIRS GLIB2_GOBJECT_INCLUDE_DIR - GLIB2_GOBJECT_LIBRARIES GLIB2_GOBJECT_LIBRARY - GLIB2_GIO_INCLUDE_DIRS GLIB2_GIO_INCLUDE_DIR -- GLIB2_GIO_LIBRARIES GLIB2_GIO_LIBRARY) -+ GLIB2_GIO_LIBRARIES GLIB2_GIO_LIBRARY -+ GLIB2_GMODULE_LIBRARIES GLIB2_GMODULE_INCLUDE_DIRS) - - include(FeatureSummary) - set_package_properties(GLIB2 PROPERTIES -diff --git a/src/corelib/configure.cmake b/src/corelib/configure.cmake -index 7d52f48..2b1b221 100644 ---- a/src/corelib/configure.cmake -+++ b/src/corelib/configure.cmake -@@ -25,7 +25,7 @@ endif() - qt_find_package(WrapSystemDoubleConversion - PROVIDED_TARGETS WrapSystemDoubleConversion::WrapSystemDoubleConversion - MODULE_NAME core QMAKE_LIB doubleconversion) --qt_find_package(GLIB2 PROVIDED_TARGETS GLIB2::GLIB2 MODULE_NAME core QMAKE_LIB glib) -+qt_find_package(GLIB2 PROVIDED_TARGETS GLIB2::GLIB2 MODULE MODULE_NAME core QMAKE_LIB glib) - qt_find_package(ICU 50.1 COMPONENTS i18n uc data PROVIDED_TARGETS ICU::i18n ICU::uc ICU::data - MODULE_NAME core QMAKE_LIB icu) - -diff --git a/src/network/configure.cmake b/src/network/configure.cmake -index aef7f15..21b0c1d 100644 ---- a/src/network/configure.cmake -+++ b/src/network/configure.cmake -@@ -10,8 +10,8 @@ - qt_find_package(WrapBrotli PROVIDED_TARGETS WrapBrotli::WrapBrotliDec MODULE_NAME network QMAKE_LIB brotli) - qt_find_package(Libproxy PROVIDED_TARGETS PkgConfig::Libproxy MODULE_NAME network QMAKE_LIB libproxy) - qt_find_package(GSSAPI PROVIDED_TARGETS GSSAPI::GSSAPI MODULE_NAME network QMAKE_LIB gssapi) --qt_find_package(GLIB2 OPTIONAL_COMPONENTS GOBJECT PROVIDED_TARGETS GLIB2::GOBJECT MODULE_NAME core QMAKE_LIB gobject) --qt_find_package(GLIB2 OPTIONAL_COMPONENTS GIO PROVIDED_TARGETS GLIB2::GIO MODULE_NAME core QMAKE_LIB gio) -+qt_find_package(GLIB2 OPTIONAL_COMPONENTS GOBJECT PROVIDED_TARGETS GLIB2::GOBJECT MODULE MODULE_NAME core QMAKE_LIB gobject) -+qt_find_package(GLIB2 OPTIONAL_COMPONENTS GIO PROVIDED_TARGETS GLIB2::GIO MODULE MODULE_NAME core QMAKE_LIB gio) - qt_find_package(WrapResolv PROVIDED_TARGETS WrapResolv::WrapResolv MODULE_NAME network QMAKE_LIB libresolv) - - #### Tests diff --git a/vcpkg/ports/qtbase/allow_outside_prefix.patch b/vcpkg/ports/qtbase/allow_outside_prefix.patch deleted file mode 100644 index cd5a256a7b..0000000000 --- a/vcpkg/ports/qtbase/allow_outside_prefix.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/cmake/QtBuildPathsHelpers.cmake b/cmake/QtBuildPathsHelpers.cmake -index bd186c28b..2c1994d2e 100644 ---- a/cmake/QtBuildPathsHelpers.cmake -+++ b/cmake/QtBuildPathsHelpers.cmake -@@ -135,11 +135,13 @@ function(qt_configure_process_path name default docstring) - elseif(rel_path MATCHES "^\.\./") - # INSTALL_SYSCONFDIR is allowed to be outside the prefix. - if(NOT name STREQUAL "INSTALL_SYSCONFDIR") -- message(FATAL_ERROR -- "Path component '${name}' is outside computed install prefix: ${rel_path} ") -- return() -+ #message(FATAL_ERROR -+ # "Path component '${name}' is outside computed install prefix: ${rel_path} ") -+ #return() -+ set("${name}" "${rel_path}" CACHE STRING "${docstring}" FORCE) -+ else() -+ set("${name}" "${${name}}" CACHE STRING "${docstring}" FORCE) - endif() -- set("${name}" "${${name}}" CACHE STRING "${docstring}" FORCE) - else() - set("${name}" "${rel_path}" CACHE STRING "${docstring}" FORCE) - endif() diff --git a/vcpkg/ports/qtbase/clang-cl_QGADGET_fix.diff b/vcpkg/ports/qtbase/clang-cl_QGADGET_fix.diff deleted file mode 100644 index 0304bcc47d..0000000000 --- a/vcpkg/ports/qtbase/clang-cl_QGADGET_fix.diff +++ /dev/null @@ -1,38 +0,0 @@ -diff --git a/src/corelib/kernel/qmetatype.h b/src/corelib/kernel/qmetatype.h -index e40cd85..ba68a01 100644 ---- a/src/corelib/kernel/qmetatype.h -+++ b/src/corelib/kernel/qmetatype.h -@@ -18,6 +18,7 @@ - #endif - #include - -+#include - #include - #include - #include -@@ -826,7 +829,13 @@ - struct IsGadgetHelper { enum { IsRealGadget = false, IsGadgetOrDerivedFrom = false }; }; - - template -+#if defined(__clang__) && (__clang_major__ > 11) -+ // Clang does not reject T::QtGadgetHelper as ambiguous if a class inherits from two QGADGETS -+ // but is not a QGADGET itself -+ struct IsGadgetHelper> -+#else - struct IsGadgetHelper -+#endif - { - template - static char checkType(void (X::*)()); -@@ -841,7 +850,11 @@ - struct IsPointerToGadgetHelper { enum { IsRealGadget = false, IsGadgetOrDerivedFrom = false }; }; - - template -+#if defined(__clang__) && (__clang_major__ > 11) -+ struct IsPointerToGadgetHelper> -+#else - struct IsPointerToGadgetHelper -+#endif - { - using BaseType = T; - template diff --git a/vcpkg/ports/qtbase/clang-cl_source_location.patch b/vcpkg/ports/qtbase/clang-cl_source_location.patch deleted file mode 100644 index 5155fb4bbb..0000000000 --- a/vcpkg/ports/qtbase/clang-cl_source_location.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/src/corelib/kernel/qproperty.h b/src/corelib/kernel/qproperty.h -index 823b2057b..4a8cd4fa8 100644 ---- a/src/corelib/kernel/qproperty.h -+++ b/src/corelib/kernel/qproperty.h -@@ -16,8 +16,8 @@ - - #include - --#if __has_include() && __cplusplus >= 202002L && !defined(Q_QDOC) -+#if __has_include() && __cplusplus >= 202002L && !defined(Q_QDOC) && ( (defined(__cpp_consteval) && defined(_MSC_VER)) || !defined(_MSC_VER) ) - #include - #if defined(__cpp_lib_source_location) - #define QT_SOURCE_LOCATION_NAMESPACE std - #define QT_PROPERTY_COLLECT_BINDING_LOCATION diff --git a/vcpkg/ports/qtbase/cmake/qt_install_copyright.cmake b/vcpkg/ports/qtbase/cmake/qt_install_copyright.cmake deleted file mode 100644 index 8ec395fe62..0000000000 --- a/vcpkg/ports/qtbase/cmake/qt_install_copyright.cmake +++ /dev/null @@ -1,27 +0,0 @@ -include_guard(GLOBAL) - -#Could probably be the beginning of a vcpkg_install_copyright? -function(qt_install_copyright SOURCE_PATH) - #Find the relevant license file and install it - if(EXISTS "${SOURCE_PATH}/LICENSE.LGPLv3") - set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.LGPLv3") - elseif(EXISTS "${SOURCE_PATH}/LICENSE.LGPL3") - set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.LGPL3") - elseif(EXISTS "${SOURCE_PATH}/LICENSE.GPLv3") - set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.GPLv3") - elseif(EXISTS "${SOURCE_PATH}/LICENSE.GPL3") - set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.GPL3") - elseif(EXISTS "${SOURCE_PATH}/LICENSE.GPL3-EXCEPT") - set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.GPL3-EXCEPT") - elseif(EXISTS "${SOURCE_PATH}/LICENSE.FDL") - set(LICENSE_PATH "${SOURCE_PATH}/LICENSE.FDL") - endif() - if(LICENSE_PATH) - file(INSTALL "${LICENSE_PATH}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) - elseif(EXISTS "${SOURCE_PATH}/LICENSES") - file(GLOB LICENSES "${SOURCE_PATH}/LICENSES/*") - vcpkg_install_copyright(FILE_LIST ${LICENSES}) - else() - message(WARNING "No license/copyright file found!") - endif() -endfunction() diff --git a/vcpkg/ports/qtbase/cmake/qt_install_submodule.cmake b/vcpkg/ports/qtbase/cmake/qt_install_submodule.cmake deleted file mode 100644 index 922ef2ea23..0000000000 --- a/vcpkg/ports/qtbase/cmake/qt_install_submodule.cmake +++ /dev/null @@ -1,356 +0,0 @@ -include_guard(GLOBAL) - -include("${CURRENT_HOST_INSTALLED_DIR}/share/vcpkg-cmake/vcpkg-port-config.cmake") -include("${CURRENT_HOST_INSTALLED_DIR}/share/vcpkg-cmake-config/vcpkg-port-config.cmake") -include("${CMAKE_CURRENT_LIST_DIR}/qt_install_copyright.cmake") - -if(NOT DEFINED QT6_DIRECTORY_PREFIX) - set(QT6_DIRECTORY_PREFIX "Qt6/") -endif() - -if(VCPKG_TARGET_IS_ANDROID AND NOT ANDROID_SDK_ROOT) - message(FATAL_ERROR "${PORT} requires ANDROID_SDK_ROOT to be set. Consider adding it to the triplet." ) -endif() - -function(qt_download_submodule_impl) - cmake_parse_arguments(PARSE_ARGV 0 "_qarg" "" "SUBMODULE" "PATCHES") - - if("${_qarg_SUBMODULE}" IN_LIST QT_FROM_QT_GIT) - # qtinterfaceframework is not available in the release, so we fall back to a `git clone`. - vcpkg_from_git( - OUT_SOURCE_PATH SOURCE_PATH - URL "https://code.qt.io/qt/${_qarg_SUBMODULE}.git" - REF "${${_qarg_SUBMODULE}_REF}" - PATCHES ${_qarg_PATCHES} - ) - if(PORT STREQUAL "qttools") # Keep this for beta & rc's - vcpkg_from_git( - OUT_SOURCE_PATH SOURCE_PATH_QLITEHTML - URL https://code.qt.io/playground/qlitehtml.git - REF "${${PORT}_qlitehtml_REF}" - FETCH_REF master - HEAD_REF master - ) - # port 'litehtml' is not in vcpkg! - vcpkg_from_github( - OUT_SOURCE_PATH SOURCE_PATH_LITEHTML - REPO litehtml/litehtml - REF "${${PORT}_litehtml_REF}" - SHA512 "${${PORT}_litehtml_HASH}" - HEAD_REF master - ) - file(COPY "${SOURCE_PATH_QLITEHTML}/" DESTINATION "${SOURCE_PATH}/src/assistant/qlitehtml") - file(COPY "${SOURCE_PATH_LITEHTML}/" DESTINATION "${SOURCE_PATH}/src/assistant/qlitehtml/src/3rdparty/litehtml") - elseif(PORT STREQUAL "qtwebengine") - vcpkg_from_git( - OUT_SOURCE_PATH SOURCE_PATH_WEBENGINE - URL https://code.qt.io/qt/qtwebengine-chromium.git - REF "${${PORT}_chromium_REF}" - ) - if(NOT EXISTS "${SOURCE_PATH}/src/3rdparty/chromium") - file(RENAME "${SOURCE_PATH_WEBENGINE}/chromium" "${SOURCE_PATH}/src/3rdparty/chromium") - endif() - if(NOT EXISTS "${SOURCE_PATH}/src/3rdparty/gn") - file(RENAME "${SOURCE_PATH_WEBENGINE}/gn" "${SOURCE_PATH}/src/3rdparty/gn") - endif() - endif() - else() - if(VCPKG_USE_HEAD_VERSION) - set(sha512 SKIP_SHA512) - elseif(NOT DEFINED "${_qarg_SUBMODULE}_HASH") - message(FATAL_ERROR "No information for ${_qarg_SUBMODULE} -- add it to QT_PORTS and run qtbase in QT_UPDATE_VERSION mode first") - else() - set(sha512 SHA512 "${${_qarg_SUBMODULE}_HASH}") - endif() - - qt_get_url_filename("${_qarg_SUBMODULE}" urls filename) - vcpkg_download_distfile(archive - URLS ${urls} - FILENAME "${filename}" - ${sha512} - ) - vcpkg_extract_source_archive( - SOURCE_PATH - ARCHIVE "${archive}" - PATCHES ${_qarg_PATCHES} - ) - endif() - set(SOURCE_PATH "${SOURCE_PATH}" PARENT_SCOPE) -endfunction() - -function(qt_download_submodule) - cmake_parse_arguments(PARSE_ARGV 0 "_qarg" "" "" "PATCHES") - - qt_download_submodule_impl(SUBMODULE "${PORT}" PATCHES ${_qarg_PATCHES}) - - set(SOURCE_PATH "${SOURCE_PATH}" PARENT_SCOPE) -endfunction() - - -function(qt_cmake_configure) - cmake_parse_arguments(PARSE_ARGV 0 "_qarg" "DISABLE_NINJA;DISABLE_PARALLEL_CONFIGURE" - "" - "TOOL_NAMES;OPTIONS;OPTIONS_DEBUG;OPTIONS_RELEASE;OPTIONS_MAYBE_UNUSED") - - vcpkg_find_acquire_program(PERL) # Perl is probably required by all qt ports for syncqt - get_filename_component(PERL_PATH ${PERL} DIRECTORY) - vcpkg_add_to_path(${PERL_PATH}) - if(NOT PORT STREQUAL "qtwebengine" OR QT_IS_LATEST) # qtwebengine requires python2; since 6.3 python3 - vcpkg_find_acquire_program(PYTHON3) # Python is required by some qt ports - get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY) - vcpkg_add_to_path(${PYTHON3_PATH}) - endif() - - if(NOT PORT MATCHES "^qtbase") - list(APPEND _qarg_OPTIONS "-DQT_SYNCQT:PATH=${CURRENT_HOST_INSTALLED_DIR}/tools/Qt6/bin/syncqt.pl") - endif() - set(PERL_OPTION "-DHOST_PERL:PATH=${PERL}") - - set(ninja_option "") - if(_qarg_DISABLE_NINJA) - set(ninja_option WINDOWS_USE_MSBUILD) - endif() - - set(disable_parallel "") - if(_qarg_DISABLE_PARALLEL_CONFIGURE) - set(disable_parallel DISABLE_PARALLEL_CONFIGURE) - endif() - - if(VCPKG_CROSSCOMPILING) - list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH=${CURRENT_HOST_INSTALLED_DIR}") - list(APPEND _qarg_OPTIONS "-DQT_HOST_PATH_CMAKE_DIR:PATH=${CURRENT_HOST_INSTALLED_DIR}/share") - endif() - - # Disable warning for CMAKE_(REQUIRE|DISABLE)_FIND_PACKAGE_ - string(REGEX MATCHALL "CMAKE_DISABLE_FIND_PACKAGE_[^:=]+" disabled_find_package "${_qarg_OPTIONS}") - list(APPEND _qarg_OPTIONS_MAYBE_UNUSED ${disabled_find_package}) - - string(REGEX MATCHALL "CMAKE_REQUIRE_FIND_PACKAGE_[^:=]+(:BOOL)?=OFF" require_find_package "${_qarg_OPTIONS}") - list(TRANSFORM require_find_package REPLACE "(:BOOL)?=OFF" "") - list(APPEND _qarg_OPTIONS_MAYBE_UNUSED ${require_find_package}) - - # Disable unused warnings for disabled features. Qt might decide to not emit the feature variables if other features are deactivated. - string(REGEX MATCHALL "(QT_)?FEATURE_[^:=]+(:BOOL)?=OFF" disabled_features "${_qarg_OPTIONS}") - list(TRANSFORM disabled_features REPLACE "(:BOOL)?=OFF" "") - list(APPEND _qarg_OPTIONS_MAYBE_UNUSED ${disabled_features}) - - list(APPEND _qarg_OPTIONS "-DQT_NO_FORCE_SET_CMAKE_BUILD_TYPE:BOOL=ON") - - if(VCPKG_TARGET_IS_ANDROID) - list(APPEND _qarg_OPTIONS "-DANDROID_SDK_ROOT=${ANDROID_SDK_ROOT}") - endif() - - if(NOT PORT MATCHES "qtbase") - list(APPEND _qarg_OPTIONS "-DQT_MKSPECS_DIR:PATH=${CURRENT_HOST_INSTALLED_DIR}/share/Qt6/mkspecs") - endif() - - vcpkg_cmake_configure( - SOURCE_PATH "${SOURCE_PATH}" - ${ninja_option} - ${disable_parallel} - OPTIONS - -DQT_NO_FORCE_SET_CMAKE_BUILD_TYPE:BOOL=ON - -DQT_USE_DEFAULT_CMAKE_OPTIMIZATION_FLAGS:BOOL=ON # We don't want Qt to mess with users toolchain settings. - -DCMAKE_FIND_PACKAGE_TARGETS_GLOBAL=ON # Because Qt doesn't correctly scope find_package calls. - #-DQT_HOST_PATH= # For crosscompiling - #-DQT_PLATFORM_DEFINITION_DIR=mkspecs/win32-msvc - #-DQT_QMAKE_TARGET_MKSPEC=win32-msvc - #-DQT_USE_CCACHE - -DQT_BUILD_EXAMPLES:BOOL=OFF - -DQT_BUILD_TESTS:BOOL=OFF - -DQT_BUILD_BENCHMARKS:BOOL=OFF - ${PERL_OPTION} - -DINSTALL_BINDIR:STRING=bin - -DINSTALL_LIBEXECDIR:STRING=bin - -DINSTALL_PLUGINSDIR:STRING=${qt_plugindir} - -DINSTALL_QMLDIR:STRING=${qt_qmldir} - ${_qarg_OPTIONS} - OPTIONS_RELEASE - ${_qarg_OPTIONS_RELEASE} - -DINSTALL_DOCDIR:STRING=doc/${QT6_DIRECTORY_PREFIX} - -DINSTALL_INCLUDEDIR:STRING=include/${QT6_DIRECTORY_PREFIX} - -DINSTALL_DESCRIPTIONSDIR:STRING=share/Qt6/modules - -DINSTALL_MKSPECSDIR:STRING=share/Qt6/mkspecs - -DINSTALL_TRANSLATIONSDIR:STRING=translations/${QT6_DIRECTORY_PREFIX} - OPTIONS_DEBUG - # -DFEATURE_debug:BOOL=ON only needed by qtbase and auto detected? - -DINSTALL_DOCDIR:STRING=../doc/${QT6_DIRECTORY_PREFIX} - -DINSTALL_INCLUDEDIR:STRING=../include/${QT6_DIRECTORY_PREFIX} - -DINSTALL_TRANSLATIONSDIR:STRING=../translations/${QT6_DIRECTORY_PREFIX} - -DINSTALL_DESCRIPTIONSDIR:STRING=../share/Qt6/modules - -DINSTALL_MKSPECSDIR:STRING=../share/Qt6/mkspecs - ${_qarg_OPTIONS_DEBUG} - MAYBE_UNUSED_VARIABLES - INSTALL_BINDIR - INSTALL_DOCDIR - INSTALL_LIBEXECDIR - INSTALL_QMLDIR # No qml files - INSTALL_TRANSLATIONSDIR # No translations - INSTALL_PLUGINSDIR # No plugins - INSTALL_DESCRIPTIONSDIR - INSTALL_INCLUDEDIR - HOST_PERL - QT_SYNCQT - QT_NO_FORCE_SET_CMAKE_BUILD_TYPE - ${_qarg_OPTIONS_MAYBE_UNUSED} - INPUT_bundled_xcb_xinput - INPUT_freetype - INPUT_harfbuzz - INPUT_libjpeg - INPUT_libmd4c - INPUT_libpng - INPUT_opengl - INPUT_openssl - INPUT_xcb - INPUT_xkbcommon - ) - set(Z_VCPKG_CMAKE_GENERATOR "${Z_VCPKG_CMAKE_GENERATOR}" PARENT_SCOPE) -endfunction() - -function(qt_fix_prl_files) - file(TO_CMAKE_PATH "${CURRENT_PACKAGES_DIR}/lib" package_dir) - file(TO_CMAKE_PATH "${package_dir}/lib" lib_path) - file(TO_CMAKE_PATH "${package_dir}/include/Qt6" include_path) - file(TO_CMAKE_PATH "${CURRENT_INSTALLED_DIR}" install_prefix) - file(GLOB_RECURSE prl_files "${CURRENT_PACKAGES_DIR}/*.prl" "${CURRENT_PACKAGES_DIR}/*.pri") - foreach(prl_file IN LISTS prl_files) - file(READ "${prl_file}" _contents) - string(REPLACE "${lib_path}" "\$\$[QT_INSTALL_LIBS]" _contents "${_contents}") - string(REPLACE "${include_path}" "\$\$[QT_INSTALL_HEADERS]" _contents "${_contents}") - string(REPLACE "${install_prefix}" "\$\$[QT_INSTALL_PREFIX]" _contents "${_contents}") - string(REPLACE "[QT_INSTALL_PREFIX]/lib/objects-Debug" "[QT_INSTALL_LIBS]/objects-Debug" _contents "${_contents}") - string(REPLACE "[QT_INSTALL_PREFIX]/Qt6/qml" "[QT_INSTALL_QML]" _contents "${_contents}") - #Note: This only works without an extra if case since QT_INSTALL_PREFIX is the same for debug and release - file(WRITE "${prl_file}" "${_contents}") - endforeach() -endfunction() - -function(qt_fixup_and_cleanup) - cmake_parse_arguments(PARSE_ARGV 0 "_qarg" "" - "" - "TOOL_NAMES") - vcpkg_copy_pdbs() - - ## Handle PRL files - qt_fix_prl_files() - - ## Handle CMake files. - set(COMPONENTS) - file(GLOB COMPONENTS_OR_FILES LIST_DIRECTORIES true "${CURRENT_PACKAGES_DIR}/share/Qt6*") - list(REMOVE_ITEM COMPONENTS_OR_FILES "${CURRENT_PACKAGES_DIR}/share/Qt6") - foreach(_glob IN LISTS COMPONENTS_OR_FILES) - if(IS_DIRECTORY "${_glob}") - string(REPLACE "${CURRENT_PACKAGES_DIR}/share/Qt6" "" _component "${_glob}") - debug_message("Adding cmake component: '${_component}'") - list(APPEND COMPONENTS ${_component}) - endif() - endforeach() - - foreach(_comp IN LISTS COMPONENTS) - if(EXISTS "${CURRENT_PACKAGES_DIR}/share/Qt6${_comp}") - vcpkg_cmake_config_fixup(PACKAGE_NAME "Qt6${_comp}" CONFIG_PATH "share/Qt6${_comp}" TOOLS_PATH "tools/Qt6/bin") - # Would rather put it into share/cmake as before but the import_prefix correction in vcpkg_cmake_config_fixup is working against that. - else() - message(STATUS "WARNING: Qt component ${_comp} not found/built!") - endif() - endforeach() - #fix debug plugin paths (should probably be fixed in vcpkg_cmake_config_fixup) - file(GLOB_RECURSE DEBUG_CMAKE_TARGETS "${CURRENT_PACKAGES_DIR}/share/**/*Targets-debug.cmake") - debug_message("DEBUG_CMAKE_TARGETS:${DEBUG_CMAKE_TARGETS}") - foreach(_debug_target IN LISTS DEBUG_CMAKE_TARGETS) - vcpkg_replace_string("${_debug_target}" "{_IMPORT_PREFIX}/${qt_plugindir}" "{_IMPORT_PREFIX}/debug/${qt_plugindir}" IGNORE_UNCHANGED) - vcpkg_replace_string("${_debug_target}" "{_IMPORT_PREFIX}/${qt_qmldir}" "{_IMPORT_PREFIX}/debug/${qt_qmldir}" IGNORE_UNCHANGED) - endforeach() - - file(GLOB_RECURSE STATIC_CMAKE_TARGETS "${CURRENT_PACKAGES_DIR}/share/Qt6Qml/QmlPlugins/*.cmake") - foreach(_plugin_target IN LISTS STATIC_CMAKE_TARGETS) - # restore a single get_filename_component which was remove by vcpkg_cmake_config_fixup - vcpkg_replace_string("${_plugin_target}" - [[get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)]] - "get_filename_component(_IMPORT_PREFIX \"\${CMAKE_CURRENT_LIST_FILE}\" PATH)\nget_filename_component(_IMPORT_PREFIX \"\${_IMPORT_PREFIX}\" PATH)" - IGNORE_UNCHANGED) - endforeach() - - set(qt_tooldest "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin") - set(qt_searchdir "${CURRENT_PACKAGES_DIR}/bin") - ## Handle Tools - foreach(_tool IN LISTS _qarg_TOOL_NAMES) - if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/bin/${_tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}") - debug_message("Removed '${_tool}' from copy tools list since it was not found!") - list(REMOVE_ITEM _qarg_TOOL_NAMES ${_tool}) - endif() - endforeach() - if(_qarg_TOOL_NAMES) - set(tool_names ${_qarg_TOOL_NAMES}) - vcpkg_copy_tools(TOOL_NAMES ${tool_names} SEARCH_DIR "${qt_searchdir}" DESTINATION "${qt_tooldest}" AUTO_CLEAN) - endif() - - if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") - if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/") - file(COPY "${CURRENT_PACKAGES_DIR}/bin/" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin") - endif() - file(GLOB_RECURSE _installed_dll_files RELATIVE "${CURRENT_INSTALLED_DIR}/tools/Qt6/bin" "${CURRENT_INSTALLED_DIR}/tools/Qt6/bin/*.dll") - foreach(_dll_to_remove IN LISTS _installed_dll_files) - file(GLOB_RECURSE _packaged_dll_file "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${_dll_to_remove}") - if(EXISTS "${_packaged_dll_file}") - file(REMOVE "${_packaged_dll_file}") - endif() - endforeach() - file(GLOB_RECURSE _folders LIST_DIRECTORIES true "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/**/") - file(GLOB_RECURSE _files "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/**/") - if(_files) - list(REMOVE_ITEM _folders ${_files}) - endif() - foreach(_dir IN LISTS _folders) - if(NOT "${_remaining_dll_files}" MATCHES "${_dir}") - file(REMOVE_RECURSE "${_dir}") - endif() - endforeach() - endif() - file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake/" - "${CURRENT_PACKAGES_DIR}/debug/share" - "${CURRENT_PACKAGES_DIR}/lib/cmake/" - "${CURRENT_PACKAGES_DIR}/debug/include" - ) - - if(VCPKG_LIBRARY_LINKAGE STREQUAL "static") - file(GLOB_RECURSE _bin_files "${CURRENT_PACKAGES_DIR}/bin/*") - if(NOT _bin_files STREQUAL "") - message(STATUS "Remaining files in bin: '${_bin_files}'") - else() # Only clean if empty otherwise let vcpkg throw and error. - file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/" "${CURRENT_PACKAGES_DIR}/debug/bin/") - endif() - endif() - - vcpkg_fixup_pkgconfig() -endfunction() - -function(qt_install_submodule) - cmake_parse_arguments(PARSE_ARGV 0 "_qis" "DISABLE_NINJA" - "" - "PATCHES;TOOL_NAMES;CONFIGURE_OPTIONS;CONFIGURE_OPTIONS_DEBUG;CONFIGURE_OPTIONS_RELEASE;CONFIGURE_OPTIONS_MAYBE_UNUSED") - - set(qt_plugindir ${QT6_DIRECTORY_PREFIX}plugins) - set(qt_qmldir ${QT6_DIRECTORY_PREFIX}qml) - - qt_download_submodule(PATCHES ${_qis_PATCHES}) - - if(_qis_DISABLE_NINJA) - set(_opt DISABLE_NINJA) - endif() - qt_cmake_configure(${_opt} - OPTIONS ${_qis_CONFIGURE_OPTIONS} - OPTIONS_DEBUG ${_qis_CONFIGURE_OPTIONS_DEBUG} - OPTIONS_RELEASE ${_qis_CONFIGURE_OPTIONS_RELEASE} - OPTIONS_MAYBE_UNUSED ${_qis_CONFIGURE_OPTIONS_MAYBE_UNUSED} - ) - - vcpkg_cmake_install(ADD_BIN_TO_PATH) - - qt_fixup_and_cleanup(TOOL_NAMES ${_qis_TOOL_NAMES}) - - qt_install_copyright("${SOURCE_PATH}") - set(SOURCE_PATH "${SOURCE_PATH}" PARENT_SCOPE) -endfunction() - -include("${CMAKE_CURRENT_LIST_DIR}/qt_port_details.cmake") diff --git a/vcpkg/ports/qtbase/cmake/qt_port_data.cmake b/vcpkg/ports/qtbase/cmake/qt_port_data.cmake deleted file mode 100644 index ad7c1f807c..0000000000 --- a/vcpkg/ports/qtbase/cmake/qt_port_data.cmake +++ /dev/null @@ -1,49 +0,0 @@ -set(qtbase_HASH "eb4b2f1fb02ab0ed5508d32449e140778278ff1a619cfcae14920b276b5c46e01a566d73fb8f84cf2cfc81e19cb11e53ab500df6b27d12ab875aa8c07bd15d6b") -set(qttools_HASH "311467d0e6970711b4d984fe792d2b75609f38c04121073d5c3c34c682fcee89787f6982c886e62206a76b1f647de60e56510439b0288f8bd1ae21a2683a37cd") -set(qtdeclarative_HASH "ca172e79af317f481d6f5e6388dc074fc6f99966b896135ab9991fa1a9502e46b0ac21b7f2bc38278448939e77882c5fd17252e3e6460c1665f8156fa99bceaf") -set(qtsvg_HASH "5a4209134afd3265d4b4b02a388a3078f2f915613c83e8a4aafd292e6b49d77019597f820468c8a9fe6c046c64e6890ac94ebc52e6b321a9b57a5ef3b51552e4") -set(qt5compat_HASH "31da40af3ab0a2283ead3363ee6c94a45018beccb777d2e4188f182d45ffb7e70d97543e22e5f6bc2c13df149676e44e259c8785626c54a4ed8757dcf414b4b0") -set(qtshadertools_HASH "b33e55f81d6878518dfe05db8ea3b319614dda10e215784496a61daaf8415fdeed1a3d802efc3cddc4fbca6c9894faf13475b35b3bb7d9a215b91238f9b38233") -set(qtquicktimeline_HASH "cb460db34b726216f539bcd305e257375b01250a4f2df546a9a27c53bf78287e2c9d1ecc81edc336e5d55b87006a271ddc435e5fb57a898947bcf93cf5ea1b90") -set(qtquick3d_HASH "d5a4557a6f0ea73b43de9238b8cd42fc037c417e72443a8cae96e8be779f82d5fd9efe1a09258a4d5dd55c4791b84192cb72e31bb1d744b618951080fe6fa1e2") -set(qttranslations_HASH "a1937f117af71a6896ebaf89f05bcb9c61c34711105609ac80a0f85d96cd427786e902ae4e2dccc38060c4fd9161f42a0cfdd7e39e618e3996fbe1c7f05c84d9") -set(qtwayland_HASH "2cd4f45f05ae60bc7f82b94f2e9c217ee4b8322f60381e1b079b90e0687e51cfbeb10b5dd724e1cca7e422b1b101d2b91c0ee47b1a732411cef330fb052c97c2") -set(qtdoc_HASH "5c0a58c28e11a1c5f3a1dedb4626e36a9c69d002dbbdccee8b843f0c24c9f31b781899b8467f36cbf098ae10fb81bc5217a38ea3f6c650646c17ffc72e8a79a1") -set(qtcoap_HASH "ac49332841a3f7a995be52224b00fdb9be728495069aa4873df8b67bb063a2726b58ecb19f51b9e75a40f941ae278786b96b723f2cdd51753ba9d9434c06be60") -set(qtopcua_HASH "7949331239c2556efdfcb790c79c1b3bdc7b06761613f54038588e4e3d2450e0a61ce8550d9af6b630a233aa8e5cc833d168a53c59fa58c2259d37fde11f1091") -set(qtimageformats_HASH "78871edcdf1ea0dec172e5d17fb7fee75c0512d18a7830ddcdcabb04719f57fc41faa7d1a82bcf4639213dbe98f495f817f5680745eb43a80b2e321f141d562a") -set(qtmqtt_HASH "02c5c30471ca7031facf978c05b00e6a300e90eeeb958389489f3e90a076bb4bf976aa2835af0443711d3c48e6abd4e1ef39d351e8c04e44d83a860867e63309") -set(qtnetworkauth_HASH "8357b2b833da9f652c88e706c7bf15b19b2c5b8f054914bfc16d33ea69dce86999b03fb7dd5b79e2a58d8d4e16af0fd2ff6dcf8e621ed251e63171fc8151f75b") -set(qt3d_HASH "d2b5ccf76f75db886acf4a73b1f2bc77e79a584f08f39915b7565179943c09a3ea90904af342a6d2d668b033161c41d6d4d20022e5e990ad55fa40fcb6746480") -set(qtactiveqt_HASH "f33ea2f2044a90fd7ee8bd6c20816d302324909100bb67b01484511139ea5e2221180ea648f6e07ec23819fcac8004048f6ad08100b147e54eb34a098920b510") -set(qtdatavis3d_HASH "e77112393e1c80091eb82aa7a11ad47ece46a24344d39ba097be991b36ff0d20ec0fd57533dc31c4727e8a99f0fefc0f9d4533122d2652b1294bbac50b0eb470") -set(qtdeviceutilities_HASH "70354cf3c8423662bb1c44bfd6a7c06b85d68338d67f2dd68190b6794ea1abfa591dfae27f41abf88dce248b9fcf921ec2a89d33645e6e5179652c6b3fe0e7ca") -set(qtlottie_HASH "be021c8800fc797e1c17d2bd40b6a8c1fbabf14a3e31caaa270807041151eb8ccad315a42c26914085e878e9d9f3ba99f26f872d345ed5900545a94fe6586ce7") -set(qtscxml_HASH "4eba366c2c10593cfc0fdeeff92aa9951b838837cacf113bf849b5da68da4d41d550490bc4be28620f766ab412ca4066c71ee7a1ff18651dd08267b01df6c2fe") -set(qtvirtualkeyboard_HASH "016400a65e14a5ec960f20ecf6b2b7c32fa0c67d530c5046b423633b02efce200e0967642a072ff825c54c334dfe45be3e569c16d641a735f181d233fa414782") -set(qtcharts_HASH "8e142bb3a925e802ab482890363ec1b7ed8c7b1d1bbbf6b30361afc8571ddef75d82f10b7d44bc29e6d87b752f235171f282080591f1ca252b2e47ad0b58b5ef") -set(qtconnectivity_HASH "381098e406ac18d87d34eb9087d1655c16e604059d69b77c04df9d444cefc77630a212f52b0fc2a1573c524044aa1837379d70460e152cd353731e52c4bd0e67") -set(qtpositioning_HASH "2983fde05cbccf86288cd989279551b5babeddcf9be2848870e59dbbfc2d91749465bf43c17e291d6df37ee746b5490c0bb1e6b3fd4298b4f0a22cc6d67db04e") -set(qtlocation_HASH "d7b8d4b9c99247362747d2d8fcf9207e710bed70c320d5c38e6868760cfe5ae2a158d1c0496af939a3e0d74369a86673cddfb25096ff8dda8dc209fd0df94e21") -set(qtmultimedia_HASH "bfcd04a5ba142e2a3bee3b67a261ffb4f651ac4e043e3dcafc0175bd25409de375041aa6fdda4f6899b00e4bad6c06ae9fd0d6a1e7db0b874f1bcf0a578d3c70") -set(qtremoteobjects_HASH "1b6030776c285f33a90379b235043125e06120521ff3dd8e3277c94243638c9294831e3e9866a2c04de3828b9246dd4756d762404ba8c0d987e747a4a767d4b0") -set(qtsensors_HASH "fcc437407191ea8d56f54bdbef07d0c25f15e1eefa74f5bb2c3a49af4418fb75cd8f7a16a9afc9efcba7e14ed842ca6bddeff6225949e1d193bb6e8ff55fe565") -set(qtserialbus_HASH "ba4d8c698e68508080f851d96428908b83f3d2f5d36dbcb00586567beb3001a8ca3f1d79fd9895aefb32c7d1a8400024e43cee2cdd4f427e80d47949593a3055") -set(qtserialport_HASH "faedff39212a98e6b3d96e0fb530c6b63c5fec519f5226b015771b8c5122528c8b087b6ccf74aed42ee87f61ffe324ac5c87152dad282395013a84e3f5cb2d3f") -set(qtwebchannel_HASH "6d9dae2925acfe560c2c1b4382d6e7ce7762f840e76b513f03f5e9e892fb4ad3fb0059ffef725210d88ee4210a8a09678af9b7d3dfbc6d7ff55f3e65396153dc") -set(qtwebengine_HASH "5e1f65b5c0cecd62623ac386bbc89b1222f41b8c17cec1dd43851692d21f56e8b2dba45dab9405c33e88e1d1b24998d93dbcbf371a6504a1c8cdb1a6b5a94bf7") -set(qtwebsockets_HASH "ccd2bde6f68aa0993f099b4755f6e79f64d8ff85be8891b2682194984851e0ec0f71dfa69aec53df6c7f49df7f123eff30920c9b1f5c79da5285ab5605d22dee") -set(qtwebview_HASH "9cae6f415941049c975a86f99afbb62f3177285a15d182655b9fbab5b3d9ff19d7fb0b646c243db75f382fd971f5b89bf29659c150294e9c4e7ced2921b77c2d") -set(qtinterfaceframework_REF "146d9eabba1bf49b333744e19519f3746c3e2adc") -set(qtapplicationmanager_HASH "eec95d8722ee264080c7d1b97b0e2c5dafbcf3a94ee34124a663db40e455e9635366a16e43b631ee9cf16169ad857797476a1445195e3d87997a90caa0c20243") -set(qtlanguageserver_HASH "15ece6a24b43502a66b992404230d4561fe3e3ac561bfbf75b1e56ca4b6f5e0110a95155207b844692b72e43fbaa44ab7c9ea39bfb21c30b2c3fd30f92ec3303") -set(qthttpserver_HASH "0830fb4c5968ec5e23576f58e117dcca9f012cf742043c8b4786fb7bdcd68cd86f49d15d1ba66ee64e80d5a50d3c797dbffdf6f977ad7c101bb5be1bc02c1323") -set(qtquick3dphysics_HASH "9be6bd188ff7d027d1d682809d7c53cf4ad49a99c65542d90908a5a1e5df3513929f8724205b71d5d5507be4cabb0c36fc00d7e1cc9a8fbb759d284cef216d49") -set(qtspeech_HASH "f6e598834ab455c9feb5836b0add05802261210be088f7860b746a214a5be7d332a43d7c09bd03eef48d362165f2739b858e966249c061c9ef537346453bd588") -set(qtgrpc_HASH "b643fbf69531b09183c4a0a7984b7b1b2f284df172718e76dbf8ba4275bb3d8b1d5d0e0f42e5dda3f88fcc42afa1cfbdf76be29dd1e9bb944921cd3e851ab272") -set(qtquickeffectmaker_HASH "9051418bd18c9bfe2afa4a8613456f8f4d58808f202510b66eb25c14f7e1036ed8ea320d1dba718d92cf9e6452e9fae01b8fb132009a775562bb31056cf68d88") -set(qtgraphs_HASH "b39f93def4b770a80a14480b47688ea5d567693893f93ed2826916087e92a27f5edb75a4013c5694caa5c21a5c6d1c478a49cdc1c329cbc6b5f3139745ba949c") - -# Keep for beta/rc -#set(qttools_qlitehtml_REF bd70f93ce41443a6a90a269531393f575685283e) -#set(qtwebengine_chromium_REF 0b138dc30d0aec7930c76a2595065629948ad9f7) diff --git a/vcpkg/ports/qtbase/cmake/qt_port_details.cmake b/vcpkg/ports/qtbase/cmake/qt_port_details.cmake deleted file mode 100644 index e5a1ac147f..0000000000 --- a/vcpkg/ports/qtbase/cmake/qt_port_details.cmake +++ /dev/null @@ -1,183 +0,0 @@ -### Steps to update the qt6 ports -## 1. Change QT_VERSION below to the new version -## 2. Set QT_UPDATE_VERSION to 1 -## 3. Add any new Qt modules to QT_PORTS -## 4. Run a build of `qtbase` -## 5. Fix any intermediate failures by adding the module into QT_FROM_GITHUB, QT_FROM_GITHUB_BRANCH, or QT_FROM_QT_GIT as appropriate -## 6. The build should fail with "Done downloading version and emitting hashes." This will have changed out the vcpkg.json versions of the qt ports and rewritten qt_port_data.cmake -## 7. Set QT_UPDATE_VERSION back to 0 - -set(QT_VERSION 6.7.2) -set(QT_DEV_BRANCH 0) - -set(QT_UPDATE_VERSION 0) - -if(PORT MATCHES "(qtquickcontrols2)") - set(VCPKG_POLICY_EMPTY_PACKAGE enabled) - return() -endif() - -### Setting up the git tag. - -set(QT_PORTS qt - qtbase - qttools - qtdeclarative - qtsvg - qt5compat - qtshadertools - qtquicktimeline - qtquick3d - qttranslations - qtwayland - qtdoc - qtcoap - qtopcua - qtimageformats - qtmqtt - qtnetworkauth - qt3d) - # qtquickcontrols2 -> moved into qtdeclarative -if(QT_VERSION VERSION_GREATER_EQUAL 6.1) - list(APPEND QT_PORTS - ## New in 6.1 - qtactiveqt - qtdatavis3d - qtdeviceutilities - qtlottie - qtscxml - qtvirtualkeyboard - qtcharts) -endif() -if(QT_VERSION VERSION_GREATER_EQUAL 6.2) - list(APPEND QT_PORTS - ## New in 6.2 - qtconnectivity - qtpositioning - qtlocation # back in 6.5 as tech preview - qtmultimedia - qtremoteobjects - qtsensors - qtserialbus - qtserialport - qtwebchannel - qtwebengine - qtwebsockets - qtwebview) -endif() -if(QT_VERSION VERSION_GREATER_EQUAL 6.2.2) - list(APPEND QT_PORTS - ## New in 6.2.2 - qtinterfaceframework - qtapplicationmanager) -endif() -if(QT_VERSION VERSION_GREATER_EQUAL 6.3.0) - list(APPEND QT_PORTS - ## New in 6.3.0 - qtlanguageserver) -endif() -if(QT_VERSION VERSION_GREATER_EQUAL 6.4.0) - list(APPEND QT_PORTS - ## New in 6.4.0 - qthttpserver - qtquick3dphysics - qtspeech) -endif() -if(QT_VERSION VERSION_GREATER_EQUAL 6.5.0) - list(APPEND QT_PORTS - ## New in 6.5.0 - qtgrpc - qtquickeffectmaker - ) -endif() -if(QT_VERSION VERSION_GREATER_EQUAL 6.6.0) - list(APPEND QT_PORTS - ## New in 6.6.0 - qtgraphs - #qtvncserver # only commercial - #qtinsighttracker - ) -endif() -#qtinsighttracker -#qtvncserver -#qtgraphs - -# 1. By default, modules come from the official release -# 2. These modules are mirrored to github and have tags matching the release -set(QT_FROM_GITHUB qtcoap qtopcua qtmqtt qtapplicationmanager) -# 3. These modules are mirrored to github and have branches matching the release -set(QT_FROM_GITHUB_BRANCH qtdeviceutilities) -# 4. These modules are not mirrored to github and not part of the release -set(QT_FROM_QT_GIT qtinterfaceframework) -# For beta releases uncomment the next two lines and comment the lines with QT_FROM_GITHUB, QT_FROM_GITHUB_BRANCH, QT_FROM_QT_GIT -#set(QT_FROM_QT_GIT ${QT_PORTS}) -#list(POP_FRONT QT_FROM_QT_GIT) - -function(qt_get_url_filename qt_port out_urls out_filename) - if("${qt_port}" IN_LIST QT_FROM_GITHUB) - set(urls "https://github.com/qt/${qt_port}/archive/v${QT_VERSION}.tar.gz") - set(filename "qt-${qt_port}-v${QT_VERSION}.tar.gz") - elseif("${qt_port}" IN_LIST QT_FROM_GITHUB_BRANCH) - set(urls "https://github.com/qt/${qt_port}/archive/${QT_VERSION}.tar.gz") - set(filename "qt-${qt_port}-${QT_VERSION}.tar.gz") - else() - string(SUBSTRING "${QT_VERSION}" 0 3 qt_major_minor) - - if(NOT QT_DEV_BRANCH) - set(branch_subpath "archive") - else() - set(branch_subpath "development_releases") - endif() - - set(filename "${qt_port}-everywhere-src-${QT_VERSION}.tar.xz") - set(mirrors - "https://download.qt.io/" - "https://mirrors.ocf.berkeley.edu/qt/" - ) - set(url_subpath "${branch_subpath}/qt/${qt_major_minor}/${QT_VERSION}/submodules/${filename}") - list(TRANSFORM mirrors APPEND "${url_subpath}" OUTPUT_VARIABLE urls) - endif() - set(${out_urls} ${urls} PARENT_SCOPE) - set(${out_filename} "${filename}" PARENT_SCOPE) -endfunction() - -if(QT_UPDATE_VERSION) - if(NOT PORT STREQUAL "qtbase") - message(FATAL_ERROR "QT_UPDATE_VERSION must be used from the root 'qtbase' package") - endif() - set(VCPKG_USE_HEAD_VERSION 1) - set(msg "" CACHE INTERNAL "") - foreach(qt_port IN LISTS QT_PORTS) - set(port_json "${CMAKE_CURRENT_LIST_DIR}/../../${qt_port}/vcpkg.json") - file(READ "${port_json}" _control_contents) - string(REGEX REPLACE "\"version(-(string|semver))?\": [^\n]+\n" "\"version\": \"${QT_VERSION}\",\n" _control_contents "${_control_contents}") - string(REGEX REPLACE "\"port-version\": [^\n]+\n" "" _control_contents "${_control_contents}") - file(WRITE "${port_json}" "${_control_contents}") - if(qt_port STREQUAL "qt") - continue() - endif() - if("${qt_port}" IN_LIST QT_FROM_QT_GIT) - vcpkg_find_acquire_program(GIT) - execute_process( - COMMAND "${GIT}" ls-remote -t "https://code.qt.io/cgit/qt/${qt_port}.git" "v${QT_VERSION}" - OUTPUT_VARIABLE out - ) - string(SUBSTRING "${out}" 0 40 tag_sha) - string(APPEND msg "set(${qt_port}_REF ${tag_sha})\n") - else() - qt_get_url_filename("${qt_port}" urls filename) - vcpkg_download_distfile(archive - URLS ${urls} - FILENAME "${filename}" - SKIP_SHA512 - ) - file(SHA512 "${archive}" hash) - string(APPEND msg "set(${qt_port}_HASH \"${hash}\")\n") - endif() - endforeach() - message("${msg}") - file(WRITE "${CMAKE_CURRENT_LIST_DIR}/qt_port_data_new.cmake" "${msg}") - message(FATAL_ERROR "Done downloading version and emitting hashes.") -endif() - -include("${CMAKE_CURRENT_LIST_DIR}/qt_port_data.cmake") diff --git a/vcpkg/ports/qtbase/config_install.patch b/vcpkg/ports/qtbase/config_install.patch deleted file mode 100644 index fdfc703301..0000000000 --- a/vcpkg/ports/qtbase/config_install.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/cmake/QtBuildPathsHelpers.cmake b/cmake/QtBuildPathsHelpers.cmake -index bd186c28b..edee52e8b 100644 ---- a/cmake/QtBuildPathsHelpers.cmake -+++ b/cmake/QtBuildPathsHelpers.cmake -@@ -100,7 +100,7 @@ function(qt_internal_set_up_global_paths) - if(QT_CONFIG_INSTALL_DIR) - string(APPEND QT_CONFIG_INSTALL_DIR "/") - endif() -- string(APPEND QT_CONFIG_INSTALL_DIR ${__config_path_part}) -+ string(APPEND QT_CONFIG_INSTALL_DIR "share") - - set(QT_BUILD_DIR "${QT_BUILD_DIR}" PARENT_SCOPE) - set(QT_INSTALL_DIR "${QT_INSTALL_DIR}" PARENT_SCOPE) diff --git a/vcpkg/ports/qtbase/dont_force_cmakecache_latest.patch b/vcpkg/ports/qtbase/dont_force_cmakecache_latest.patch deleted file mode 100644 index 752cefe6d2..0000000000 --- a/vcpkg/ports/qtbase/dont_force_cmakecache_latest.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/cmake/QtPostProcessHelpers.cmake b/cmake/QtPostProcessHelpers.cmake -index 4f8106dfa..bec5c402e 100644 ---- a/cmake/QtPostProcessHelpers.cmake -+++ b/cmake/QtPostProcessHelpers.cmake -@@ -414,7 +414,7 @@ function(qt_generate_install_prefixes out_var) - - foreach(var ${vars}) - get_property(docstring CACHE "${var}" PROPERTY HELPSTRING) -- string(APPEND content "set(${var} \"${${var}}\" CACHE STRING \"${docstring}\" FORCE)\n") -+ string(APPEND content "set(${var} \"${${var}}\" CACHE STRING \"${docstring}\")\n") - endforeach() - - set(${out_var} "${content}" PARENT_SCOPE) diff --git a/vcpkg/ports/qtbase/env.patch b/vcpkg/ports/qtbase/env.patch deleted file mode 100644 index 6a37167592..0000000000 --- a/vcpkg/ports/qtbase/env.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/cmake/QtTestHelpers.cmake b/cmake/QtTestHelpers.cmake -index 279ab07dd..951fd3d36 100644 ---- a/cmake/QtTestHelpers.cmake -+++ b/cmake/QtTestHelpers.cmake -@@ -653,9 +653,9 @@ function(qt_internal_collect_command_environment out_path out_plugin_path) - # The regular CMAKE_INSTALL_PREFIX can be different for example when building standalone tests. - # Any given CMAKE_INSTALL_PREFIX takes priority over qt_relocatable_install_prefix for the - # PATH environment variable. -- set(install_prefixes "${CMAKE_INSTALL_PREFIX}") -+ set(install_prefixes "${CMAKE_INSTALL_PREFIX}$<$:/debug>") - if(QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX) -- list(APPEND install_prefixes "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}") -+ list(APPEND install_prefixes "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}$<$:/debug>") - endif() - - file(TO_NATIVE_PATH "${CMAKE_CURRENT_BINARY_DIR}" test_env_path) diff --git a/vcpkg/ports/qtbase/fix-host-aliasing.patch b/vcpkg/ports/qtbase/fix-host-aliasing.patch deleted file mode 100644 index 1823a351d9..0000000000 --- a/vcpkg/ports/qtbase/fix-host-aliasing.patch +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/cmake/QtTargetHelpers.cmake b/cmake/QtTargetHelpers.cmake -index 180ec33..a03e3b1 100644 ---- a/cmake/QtTargetHelpers.cmake -+++ b/cmake/QtTargetHelpers.cmake -@@ -281,10 +281,10 @@ function(qt_internal_add_target_aliases target) - set_target_properties("${target}" PROPERTIES _qt_versionfull_alias "${versionfull_alias}") - - get_target_property(type "${target}" TYPE) -- if (type STREQUAL EXECUTABLE) -+ if (type STREQUAL EXECUTABLE AND NOT TARGET "${versionfull_alias}") - add_executable("${versionless_alias}" ALIAS "${target}") - add_executable("${versionfull_alias}" ALIAS "${target}") -- else() -+ elseif(NOT type STREQUAL EXECUTABLE) - add_library("${versionless_alias}" ALIAS "${target}") - add_library("${versionfull_alias}" ALIAS "${target}") - endif() diff --git a/vcpkg/ports/qtbase/fix_cmake_build.patch b/vcpkg/ports/qtbase/fix_cmake_build.patch deleted file mode 100644 index 65410e3fc7..0000000000 --- a/vcpkg/ports/qtbase/fix_cmake_build.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/cmake/QtBuildInternalsExtra.cmake.in b/cmake/QtBuildInternalsExtra.cmake.in -index ffc9d90f8..0b3a7d59e 100644 ---- a/cmake/QtBuildInternalsExtra.cmake.in -+++ b/cmake/QtBuildInternalsExtra.cmake.in -@@ -51,8 +51,8 @@ endif() - set(QT_WILL_INSTALL @QT_WILL_INSTALL@ CACHE BOOL - "Boolean indicating if doing a Qt prefix build (vs non-prefix build)." FORCE) - --set(QT_SOURCE_TREE "@QT_SOURCE_TREE@" CACHE PATH --"A path to the source tree of the previously configured QtBase project." FORCE) -+# set(QT_SOURCE_TREE "@QT_SOURCE_TREE@" CACHE PATH -+# "A path to the source tree of the previously configured QtBase project." FORCE) - - # Propagate decision of building tests and examples to other repositories. - set(QT_BUILD_TESTS @QT_BUILD_TESTS@ CACHE BOOL "Build the testing tree.") diff --git a/vcpkg/ports/qtbase/fix_cmake_build_type.patch b/vcpkg/ports/qtbase/fix_cmake_build_type.patch deleted file mode 100644 index ceb5eaa032..0000000000 --- a/vcpkg/ports/qtbase/fix_cmake_build_type.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/cmake/QtBuildInternalsExtra.cmake.in b/cmake/QtBuildInternalsExtra.cmake.in -index 21c40f2..c212148 100644 ---- a/cmake/QtBuildInternalsExtra.cmake.in -+++ b/cmake/QtBuildInternalsExtra.cmake.in -@@ -162,6 +162,7 @@ function(qt_internal_force_set_cmake_build_type_conditionally value) - # STREQUAL check needs to be expanded variables because an undefined var is not equal to an - # empty defined var. - if("${CMAKE_BUILD_TYPE}" STREQUAL "${CMAKE_BUILD_TYPE_INIT}" -+ AND NOT DEFINED CACHE{CMAKE_BUILD_TYPE} - AND NOT __qt_toolchain_cmake_build_type_before_project_call - AND NOT QT_NO_FORCE_SET_CMAKE_BUILD_TYPE - AND NOT __qt_internal_extras_is_multi_config) ---- a/cmake/QtBuildOptionsHelpers.cmake -+++ b/cmake/QtBuildOptionsHelpers.cmake -@@ -18,6 +18,7 @@ macro(qt_internal_set_default_build_type) - # See also qt_internal_force_set_cmake_build_type_conditionally which is used - # to set the build type when building other repos or tests. - if("${CMAKE_BUILD_TYPE}" STREQUAL "${CMAKE_BUILD_TYPE_INIT}" -+ AND NOT DEFINED CACHE{CMAKE_BUILD_TYPE} - AND NOT __qt_auto_detect_cmake_build_type_before_project_call - AND NOT __qt_build_internals_cmake_build_type - AND NOT CMAKE_CONFIGURATION_TYPES) diff --git a/vcpkg/ports/qtbase/fix_deploy_windows.patch b/vcpkg/ports/qtbase/fix_deploy_windows.patch deleted file mode 100644 index 2d2f46ff0c..0000000000 --- a/vcpkg/ports/qtbase/fix_deploy_windows.patch +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/src/corelib/Qt6CoreMacros.cmake b/src/corelib/Qt6CoreMacros.cmake -index 8a0d07feac..0e6a720c20 100644 ---- a/src/corelib/Qt6CoreMacros.cmake -+++ b/src/corelib/Qt6CoreMacros.cmake -@@ -2977,17 +2977,19 @@ function(_qt_internal_setup_deploy_support) - if(CMAKE_HOST_WIN32) -+ if(CMAKE_CROSSCOMPILING AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug") -- if(CMAKE_CROSSCOMPILING) - set(qt_paths_ext ".bat") -+ elseif(CMAKE_BUILD_TYPE STREQUAL "Debug") -+ set(qt_paths_ext ".debug.bat") - else() - set(qt_paths_ext ".exe") - endif() - else() - set(qt_paths_ext "") - endif() - - - - set(target_qtpaths_path "") -- set(qtpaths_prefix "${QT6_INSTALL_PREFIX}/${QT6_INSTALL_BINS}") -+ set(qtpaths_prefix "${QT6_INSTALL_PREFIX}/tools/Qt6/bin") - get_property(qt_major_version TARGET "${target}" PROPERTY INTERFACE_QT_MAJOR_VERSION) - if(qt_major_version) - set(target_qtpaths_with_major_version_path diff --git a/vcpkg/ports/qtbase/fix_egl.patch b/vcpkg/ports/qtbase/fix_egl.patch deleted file mode 100644 index 7868310687..0000000000 --- a/vcpkg/ports/qtbase/fix_egl.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake -index eafbc1ff9..dd4068838 100644 ---- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake -+++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake -@@ -82,6 +82,7 @@ find_path(EGL_INCLUDE_DIR - find_library(EGL_LIBRARY - NAMES - EGL -+ libEGL # required to find angle on windows within vcpkg. - HINTS - ${PKG_EGL_LIBRARY_DIRS} - ) diff --git a/vcpkg/ports/qtbase/fix_egl_2.patch b/vcpkg/ports/qtbase/fix_egl_2.patch deleted file mode 100644 index 78b1c360fc..0000000000 --- a/vcpkg/ports/qtbase/fix_egl_2.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake -index db48f79b9..4b1686132 100644 ---- a/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake -+++ b/cmake/3rdparty/extra-cmake-modules/find-modules/FindEGL.cmake -@@ -116,7 +116,7 @@ if(EGL_INCLUDE_DIR) - unset(_EGL_version_lines) - endif() - --cmake_push_check_state(RESET) -+cmake_push_check_state() # To be able to fix the compile check in vcpkg-cmake-wrapper - list(APPEND CMAKE_REQUIRED_LIBRARIES "${EGL_LIBRARY}") - list(APPEND CMAKE_REQUIRED_INCLUDES "${EGL_INCLUDE_DIR}") - list(APPEND CMAKE_REQUIRED_DEFINITIONS "${EGL_DEFINITIONS}") diff --git a/vcpkg/ports/qtbase/harfbuzz.patch b/vcpkg/ports/qtbase/harfbuzz.patch deleted file mode 100644 index a2f8e74249..0000000000 --- a/vcpkg/ports/qtbase/harfbuzz.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/cmake/FindWrapSystemHarfbuzz.cmake b/cmake/FindWrapSystemHarfbuzz.cmake -index 3cb44aa76..9bf0d7165 100644 ---- a/cmake/FindWrapSystemHarfbuzz.cmake -+++ b/cmake/FindWrapSystemHarfbuzz.cmake -@@ -6,7 +6,7 @@ if(TARGET WrapSystemHarfbuzz::WrapSystemHarfbuzz) - endif() - set(WrapSystemHarfbuzz_REQUIRED_VARS __harfbuzz_found) - --find_package(harfbuzz ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} QUIET) -+find_package(harfbuzz QUIET) # VCPKG is missing the version file for harfbuzz. - - # Gentoo has some buggy version of a harfbuzz Config file. Check if include paths are valid. - set(__harfbuzz_target_name "harfbuzz::harfbuzz") diff --git a/vcpkg/ports/qtbase/installed_dir.patch b/vcpkg/ports/qtbase/installed_dir.patch deleted file mode 100644 index 9186731415..0000000000 --- a/vcpkg/ports/qtbase/installed_dir.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/cmake/qt.toolchain.cmake.in b/cmake/qt.toolchain.cmake.in -index 6e37ae02..e7e84468 100644 ---- a/cmake/qt.toolchain.cmake.in -+++ b/cmake/qt.toolchain.cmake.in -@@ -65,6 +65,10 @@ get_filename_component(QT_TOOLCHAIN_RELOCATABLE_INSTALL_PREFIX - # one level higher is what we're looking for. - get_filename_component(QT_TOOLCHAIN_RELOCATABLE_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}/.." ABSOLUTE) - -+get_filename_component(vcpkg_installed_dir -+ ${CMAKE_CURRENT_LIST_DIR}/../../../ -+ ABSOLUTE) -+ - # REROOT_PATH_ISSUE_MARKER - # There's a subdirectory check in cmake's cmFindCommon::RerootPaths() function, that doesn't handle - # the case of CMAKE_PREFIX_PATH == CMAKE_FIND_ROOT_PATH for a particular pair of entries. diff --git a/vcpkg/ports/qtbase/portfile.cmake b/vcpkg/ports/qtbase/portfile.cmake deleted file mode 100644 index e408d92f7a..0000000000 --- a/vcpkg/ports/qtbase/portfile.cmake +++ /dev/null @@ -1,502 +0,0 @@ -# Reminder for myself and everybody else: -# Qt cross module dependency information within the Qt respository is wrong and/or incomplete. -# Always check the toplevel CMakeLists.txt for the find_package call and search for linkage against the Qt:: targets -# Often enough certain (bigger) dependencies are only used to build examples and/or tests. -# As such getting the correct dependency information relevant for vcpkg requires a manual search/check -set(QT_IS_LATEST ON) - -## All above goes into the qt_port_hashes in the future -include("${CMAKE_CURRENT_LIST_DIR}/cmake/qt_install_submodule.cmake") - -set(${PORT}_PATCHES - - allow_outside_prefix.patch - config_install.patch - fix_cmake_build.patch - harfbuzz.patch - fix_egl.patch - fix_egl_2.patch - installed_dir.patch - GLIB2-static.patch # alternative is to force pkg-config - clang-cl_source_location.patch - clang-cl_QGADGET_fix.diff - fix-host-aliasing.patch - fix_deploy_windows.patch - ) - -if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW) - list(APPEND ${PORT}_PATCHES env.patch) -endif() - -list(APPEND ${PORT}_PATCHES - dont_force_cmakecache_latest.patch - ) - -if(VCPKG_TARGET_IS_WINDOWS AND NOT "doubleconversion" IN_LIST FEATURES) - message(FATAL_ERROR "${PORT} requires feature doubleconversion on windows!" ) -endif() - -if(VCPKG_TARGET_IS_LINUX) - message(WARNING "qtbase currently requires packages from the system package manager. " - "They can be installed on Ubuntu systems via sudo apt-get install " - "'^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev " - "libxkbcommon-x11-dev libegl1-mesa-dev.") -endif() - -# Features can be found via searching for qt_feature in all configure.cmake files in the source: -# The files also contain information about the Platform for which it is searched -# Always use FEATURE_ in vcpkg_cmake_configure -# (using QT_FEATURE_X overrides Qts condition check for the feature.) -# Theoretically there is a feature for every widget to enable/disable it but that is way to much for vcpkg - -set(input_vars doubleconversion freetype harfbuzz libb2 jpeg libmd4c png sql-sqlite) -set(INPUT_OPTIONS) -foreach(_input IN LISTS input_vars) - if(_input MATCHES "(png|jpeg)" ) - list(APPEND INPUT_OPTIONS -DINPUT_lib${_input}:STRING=) - elseif(_input MATCHES "(sql-sqlite)") # Not yet used by the cmake build - else() - list(APPEND INPUT_OPTIONS -DINPUT_${_input}:STRING=) - endif() - if("${_input}" IN_LIST FEATURES) - string(APPEND INPUT_OPTIONS system) - elseif(_input STREQUAL "libb2" AND NOT VCPKG_TARGET_IS_WINDOWS) - string(APPEND INPUT_OPTIONS system) - elseif(_input STREQUAL "libmd4c") - string(APPEND INPUT_OPTIONS qt) # libmd4c is not yet in VCPKG (but required by qtdeclarative) - else() - string(APPEND INPUT_OPTIONS no) - endif() -endforeach() - -# General features: - -vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS -FEATURES - "appstore-compliant" FEATURE_appstore_compliant - "zstd" FEATURE_zstd - "framework" FEATURE_framework - "concurrent" FEATURE_concurrent - "concurrent" FEATURE_future - "dbus" FEATURE_dbus - "gui" FEATURE_gui - "thread" FEATURE_thread - "network" FEATURE_network - "sql" FEATURE_sql - "widgets" FEATURE_widgets - #"xml" FEATURE_xml # Required to build moc - "testlib" FEATURE_testlib - "zstd" CMAKE_REQUIRE_FIND_PACKAGE_zstd - ${require_features} -INVERTED_FEATURES - "zstd" CMAKE_DISABLE_FIND_PACKAGE_ZSTD - "dbus" CMAKE_DISABLE_FIND_PACKAGE_WrapDBus1 - ) - -list(APPEND FEATURE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libudev:BOOL=ON) -list(APPEND FEATURE_OPTIONS -DFEATURE_xml:BOOL=ON) - -if(VCPKG_QT_NAMESPACE) - list(APPEND FEATURE_OPTIONS "-DQT_NAMESPACE:STRING=${VCPKG_QT_NAMESPACE}") -endif() - -# Corelib features: -vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_CORE_OPTIONS -FEATURES - "doubleconversion" FEATURE_doubleconversion - "glib" FEATURE_glib - "icu" FEATURE_icu - "pcre2" FEATURE_pcre2 - #"icu" CMAKE_REQUIRE_FIND_PACKAGE_ICU - "glib" CMAKE_REQUIRE_FIND_PACKAGE_GLIB2 -INVERTED_FEATURES - #"doubleconversion" CMAKE_DISABLE_FIND_PACKAGE_WrapDoubleConversion # Required - #"pcre2" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemPCRE2 # Bug in qt cannot be deactivated - "icu" CMAKE_DISABLE_FIND_PACKAGE_ICU - "glib" CMAKE_DISABLE_FIND_PACKAGE_GLIB2 - ) - -list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_LTTngUST:BOOL=ON) -list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_PPS:BOOL=ON) -list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Slog2:BOOL=ON) -list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libsystemd:BOOL=ON) -list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_WrapBacktrace:BOOL=ON) -#list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_WrapAtomic:BOOL=ON) # Cannot be disabled on x64 platforms -#list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_WrapRt:BOOL=ON) # Cannot be disabled on osx -list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_PPS:BOOL=ON) -list(APPEND FEATURE_CORE_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Slog2:BOOL=ON) - -# Network features: - vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_NET_OPTIONS - FEATURES - "openssl" FEATURE_openssl - "brotli" FEATURE_brotli - "securetransport" FEATURE_securetransport - #"brotli" CMAKE_REQUIRE_FIND_PACKAGE_WrapBrotli - #"openssl" CMAKE_REQUIRE_FIND_PACKAGE_WrapOpenSSL - INVERTED_FEATURES - "brotli" CMAKE_DISABLE_FIND_PACKAGE_WrapBrotli - "openssl" CMAKE_DISABLE_FIND_PACKAGE_WrapOpenSSL - ) - -if("openssl" IN_LIST FEATURES) - list(APPEND FEATURE_NET_OPTIONS -DINPUT_openssl=linked) -else() - list(APPEND FEATURE_NET_OPTIONS -DINPUT_openssl=no) -endif() - -list(APPEND FEATURE_NET_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libproxy:BOOL=ON) -list(APPEND FEATURE_NET_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_GSSAPI:BOOL=ON) -list(APPEND FEATURE_NET_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_WrapResolv:BOOL=ON) - -# Gui features: -vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_GUI_OPTIONS - FEATURES - "freetype" FEATURE_freetype # required on windows - "harfbuzz" FEATURE_harfbuzz - "fontconfig" FEATURE_fontconfig # NOT WINDOWS - "jpeg" FEATURE_jpeg - "png" FEATURE_png - "opengl" FEATURE_opengl - "xlib" FEATURE_xlib - "xkb" FEATURE_xkbcommon - "xcb" FEATURE_xcb - "xcb-xlib" FEATURE_xcb_xlib - "xkbcommon-x11" FEATURE_xkbcommon_x11 - "xrender" FEATURE_xrender # requires FEATURE_xcb_native_painting; otherwise disabled. - "xrender" FEATURE_xcb_native_painting # experimental - "gles2" FEATURE_opengles2 - "gles3" FEATURE_opengles3 - #Cannot be required since Qt will look in CONFIG mode first but is controlled via CMAKE_DISABLE_FIND_PACKAGE_Vulkan below - #"vulkan" CMAKE_REQUIRE_FIND_PACKAGE_WrapVulkanHeaders - "egl" FEATURE_egl - #"fontconfig" CMAKE_REQUIRE_FIND_PACKAGE_Fontconfig - #"harfbuzz" CMAKE_REQUIRE_FIND_PACKAGE_WrapSystemHarfbuzz - #"jpeg" CMAKE_REQUIRE_FIND_PACKAGE_JPEG - #"png" CMAKE_REQUIRE_FIND_PACKAGE_PNG - #"xlib" CMAKE_REQUIRE_FIND_PACKAGE_X11 - #"xkb" CMAKE_REQUIRE_FIND_PACKAGE_XKB - #"xcb" CMAKE_REQUIRE_FIND_PACKAGE_XCB - #"xcb-xlib" CMAKE_REQUIRE_FIND_PACKAGE_X11_XCB - #"xkbcommon-x11" CMAKE_REQUIRE_FIND_PACKAGE_XKB_COMMON_X11 - #"xrender" CMAKE_REQUIRE_FIND_PACKAGE_XRender - INVERTED_FEATURES - "vulkan" CMAKE_DISABLE_FIND_PACKAGE_Vulkan - "opengl" CMAKE_DISABLE_FIND_PACKAGE_WrapOpenGL - "egl" CMAKE_DISABLE_FIND_PACKAGE_EGL - "gles2" CMAKE_DISABLE_FIND_PACKAGE_GLESv2 - "gles3" CMAKE_DISABLE_FIND_PACKAGE_GLESv3 - "fontconfig" CMAKE_DISABLE_FIND_PACKAGE_Fontconfig - #"freetype" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemFreetype # Bug in qt cannot be deactivated - "harfbuzz" CMAKE_DISABLE_FIND_PACKAGE_WrapSystemHarfbuzz - "jpeg" CMAKE_DISABLE_FIND_PACKAGE_JPEG - "png" CMAKE_DISABLE_FIND_PACKAGE_PNG - "xlib" CMAKE_DISABLE_FIND_PACKAGE_X11 - "xkb" CMAKE_DISABLE_FIND_PACKAGE_XKB - "xcb" CMAKE_DISABLE_FIND_PACKAGE_XCB - "xcb-xlib" CMAKE_DISABLE_FIND_PACKAGE_X11_XCB - "xkbcommon-x11" CMAKE_DISABLE_FIND_PACKAGE_XKB_COMMON_X11 - "xrender" CMAKE_DISABLE_FIND_PACKAGE_XRender - # There are more X features but I am unsure how to safely disable them! Most of them seem to be found automaticall with find_package(X11) - ) - -if("gles2" IN_LIST FEATURES) - list(APPEND FEATURE_GUI_OPTIONS -DINPUT_opengl='es2') - list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengl_desktop=OFF) -endif() - -if(NOT "opengl" IN_LIST FEATURES AND NOT "gles2" IN_LIST FEATURES) - list(APPEND FEATURE_GUI_OPTIONS -DINPUT_opengl='no') - list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengl_desktop=OFF) - list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengl_dynamic=OFF) -endif() - -if("xcb" IN_LIST FEATURES) - list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xcb=yes) -else() - list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xcb=no) -endif() -if("xkb" IN_LIST FEATURES) - list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xkbcommon=yes) -else() - list(APPEND FEATURE_GUI_OPTIONS -DINPUT_xkbcommon=no) -endif() - -# Disable OpenGL ES 3.1 and 3.2 -list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengles3:BOOL=OFF) -list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengles31:BOOL=OFF) -list(APPEND FEATURE_GUI_OPTIONS -DFEATURE_opengles32:BOOL=OFF) - -list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_ATSPI2:BOOL=ON) -list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_DirectFB:BOOL=ON) -list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libdrm:BOOL=ON) -list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_gbm:BOOL=ON) -list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Libinput:BOOL=ON) -list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Mtdev:BOOL=ON) -list(APPEND FEATURE_GUI_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_Tslib:BOOL=ON) -# sql-drivers features: - -vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_SQLDRIVERS_OPTIONS - FEATURES - "sql-sqlite" FEATURE_system_sqlite - "sql-odbc" FEATURE_sql_odbc - "sql-mysql" FEATURE_sql_mysql - "sql-oci" FEATURE_sql_oci - #"sql-psql" CMAKE_REQUIRE_FIND_PACKAGE_PostgreSQL - #"sql-sqlite" CMAKE_REQUIRE_FIND_PACKAGE_SQLite3 - INVERTED_FEATURES - "sql-psql" CMAKE_DISABLE_FIND_PACKAGE_PostgreSQL - "sql-sqlite" CMAKE_DISABLE_FIND_PACKAGE_SQLite3 - "sql-odbc" CMAKE_DISABLE_FIND_PACKAGE_ODBC - "sql-mysql" CMAKE_DISABLE_FIND_PACKAGE_MySQL - "sql-oci" CMAKE_DISABLE_FIND_PACKAGE_Oracle - ) - -set(DB_LIST DB2 Interbase Mimer) -foreach(_db IN LISTS DB_LIST) - list(APPEND FEATURE_SQLDRIVERS_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_${_db}:BOOL=ON) -endforeach() - -# printsupport features: -# vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_PRINTSUPPORT_OPTIONS - # ) -list(APPEND FEATURE_PRINTSUPPORT_OPTIONS -DCMAKE_DISABLE_FIND_PACKAGE_CUPS:BOOL=ON) - -vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_WIDGETS_OPTIONS - FEATURES - "gtk3" FEATURE_gtk3 - INVERTED_FEATURES - "gtk3" CMAKE_DISABLE_FIND_PACKAGE_GTK3 -) - -set(TOOL_NAMES - androiddeployqt - androidtestrunner - cmake_automoc_parser - moc - qdbuscpp2xml - qdbusxml2cpp - qlalr - qmake - qmake6 - qvkgen - rcc - tracegen - uic - qtpaths - qtpaths6 - windeployqt - windeployqt6 - macdeployqt - macdeployqt6 - androiddeployqt6 - syncqt - tracepointgen - ) - -qt_install_submodule(PATCHES ${${PORT}_PATCHES} - TOOL_NAMES ${TOOL_NAMES} - CONFIGURE_OPTIONS - #--trace-expand - ${FEATURE_OPTIONS} - ${FEATURE_CORE_OPTIONS} - ${FEATURE_NET_OPTIONS} - ${FEATURE_GUI_OPTIONS} - ${FEATURE_SQLDRIVERS_OPTIONS} - ${FEATURE_PRINTSUPPORT_OPTIONS} - ${FEATURE_WIDGETS_OPTIONS} - ${INPUT_OPTIONS} - -DQT_USE_BUNDLED_BundledFreetype:BOOL=FALSE - -DQT_USE_BUNDLED_BundledHarfbuzz:BOOL=FALSE - -DQT_USE_BUNDLED_BundledLibpng:BOOL=FALSE - -DQT_USE_BUNDLED_BundledPcre2:BOOL=FALSE - -DINPUT_bundled_xcb_xinput:STRING=no - -DFEATURE_force_debug_info:BOOL=ON - -DFEATURE_relocatable:BOOL=ON - CONFIGURE_OPTIONS_RELEASE - CONFIGURE_OPTIONS_DEBUG - -DFEATURE_debug:BOOL=ON - CONFIGURE_OPTIONS_MAYBE_UNUSED - FEATURE_appstore_compliant # only used for android/ios - ) - -# Install CMake helper scripts -file(COPY - "${CMAKE_CURRENT_LIST_DIR}/cmake/" - DESTINATION - "${CURRENT_PACKAGES_DIR}/share/${PORT}" - ) - -file(CONFIGURE OUTPUT "${CURRENT_PACKAGES_DIR}/share/${PORT}/port_status.cmake" CONTENT "set(qtbase_with_icu ${FEATURE_icu})\n") - -set(other_files qt-cmake - qt-cmake-private - qt-cmake-standalone-test - qt-configure-module - qt-internal-configure-tests - qt-cmake-create - ) -if(CMAKE_HOST_WIN32) - set(script_suffix ".bat") -else() - set(script_suffix "") -endif() -list(TRANSFORM other_files APPEND "${script_suffix}") - -list(APPEND other_files - android_cmakelist_patcher.sh - android_emulator_launcher.sh - ensure_pro_file.cmake - syncqt.pl - target_qt.conf - qt-cmake-private-install.cmake - qt-testrunner.py - sanitizer-testrunner.py - ) - -foreach(_config debug release) - if(_config MATCHES "debug") - set(path_suffix debug/) - else() - set(path_suffix) - endif() - if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/${path_suffix}bin") - continue() - endif() - file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${path_suffix}") - foreach(other_file IN LISTS other_files) - if(EXISTS "${CURRENT_PACKAGES_DIR}/${path_suffix}bin/${other_file}") - set(target_file "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${path_suffix}${other_file}") - file(RENAME "${CURRENT_PACKAGES_DIR}/${path_suffix}bin/${other_file}" "${target_file}") - file(READ "${target_file}" _contents) - if(_config MATCHES "debug") - string(REPLACE "..\\share\\" "..\\..\\..\\..\\share\\" _contents "${_contents}") - string(REPLACE "../share/" "../../../../share/" _contents "${_contents}") - else() - string(REPLACE "..\\share\\" "..\\..\\..\\share\\" _contents "${_contents}") - string(REPLACE "../share/" "../../../share/" _contents "${_contents}") - endif() - string(REGEX REPLACE "set cmake_path=[^\n]+\n" "set cmake_path=cmake\n" _contents "${_contents}") - string(REGEX REPLACE "original_cmake_path=[^\n]+\n" "original_cmake_path=does-not-exist\n" _contents "${_contents}") - file(WRITE "${target_file}" "${_contents}") - endif() - endforeach() -endforeach() - -# Fixup qt.toolchain.cmake -set(qttoolchain "${CURRENT_PACKAGES_DIR}/share/Qt6/qt.toolchain.cmake") -file(READ "${qttoolchain}" toolchain_contents) -string(REGEX REPLACE "set\\\(__qt_initially_configured_toolchain_file [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}") -string(REGEX REPLACE "set\\\(__qt_chainload_toolchain_file [^\\\n]+\\\n" "set(__qt_chainload_toolchain_file \"\${VCPKG_CHAINLOAD_TOOLCHAIN_FILE}\")" toolchain_contents "${toolchain_contents}") -string(REGEX REPLACE "set\\\(VCPKG_CHAINLOAD_TOOLCHAIN_FILE [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}") -string(REGEX REPLACE "set\\\(__qt_initial_c_compiler [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}") -string(REGEX REPLACE "set\\\(__qt_initial_cxx_compiler [^\\\n]+\\\n" "" toolchain_contents "${toolchain_contents}") -string(REPLACE "${CURRENT_HOST_INSTALLED_DIR}" "\${vcpkg_installed_dir}/${HOST_TRIPLET}" toolchain_contents "${toolchain_contents}") -file(WRITE "${qttoolchain}" "${toolchain_contents}") - -if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS) - if(VCPKG_CROSSCOMPILING) - file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/qmake" "${CURRENT_PACKAGES_DIR}/debug/bin/qmake") # qmake has been moved so this is the qmake helper script - endif() - file(GLOB_RECURSE _bin_files "${CURRENT_PACKAGES_DIR}/bin/*") - if(NOT _bin_files) # Only clean if empty otherwise let vcpkg throw and error. - file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/" "${CURRENT_PACKAGES_DIR}/debug/bin/") - else() - message(STATUS "Files in '/bin':${_bin_files}") - endif() -endif() - -file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Qt6/QtBuildInternals") - -if(NOT VCPKG_TARGET_IS_OSX) - file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Qt6/macos") -endif() -if(NOT VCPKG_TARGET_IS_IOS) - file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Qt6/ios") -endif() - -file(RELATIVE_PATH installed_to_host "${CURRENT_INSTALLED_DIR}" "${CURRENT_HOST_INSTALLED_DIR}") -file(RELATIVE_PATH host_to_installed "${CURRENT_HOST_INSTALLED_DIR}" "${CURRENT_INSTALLED_DIR}") -if(installed_to_host) - string(APPEND installed_to_host "/") - string(APPEND host_to_installed "/") -endif() -set(_file "${CMAKE_CURRENT_LIST_DIR}/qt.conf.in") -set(REL_PATH "") -set(REL_HOST_TO_DATA "\${CURRENT_INSTALLED_DIR}/") -configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/qt_release.conf" @ONLY) # For vcpkg-qmake -set(BACKUP_CURRENT_INSTALLED_DIR "${CURRENT_INSTALLED_DIR}") -set(BACKUP_CURRENT_HOST_INSTALLED_DIR "${CURRENT_HOST_INSTALLED_DIR}") -set(CURRENT_INSTALLED_DIR "./../../../") -set(CURRENT_HOST_INSTALLED_DIR "${CURRENT_INSTALLED_DIR}${installed_to_host}") - -## Configure installed qt.conf -set(REL_HOST_TO_DATA "${host_to_installed}") -configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/qt.conf") -set(REL_PATH debug/) -configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/qt.debug.conf") - -set(CURRENT_INSTALLED_DIR "${BACKUP_CURRENT_INSTALLED_DIR}") -set(CURRENT_HOST_INSTALLED_DIR "${BACKUP_CURRENT_HOST_INSTALLED_DIR}") -set(REL_HOST_TO_DATA "\${CURRENT_INSTALLED_DIR}/") -configure_file("${_file}" "${CURRENT_PACKAGES_DIR}/tools/Qt6/qt_debug.conf" @ONLY) # For vcpkg-qmake - -if(VCPKG_TARGET_IS_WINDOWS) - set(_DLL_FILES brotlicommon brotlidec bz2 freetype harfbuzz libpng16) - set(DLLS_TO_COPY "") - foreach(_file IN LISTS _DLL_FILES) - if(EXISTS "${CURRENT_INSTALLED_DIR}/bin/${_file}.dll") - list(APPEND DLLS_TO_COPY "${CURRENT_INSTALLED_DIR}/bin/${_file}.dll") - endif() - endforeach() - file(COPY ${DLLS_TO_COPY} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin") -endif() - -set(hostinfofile "${CURRENT_PACKAGES_DIR}/share/Qt6HostInfo/Qt6HostInfoConfig.cmake") -file(READ "${hostinfofile}" _contents) -string(REPLACE [[set(QT6_HOST_INFO_LIBEXECDIR "bin")]] [[set(QT6_HOST_INFO_LIBEXECDIR "tools/Qt6/bin")]] _contents "${_contents}") -string(REPLACE [[set(QT6_HOST_INFO_BINDIR "bin")]] [[set(QT6_HOST_INFO_BINDIR "tools/Qt6/bin")]] _contents "${_contents}") -file(WRITE "${hostinfofile}" "${_contents}") - -if(NOT VCPKG_CROSSCOMPILING OR EXISTS "${CURRENT_PACKAGES_DIR}/share/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake") - vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/Qt6CoreTools/Qt6CoreToolsAdditionalTargetInfo.cmake" - "PACKAGE_PREFIX_DIR}/bin/syncqt" - "PACKAGE_PREFIX_DIR}/tools/Qt6/bin/syncqt") -endif() - -set(configfile "${CURRENT_PACKAGES_DIR}/share/Qt6CoreTools/Qt6CoreToolsTargets-debug.cmake") -if(EXISTS "${configfile}") - file(READ "${configfile}" _contents) - if(EXISTS "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/qmake.exe") - file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/qmake.debug.bat" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin") - string(REPLACE [[ "${_IMPORT_PREFIX}/tools/Qt6/bin/qmake.exe"]] [[ "${_IMPORT_PREFIX}/tools/Qt6/bin/qmake.debug.bat"]] _contents "${_contents}") - endif() - if(EXISTS "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/qtpaths.exe") - file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/qtpaths.debug.bat" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin") - string(REPLACE [[ "${_IMPORT_PREFIX}/tools/Qt6/bin/qtpaths.exe"]] [[ "${_IMPORT_PREFIX}/tools/Qt6/bin/qtpaths.debug.bat"]] _contents "${_contents}") - endif() - if(EXISTS "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/windeployqt.exe") - file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/windeployqt.debug.bat" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin") - string(REPLACE [[ "${_IMPORT_PREFIX}/tools/Qt6/bin/windeployqt.exe"]] [[ "${_IMPORT_PREFIX}/tools/Qt6/bin/windeployqt.debug.bat"]] _contents "${_contents}") - endif() - file(WRITE "${configfile}" "${_contents}") -endif() - -if(VCPKG_CROSSCOMPILING) - vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/Qt6/Qt6Dependencies.cmake" "${CURRENT_HOST_INSTALLED_DIR}" "\${CMAKE_CURRENT_LIST_DIR}/../../../${HOST_TRIPLET}") -endif() - -function(remove_original_cmake_path file) - file(READ "${file}" _contents) - string(REGEX REPLACE "original_cmake_path=[^\n]*" "original_cmake_path=''" _contents "${_contents}") - file(WRITE "${file}" "${_contents}") -endfunction() - -if(NOT VCPKG_TARGET_IS_WINDOWS) - foreach(file "qt-cmake" "qt-cmake-private") - remove_original_cmake_path("${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${file}") - if(NOT VCPKG_BUILD_TYPE) - remove_original_cmake_path("${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/debug/${file}") - endif() - endforeach() -endif() diff --git a/vcpkg/ports/qtbase/qmake.debug.bat b/vcpkg/ports/qtbase/qmake.debug.bat deleted file mode 100644 index a7ed903a34..0000000000 --- a/vcpkg/ports/qtbase/qmake.debug.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -"%0\..\qmake.exe" -qtconf "%0\..\qt.debug.conf" %* diff --git a/vcpkg/ports/qtbase/qt.conf.in b/vcpkg/ports/qtbase/qt.conf.in deleted file mode 100644 index 8e76b8f6d3..0000000000 --- a/vcpkg/ports/qtbase/qt.conf.in +++ /dev/null @@ -1,31 +0,0 @@ -[DevicePaths] -Prefix=${CURRENT_INSTALLED_DIR} -Headers=include/@QT6_DIRECTORY_PREFIX@ -Libraries=@REL_PATH@lib -Plugins=@REL_PATH@@QT6_DIRECTORY_PREFIX@plugins -Qml2Imports=@REL_PATH@@QT6_DIRECTORY_PREFIX@qml -Documentation=doc/@QT6_DIRECTORY_PREFIX@ -Binaries=@REL_PATH@bin -LibraryExecutables=tools/Qt6/bin -ArchData=share/Qt6 -Data=share/Qt6 -Translations=translations/@QT6_DIRECTORY_PREFIX@ -Examples=share/examples/@QT6_DIRECTORY_PREFIX@ -[Paths] -Prefix=${CURRENT_INSTALLED_DIR} -Headers=include/@QT6_DIRECTORY_PREFIX@ -Libraries=@REL_PATH@lib -Plugins=@REL_PATH@@QT6_DIRECTORY_PREFIX@plugins -Qml2Imports=@REL_PATH@@QT6_DIRECTORY_PREFIX@qml -Documentation=doc/@QT6_DIRECTORY_PREFIX@ -Binaries=@REL_PATH@bin -LibraryExecutables=tools/Qt6/bin -ArchData=share/Qt6 -Data=share/Qt6 -Translations=translations/@QT6_DIRECTORY_PREFIX@ -Examples=share/examples/@QT6_DIRECTORY_PREFIX@ -HostPrefix=${CURRENT_HOST_INSTALLED_DIR} -HostData=@REL_HOST_TO_DATA@share/Qt6 -HostBinaries=@REL_PATH@bin -HostLibraries=@REL_PATH@lib -HostLibraryExecutables=tools/Qt6/bin diff --git a/vcpkg/ports/qtbase/qtpaths.debug.bat b/vcpkg/ports/qtbase/qtpaths.debug.bat deleted file mode 100644 index 4fef8e754e..0000000000 --- a/vcpkg/ports/qtbase/qtpaths.debug.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -"%0\..\qtpaths.exe" --qtconf "%0\..\qt.debug.conf" %* diff --git a/vcpkg/ports/qtbase/vcpkg.json b/vcpkg/ports/qtbase/vcpkg.json deleted file mode 100644 index 01b9d585f6..0000000000 --- a/vcpkg/ports/qtbase/vcpkg.json +++ /dev/null @@ -1,526 +0,0 @@ -{ - "name": "qtbase", - "version": "6.7.2", - "description": "Qt Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.", - "homepage": "https://www.qt.io/", - "license": null, - "supports": "!uwp", - "dependencies": [ - { - "name": "libb2", - "platform": "!windows" - }, - "pcre2", - { - "name": "qtbase", - "host": true, - "default-features": false - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "doubleconversion" - ] - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "thread" - ], - "platform": "osx" - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "pcre2" - ], - "platform": "windows & static" - }, - { - "name": "vcpkg-cmake", - "host": true - }, - { - "name": "vcpkg-cmake-config", - "host": true - }, - "zlib" - ], - "default-features": [ - "brotli", - "concurrent", - "dbus", - "default-features", - "doubleconversion", - "freetype", - "gui", - "harfbuzz", - "icu", - "jpeg", - "network", - "openssl", - "pcre2", - "png", - { - "name": "securetransport", - "platform": "ios" - }, - "sql", - "sql-psql", - "sql-sqlite", - "testlib", - "thread", - "widgets", - "zstd" - ], - "features": { - "appstore-compliant": { - "description": "Disable code that is not allowed in platform app stores. This is on by default for platforms which require distribution through an app store by default, in particular Android, iOS, tvOS, and watchOS." - }, - "brotli": { - "description": "Support for downloading and decompressing resources compressed with Brotli through QNetworkAccessManager.", - "dependencies": [ - "brotli", - { - "name": "qtbase", - "default-features": false, - "features": [ - "network" - ] - } - ] - }, - "concurrent": { - "description": "Provides a high-level multi-threading API. Qt Concurrent", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "thread" - ] - } - ] - }, - "dbus": { - "description": "Qt D-Bus", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "thread" - ] - } - ] - }, - "default-features": { - "description": "Platform-dependent default features", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "appstore-compliant" - ], - "platform": "uwp" - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "fontconfig", - "xcb", - "xcb-xlib", - "xrender" - ], - "platform": "linux" - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "egl", - "gles2" - ], - "platform": "android" - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "opengl" - ], - "platform": "!ios" - } - ] - }, - "doubleconversion": { - "description": "Enable double conversion support", - "dependencies": [ - "double-conversion" - ] - }, - "egl": { - "description": "EGL", - "supports": "linux | android", - "dependencies": [ - "egl" - ] - }, - "fontconfig": { - "description": "Use fontconfig", - "dependencies": [ - "fontconfig", - { - "name": "qtbase", - "default-features": false, - "features": [ - "gui" - ] - } - ] - }, - "framework": { - "description": "MAC framework build", - "supports": "osx & !static" - }, - "freetype": { - "description": "Supports the FreeType 2 font engine (and its supported font formats).", - "dependencies": [ - { - "name": "freetype", - "default-features": false - } - ] - }, - "gles2": { - "description": "OpenGL ES 2.0", - "supports": "!windows & !osx", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "gui" - ] - } - ] - }, - "gles3": { - "description": "OpenGL ES 3.0", - "supports": "!windows & !osx", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "gles2" - ] - } - ] - }, - "glib": { - "description": "GLib", - "dependencies": [ - "glib" - ] - }, - "gtk3": { - "description": "GTK3 platform theme plugin", - "supports": "linux", - "dependencies": [ - "gtk3", - { - "name": "qtbase", - "default-features": false, - "features": [ - "glib" - ] - } - ] - }, - "gui": { - "description": "Qt Gui", - "dependencies": [ - { - "name": "opengl", - "platform": "!ios" - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "freetype" - ] - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "opengl" - ], - "platform": "osx" - }, - { - "name": "qtbase", - "default-features": false, - "features": [ - "thread" - ], - "platform": "windows" - } - ] - }, - "harfbuzz": { - "description": "Use harfbuzz", - "dependencies": [ - "harfbuzz", - { - "name": "qtbase", - "default-features": false, - "features": [ - "gui" - ] - } - ] - }, - "icu": { - "description": "Enable ICU support", - "dependencies": [ - "icu" - ] - }, - "jpeg": { - "description": "Enable JPEG", - "dependencies": [ - "libjpeg-turbo", - { - "name": "qtbase", - "default-features": false, - "features": [ - "gui" - ] - } - ] - }, - "network": { - "description": "Qt Network" - }, - "opengl": { - "description": "OpenGL", - "dependencies": [ - "opengl", - { - "name": "qtbase", - "default-features": false, - "features": [ - "gui" - ] - } - ] - }, - "openssl": { - "description": "Enable OpenSSL", - "dependencies": [ - "openssl", - { - "name": "qtbase", - "default-features": false, - "features": [ - "network" - ] - } - ] - }, - "pcre2": { - "description": "Enable PCRE2 support", - "dependencies": [ - "pcre2" - ] - }, - "png": { - "description": "Enable PNG", - "dependencies": [ - "libpng", - { - "name": "qtbase", - "default-features": false, - "features": [ - "gui" - ] - } - ] - }, - "securetransport": { - "description": "Enable Secure Transport", - "supports": "ios | osx" - }, - "sql": { - "description": "Qt Sql", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "concurrent" - ] - } - ] - }, - "sql-mysql": { - "description": "Enable SQL Driver MySQL", - "dependencies": [ - "libmysql", - { - "name": "qtbase", - "default-features": false, - "features": [ - "sql" - ] - } - ] - }, - "sql-oci": { - "description": "Enable SQL Driver Oracle OCI", - "dependencies": [ - "ocilib", - { - "name": "qtbase", - "default-features": false, - "features": [ - "sql" - ] - } - ] - }, - "sql-odbc": { - "description": "Enable SQL Driver odbc", - "supports": "windows", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "sql" - ] - } - ] - }, - "sql-psql": { - "description": "Enable SQL Driver psql", - "dependencies": [ - "libpq", - { - "name": "qtbase", - "default-features": false, - "features": [ - "sql" - ] - } - ] - }, - "sql-sqlite": { - "description": "Enable SQL Driver sqlite", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "sql" - ] - }, - "sqlite3" - ] - }, - "testlib": { - "description": "Qt Testlib" - }, - "thread": { - "description": "Thread support; provides QThread and related classes." - }, - "vulkan": { - "description": "Enable Vulkan support", - "dependencies": [ - "vulkan" - ] - }, - "widgets": { - "description": "Qt Widgets", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "gui" - ] - } - ] - }, - "xcb": { - "description": "XCB", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "concurrent", - "xkbcommon-x11", - "xlib" - ] - } - ] - }, - "xcb-xlib": { - "description": "xcb-xlib", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "xlib" - ] - } - ] - }, - "xkb": { - "description": "XKB" - }, - "xkbcommon-x11": { - "description": "xkbcommon_x11", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "xkb" - ] - } - ] - }, - "xlib": { - "description": "XLib" - }, - "xrender": { - "description": "XRender for native painting", - "dependencies": [ - { - "name": "qtbase", - "default-features": false, - "features": [ - "xcb" - ] - } - ] - }, - "zstd": { - "description": "Zstandard support", - "dependencies": [ - "zstd" - ] - } - } -} diff --git a/vcpkg/ports/qtbase/windeployqt.debug.bat b/vcpkg/ports/qtbase/windeployqt.debug.bat deleted file mode 100644 index 796dc4f3e8..0000000000 --- a/vcpkg/ports/qtbase/windeployqt.debug.bat +++ /dev/null @@ -1,10 +0,0 @@ -@echo off -setlocal enabledelayedexpansion -set mypath=%~dp0 -set mypath=%mypath:~0,-1% -set BAKCD=!CD! -cd /D %mypath%\..\..\..\debug\bin -set PATH=!CD!;%PATH% -cd %BAKCD% -"%mypath%\windeployqt6.exe" --qtpaths "%mypath%\qtpaths.debug.bat" %* -endlocal