Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions ports/qtbase/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,6 @@ foreach(_config debug release)
endif()
endforeach()
endforeach()
if(VCPKG_CROSSCOMPILING AND NOT CMAKE_HOST_WIN32)
foreach(name IN ITEMS qmake qmake6 qtpaths qtpaths6)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${name}" "${CURRENT_HOST_INSTALLED_DIR}/" "\"\$script_dir_path\"/../../../../${HOST_TRIPLET}/")
endforeach()
endif()

# Fixup qt.toolchain.cmake
set(qttoolchain "${CURRENT_PACKAGES_DIR}/share/Qt6/qt.toolchain.cmake")
Expand Down Expand Up @@ -481,13 +476,22 @@ 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

# target_qt_conf exists iff CMAKE_CROSSCOMPILING
# cf. qt_generate_qmake_and_qtpaths_wrapper_for_target in <src>/cmake/QtQmakeHelpers.cmake
set(target_qt_conf "${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/target_qt.conf")
if(EXISTS "${target_qt_conf}")
file(READ "${target_qt_conf}" qt_conf_contents)
string(REGEX REPLACE "Prefix=[^\n]+" "Prefix=./../../../" qt_conf_contents ${qt_conf_contents})
string(REGEX REPLACE "HostData=[^\n]+" "HostData=./../${TARGET_TRIPLET}/share/Qt6" qt_conf_contents ${qt_conf_contents})
string(REGEX REPLACE "HostPrefix=[^\n]+" "HostPrefix=./../../../../${_HOST_TRIPLET}" qt_conf_contents ${qt_conf_contents})
file(WRITE "${target_qt_conf}" "${qt_conf_contents}")

if(script_suffix STREQUAL "")
foreach(name IN ITEMS qmake qmake6 qtpaths qtpaths6)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/Qt6/bin/${name}" "${CURRENT_HOST_INSTALLED_DIR}/" "\"\$script_dir_path\"/../../../../${HOST_TRIPLET}/")
endforeach()
endif()

if(NOT VCPKG_BUILD_TYPE)
set(target_qt_conf_debug "${CURRENT_PACKAGES_DIR}/tools/Qt6/target_qt_debug.conf")
configure_file("${target_qt_conf}" "${target_qt_conf_debug}" COPYONLY)
Expand Down
45 changes: 39 additions & 6 deletions ports/qtbase/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "qtbase",
"version": "6.8.3",
"port-version": 2,
"port-version": 3,
"description": "Qt Base (Core, Gui, Widgets, Network, ...)",
"homepage": "https://www.qt.io/",
"license": null,
Expand Down Expand Up @@ -163,7 +163,16 @@
},
"cups": {
"description": "Provides support for the Common Unix Printing System.",
"supports": "linux | osx"
"supports": "linux | osx",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"widgets"
]
}
]
},
"dbus": {
"description": "Qt D-Bus",
Expand Down Expand Up @@ -212,7 +221,14 @@
"description": "EGL",
"supports": "android | linux",
"dependencies": [
"egl"
"egl",
{
"name": "qtbase",
"default-features": false,
"features": [
"opengl"
]
}
]
},
"fontconfig": {
Expand Down Expand Up @@ -510,6 +526,13 @@
"vulkan": {
"description": "Enable Vulkan support",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"gui"
]
},
"vulkan"
]
},
Expand All @@ -532,7 +555,7 @@
"name": "qtbase",
"default-features": false,
"features": [
"concurrent",
"thread",
"xkbcommon-x11",
"xlib"
]
Expand Down Expand Up @@ -567,7 +590,16 @@
]
},
"xlib": {
"description": "XLib"
"description": "XLib",
"dependencies": [
{
"name": "qtbase",
"default-features": false,
"features": [
"gui"
]
}
]
},
"xrender": {
"description": "XRender for native painting",
Expand All @@ -576,7 +608,8 @@
"name": "qtbase",
"default-features": false,
"features": [
"xcb"
"fontconfig",
"xcb-xlib"
]
}
]
Expand Down
11 changes: 7 additions & 4 deletions scripts/ci.feature.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ libmpeg2:x64-linux=fail
libmpeg2:x64-osx=fail
libmpeg2:x64-uwp=fail
libmupdf:x64-osx=fail
libmysql:x86-windows=fail
libopensp(android)=fail
libopusenc:arm-uwp=fail
libopusenc:x64-uwp=fail
Expand Down Expand Up @@ -590,7 +589,7 @@ gdal[aws-ec2-windows,curl,expat,geos,gif,iconv,jpeg,lerc,libkml,libspatialite,li
google-cloud-cpp[accessapproval,accesscontextmanager,advisorynotifications,alloydb,apigateway,apigeeconnect,apikeys,appengine,artifactregistry,asset,assuredworkloads,automl,baremetalsolution,batch,beyondcorp,bigquery,bigtable,billing,binaryauthorization,certificatemanager,channel,cloudbuild,commerce,composer,confidentialcomputing,connectors,contactcenterinsights,container,containeranalysis,datacatalog,datafusion,datamigration,dataplex,dataproc,datastore,datastream,debugger,deploy,dialogflow-cx,dialogflow-es,discoveryengine,dlp,documentai,edgecontainer,eventarc,experimental-opentelemetry,experimental-storage-grpc,filestore,functions,gameservices,gkehub,gkemulticloud,grafeas,iam,iap,ids,iot,kms,language,logging,managedidentities,memcache,metastore,migrationcenter,monitoring,networkconnectivity,networkmanagement,networksecurity,notebooks,optimization,orgpolicy,osconfig,oslogin,policysimulator,policytroubleshooter,privateca,profiler,pubsub,rapidmigrationassessment,recommender,redis,resourcemanager,resourcesettings,retail,run,scheduler,secretmanager,securitycenter,servicecontrol,servicedirectory,servicemanagement,serviceusage,shell,spanner,speech,storage,storageinsights,storagetransfer,support,talent,tasks,texttospeech,tpu,trace,translate,video,videointelligence,vision,vmmigration,vmwareengine,vpcaccess,webrisk,websecurityscanner,workflows,workstations] = no-separate-feature-test
halide[target-aarch64,target-all,target-amdgpu,target-arm,target-d3d12compute,target-hexagon,target-metal,target-nvptx,target-opencl,target-opengl-compute,target-powerpc,target-riscv,target-webassembly,target-x86] = no-separate-feature-test
llvm[target-aarch64,target-all,target-amdgpu,target-arc,target-arm,target-avr,target-bpf,target-csky,target-directx,target-hexagon,target-lanai,target-loongarch,target-m68k,target-mips,target-msp430,target-nvptx,target-powerpc,target-riscv,target-sparc,target-spirv,target-systemz,target-ve,target-webassembly,target-x86,target-xcore,target-xtensa] = no-separate-feature-test

qtbase[doubleconversion,gui,sql,thread] = no-separate-feature-test # covered in many combinations


# cascade
Expand Down Expand Up @@ -1763,7 +1762,6 @@ qtapplicationmanager:arm64-osx = cascade
qtapplicationmanager:arm64-uwp = cascade
qtapplicationmanager:x64-uwp = cascade
qtbase[dbus](android) = cascade
qtbase[sql-mysql]:x86-windows = cascade
qtbase[sql-mysql](android) = cascade
qtcharts:arm64-uwp = cascade
qtcharts:x64-uwp = cascade
Expand Down Expand Up @@ -2184,6 +2182,7 @@ qt3d[extras] = options # is a requirement, see https://github.com/microsoft/vcpk
qt5-base[vulkan](osx) = feature-fails # needs MolkenVK
qt5-base[vulkan](windows) = feature-fails # needs configuration
qt5compat[iconv](!uwp) = feature-fails # requires qtbase without icu
qtbase[cups](linux) = feature-fails # requires CUPS system libs
qtbase[gles3](android) = feature-fails
qtbase[sql-oci](!(arm & windows)) = feature-fails # see https://github.com/microsoft/vcpkg/issues/32052
qtmultimedia[core,ffmpeg,gstreamer,qml,widgets](osx) = combination-fails # Error: Qt will by default autolink both plugin backends in static builds leading to symbol collisions and a build failure in dependent ports! As such in static builds only one backend is allowed by default.
Expand Down Expand Up @@ -2232,7 +2231,11 @@ magnum-plugins[cgltfimporter,glslangshaderconverter,ktximageconverter,ktximporte
openjpeg[tools] = skip # fails and is deprecated
pango[introspection]:arm64-windows = skip # needs arm64 host
qt5-base(android) = skip # port doesn't support cross builds
qtbase[xcb,xcb-xlib,xkb,xkbcommon-x11,xlib,xrender](osx) = skip # no x11 on macOS
qtbase[glib](android) = skip # undefined symbols (missing link libs) when used with network
qtbase[vulkan](osx) = skip # no MoltenVK on macOS
qtbase[xcb,xcb-xlib,xkb,xkbcommon-x11,xlib,xrender](android) = skip # no x11 in CI
qtbase[xcb,xcb-xlib,xkb,xkbcommon-x11,xlib,xrender](osx) = skip # no x11 in CI, upstream "support on macOS is minimal and untested"
qtbase[xcb,xcb-xlib,xkb,xkbcommon-x11,xlib,xrender](windows) = skip # no x11 in CI
qtwebengine = skip # Takes too long to feature test at ~3 hours per feature
s2n = skip # builds too slow
sciter = skip # The sciter port is deprecated by upstream and conflicts with upstream's replacement.
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7862,7 +7862,7 @@
},
"qtbase": {
"baseline": "6.8.3",
"port-version": 2
"port-version": 3
},
"qtcharts": {
"baseline": "6.8.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qtbase.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0310ceff18ae3cc39de1f5f492a2b7ba88bae639",
"version": "6.8.3",
"port-version": 3
},
{
"git-tree": "c6fb64e484a6762f3ea271a486044c6fb0bca96f",
"version": "6.8.3",
Expand Down