Skip to content

Commit

Permalink
[qt5-webengine] Fix issues (#16770)
Browse files Browse the repository at this point in the history
* [qt5-webengine]
 - add feature "proprietary-codecs"
 - fix build error due to internal changes how options are passed.
 - try to fail early on too long build paths instead of late

* comment the ci baseline for x64-windows to actually test it in ci
and only build one configuration to not overstress the ci system

* be less strict about the buildtree path length

* adjust qt5-webengine ci back

* update baseline

* change length error message according to CR.

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>

* fix version

Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
  • Loading branch information
Neumann-A and ras0219-msft committed Mar 30, 2021
1 parent a434cc7 commit ed54efb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
6 changes: 5 additions & 1 deletion ports/qt5-webengine/CONTROL
Original file line number Diff line number Diff line change
@@ -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
17 changes: 13 additions & 4 deletions ports/qt5-webengine/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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}")
Expand Down Expand Up @@ -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})
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5058,7 +5058,7 @@
},
"qt5-webengine": {
"baseline": "5.15.2",
"port-version": 1
"port-version": 2
},
"qt5-webglplugin": {
"baseline": "5.15.2",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qt5-webengine.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3a220ca2fe835251196c717e4f1df91516430d8b",
"version-string": "5.15.2",
"port-version": 2
},
{
"git-tree": "8f8f6defb09c499cfe581195f03e88951431d73c",
"version-string": "5.15.2",
Expand Down

0 comments on commit ed54efb

Please sign in to comment.