mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 03:12:48 +08:00
[qtbase] no absolute paths (#25965)
This commit is contained in:
parent
0bceafcf54
commit
edd9fb3504
15
ports/qtbase/installed_dir.patch
Normal file
15
ports/qtbase/installed_dir.patch
Normal file
@ -0,0 +1,15 @@
|
||||
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.
|
@ -16,6 +16,7 @@ set(${PORT}_PATCHES
|
||||
harfbuzz.patch
|
||||
fix_egl.patch
|
||||
clang-cl_QGADGET_fix.diff # Upstream is still figuring out if this is a compiler bug or not.
|
||||
installed_dir.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
||||
@ -340,6 +341,7 @@ string(REGEX REPLACE "set\\\(__qt_chainload_toolchain_file [^\\\n]+\\\n" "set(__
|
||||
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)
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "qtbase",
|
||||
"version": "6.3.1",
|
||||
"port-version": 1,
|
||||
"port-version": 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,
|
||||
|
@ -5954,7 +5954,7 @@
|
||||
},
|
||||
"qtbase": {
|
||||
"baseline": "6.3.1",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"qtcharts": {
|
||||
"baseline": "6.3.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "3fa8531e9f444076cc6e73b979bcaaa3e665a7a5",
|
||||
"version": "6.3.1",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "53f9f138ffa51742c27c5e44606f86b6b70b2734",
|
||||
"version": "6.3.1",
|
||||
|
Loading…
Reference in New Issue
Block a user