diff options
-rw-r--r-- | cmake/Functions.cmake | 1 | ||||
-rw-r--r-- | cmake/Gn.cmake | 4 | ||||
-rw-r--r-- | coin/module_config.yaml | 7 |
3 files changed, 12 insertions, 0 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake index 0346ff5d9..89f4cdd39 100644 --- a/cmake/Functions.cmake +++ b/cmake/Functions.cmake @@ -1135,6 +1135,7 @@ function(add_gn_command) -DMODULE=${arg_MODULE} -DQT_HOST_GN_PATH=${QT_HOST_GN_PATH} -DPython3_EXECUTABLE=${Python3_EXECUTABLE} + -DGN_THREADS=$ENV{QTWEBENGINE_GN_THREADS} -P ${WEBENGINE_ROOT_SOURCE_DIR}/cmake/Gn.cmake WORKING_DIRECTORY ${WEBENGINE_ROOT_BUILD_DIR} COMMENT "Run gn for target ${arg_CMAKE_TARGET} in ${arg_BUILDDIR}" diff --git a/cmake/Gn.cmake b/cmake/Gn.cmake index 951e5f83e..99f4dae38 100644 --- a/cmake/Gn.cmake +++ b/cmake/Gn.cmake @@ -44,6 +44,10 @@ list(APPEND gnArg --script-executable=${Python3_EXECUTABLE} --root=${WEBENGINE_ROOT_SOURCE_DIR}/src/3rdparty/chromium) +if(GN_THREADS) + list(APPEND gnArg --threads=${GN_THREADS}) +endif() + STRING(REGEX REPLACE "\n" ";" printArgArg "${gnArgArg}") LIST(SORT printArgArg) STRING(REGEX REPLACE ";" "\n" printArgArg "${printArgArg}") diff --git a/coin/module_config.yaml b/coin/module_config.yaml index e60412517..01da49996 100644 --- a/coin/module_config.yaml +++ b/coin/module_config.yaml @@ -12,6 +12,13 @@ instructions: - type: EnvironmentVariable variableName: CMAKE_BUILD_OUTPUT_TIMEOUT variableValue: "3600" + - type: EnvironmentVariable + variableName: QTWEBENGINE_GN_THREADS + variableValue: "1" + enable_if: + condition: property + property: host.os + equals_value: MacOS - !include "{{qt/qtbase}}/coin_module_build_template_v2.yaml" Test: - type: EnvironmentVariable |