diff --git a/ports/qt5-webengine/CONTROL b/ports/qt5-webengine/CONTROL index 929a7ad64d489d..a34cdc1ecd25ac 100644 --- a/ports/qt5-webengine/CONTROL +++ b/ports/qt5-webengine/CONTROL @@ -1,6 +1,10 @@ Source: qt5-webengine Version: 5.15.2 -Port-Version: 1 +Port-Version: 2 Description: Qt5 webengine Module; Build-Depends: qt5-base[core], qt5-declarative, qt5-location, qt5-quickcontrols, qt5-quickcontrols2, qt5-tools, qt5-webchannel, atlmfc (windows), ffmpeg[core] (!windows) Supports: !static +Default-Features: + +Feature: proprietary-codecs +Description: Enable proprietary-codecs in qtwebengine \ No newline at end of file diff --git a/ports/qt5-webengine/portfile.cmake b/ports/qt5-webengine/portfile.cmake index 797d5fedb46793..60020c83f8a139 100644 --- a/ports/qt5-webengine/portfile.cmake +++ b/ports/qt5-webengine/portfile.cmake @@ -1,7 +1,12 @@ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY) +string(LENGTH "${CURRENT_BUILDTREES_DIR}" buildtrees_path_length) +if(buildtrees_path_length GREATER 35 AND CMAKE_HOST_WIN32) + vcpkg_buildpath_length_warning(35) + message(FATAL_ERROR "terminating due to source length.") +endif() #set(VCPKG_BUILD_TYPE release) #You probably want to set this to reduce build type and space requirements -message(STATUS "${PORT} requires a lot of free disk space (>300GB), ram (>32 GB) and time (>4h per configuration) to be successfully build.\n\ --- As such ${PORT} is not properly tested.\n\ +message(STATUS "${PORT} requires a lot of free disk space (>100GB), ram (>8 GB) and time (>2h per configuration) to be successfully build.\n\ +-- As such ${PORT} is currently experimental.\n\ -- If ${PORT} fails post build validation please open up an issue. \n\ -- If it fails due to post validation the successfully installed files can be found in ${CURRENT_PACKAGES_DIR} \n\ -- and just need to be copied into ${CURRENT_INSTALLED_DIR}") @@ -42,8 +47,12 @@ set(PATCHES common.pri.patch build_2.patch build_3.patch) +set(OPTIONS) +if("proprietary-codecs" IN_LIST FEATURES) + list(APPEND OPTIONS "-webengine-proprietary-codecs") +endif() if(NOT VCPKG_TARGET_IS_WINDOWS) - list(APPEND CORE_OPTIONS "BUILD_OPTIONS" "-webengine-system-libwebp" "-webengine-system-ffmpeg" "-webengine-system-icu") + list(APPEND OPTIONS "-webengine-system-libwebp" "-webengine-system-ffmpeg" "-webengine-system-icu") endif() -qt_submodule_installation(${CORE_OPTIONS} PATCHES ${PATCHES}) +qt_submodule_installation(PATCHES ${PATCHES} BUILD_OPTIONS ${OPTIONS}) diff --git a/versions/baseline.json b/versions/baseline.json index 29437abc78f472..ce69773cf29750 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5026,7 +5026,7 @@ }, "qt5-webengine": { "baseline": "5.15.2", - "port-version": 1 + "port-version": 2 }, "qt5-webglplugin": { "baseline": "5.15.2", diff --git a/versions/q-/qt5-webengine.json b/versions/q-/qt5-webengine.json index 08757c6e6ac42c..d3382ca0721799 100644 --- a/versions/q-/qt5-webengine.json +++ b/versions/q-/qt5-webengine.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "3a220ca2fe835251196c717e4f1df91516430d8b", + "version-string": "5.15.2", + "port-version": 2 + }, { "git-tree": "8f8f6defb09c499cfe581195f03e88951431d73c", "version-string": "5.15.2",