mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[qt5 components] Disable parallel build (#12529)
* [qt5-imageformats] Disable parallel build * [ompl] Disable parallel configure * [qt5-connectivity] Disable parallel build * [qwt] Update hash * [qt5-location] Disable parallel build * Update ports/qwt/portfile.cmake * Update ports/qwt/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * [qt5] change build method to vcpkg_execute_build_process * Add condition when there are some file conflicts Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
This commit is contained in:
parent
2cb28482bb
commit
2b8d5bad0a
@ -1,5 +1,6 @@
|
||||
Source: qt5-base
|
||||
Version: 5.15.0
|
||||
Port-Version: 1
|
||||
Homepage: https://www.qt.io/
|
||||
Description: Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.
|
||||
Build-Depends: zlib, libjpeg-turbo, libpng, freetype, pcre2, harfbuzz, sqlite3, libpq, double-conversion, openssl, angle (!windows), egl-registry, icu (!uwp), fontconfig (!windows)
|
||||
|
@ -4,6 +4,7 @@ function(install_qt)
|
||||
if(CMAKE_HOST_WIN32)
|
||||
vcpkg_find_acquire_program(JOM)
|
||||
set(INVOKE "${JOM}" /J ${VCPKG_CONCURRENCY})
|
||||
set(INVOKE_SINGLE "${JOM}" /J 1)
|
||||
else()
|
||||
find_program(MAKE make)
|
||||
set(INVOKE "${MAKE}" -j${VCPKG_CONCURRENCY})
|
||||
@ -62,8 +63,9 @@ function(install_qt)
|
||||
endif()
|
||||
|
||||
message(STATUS "Building ${_build_triplet}")
|
||||
vcpkg_execute_required_process(
|
||||
vcpkg_execute_build_process(
|
||||
COMMAND ${INVOKE}
|
||||
NO_PARALLEL_COMMAND ${INVOKE_SINGLE}
|
||||
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${_build_triplet}
|
||||
LOGNAME build-${_build_triplet}
|
||||
)
|
||||
|
@ -1,4 +1,5 @@
|
||||
Source: qt5-connectivity
|
||||
Version: 5.15.0
|
||||
Port-Version: 1
|
||||
Description: Qt5 Connectivity module - Provides access to Bluetooth and NFC hardware
|
||||
Build-Depends: qt5-base[core]
|
||||
|
@ -1,4 +1,5 @@
|
||||
Source: qt5-imageformats
|
||||
Version: 5.15.0
|
||||
Port-Version: 1
|
||||
Description: Qt5 Image Formats Module - Plugins for additional image formats: TIFF, MNG, TGA, WBMP
|
||||
Build-Depends: qt5-base[core], tiff, libwebp, jasper
|
||||
|
@ -1,4 +1,5 @@
|
||||
Source: qt5-location
|
||||
Version: 5.15.0
|
||||
Port-Version: 1
|
||||
Description: Qt5 Location Module - Displays map, navigation, and place content in a QML application.
|
||||
Build-Depends: qt5-base[core], qt5-declarative, qt5-quickcontrols, qt5-quickcontrols2, qt5-serialport
|
||||
|
@ -1,5 +1,6 @@
|
||||
Source: qwt
|
||||
Version: 6.1.4
|
||||
Port-Version: 1
|
||||
Homepage: https://sourceforge.net/projects/qwt
|
||||
Description: Qt widgets library for technical applications
|
||||
Build-Depends: qt5-base[core], qt5-svg, qt5-tools
|
||||
|
@ -61,8 +61,11 @@ function(vcpkg_execute_build_process)
|
||||
OR err_contents MATCHES "LINK : fatal error LNK1102:" OR err_contents MATCHES " fatal error C1060: "
|
||||
OR out_contents MATCHES "LINK : fatal error LNK1318: Unexpected PDB error; ACCESS_DENIED"
|
||||
OR out_contents MATCHES "LINK : fatal error LNK1104:"
|
||||
OR out_contents MATCHES "LINK : fatal error LNK1201:")
|
||||
OR out_contents MATCHES "LINK : fatal error LNK1201:"
|
||||
# The linker ran out of memory during execution. We will try continuing once more, with parallelism disabled.
|
||||
OR out_contents MATCHES "Cannot create parent directory"
|
||||
# Multiple threads using the same directory at the same time cause conflicts, will try again.
|
||||
)
|
||||
message(STATUS "Restarting Build without parallelism because memory exceeded")
|
||||
set(LOG_OUT "${CURRENT_BUILDTREES_DIR}/${_ebp_LOGNAME}-out-1.log")
|
||||
set(LOG_ERR "${CURRENT_BUILDTREES_DIR}/${_ebp_LOGNAME}-err-1.log")
|
||||
|
Loading…
x
Reference in New Issue
Block a user