mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-18 10:09:15 +08:00
This is the qt5 counterpart to the qtbase instructions to allow using configure instead of cmake when configuring a top-level build. Pick-to: 6.2 6.3 Task-number: QTQAINFRA-4357 Task-number: QTQAINFRA-4815 Change-Id: Ie5af31f9349a6dd88fa7699d40dad659180814e2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Toni Saario <toni.saario@qt.io>
50 lines
2.0 KiB
YAML
50 lines
2.0 KiB
YAML
type: Group
|
|
instructions:
|
|
- !include "{{qt/qtbase}}/prepare_building_env.yaml"
|
|
- type: MakeDirectory
|
|
directory: .git
|
|
- type: SetBuildDirectory
|
|
directory: "{{.SourceDir}}"
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}"
|
|
|
|
- !include "{{qt/qt5}}/prepare_configure_executable.yaml"
|
|
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CONFIGURE_ARGS
|
|
variableValue: "{{.Env.CONFIGURE_ARGS}}"
|
|
- type: EnvironmentVariable
|
|
variableName: COIN_CMAKE_ARGS
|
|
# Use unix separators even on Windows, to avoid escaping issues in the configure script.
|
|
variableValue: "{{.Env.CMAKE_ARGS}} {{.Env.COMMON_CMAKE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{unixPathSeparators .InstallDir}}"
|
|
- type: EnvironmentVariable
|
|
variableName: CONFIGURE_ENV_PREFIX
|
|
variableValue: "{{.Env.ENV_PREFIX}}"
|
|
|
|
- type: ExecuteCommand
|
|
# There is no SourceDir on purpose, because configure is called directly from qtbase,
|
|
# so the script knows it's own source dir.
|
|
# TODO: Consider removing these instructions, and using the ones in qtbase/call_configure_qtbase.yaml
|
|
# once all dependencies are propagated.
|
|
command: "{{.Env.CONFIGURE_ENV_PREFIX}} {{.Env.CONFIGURE_EXECUTABLE}} {{.Env.COIN_CONFIGURE_ARGS}} -- {{.Env.COIN_CMAKE_ARGS}}"
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to call cmake.
|
|
enable_if:
|
|
condition: property
|
|
property: features
|
|
contains_value: UseConfigure
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.CONFIGURE_ENV_PREFIX}} {{.Env.CONFIGURE_EXECUTABLE}} {{.SourceDir}} {{.Env.COIN_CONFIGURE_ARGS}} {{.Env.COIN_CMAKE_ARGS}}"
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to call cmake.
|
|
disable_if:
|
|
condition: property
|
|
property: features
|
|
contains_value: UseConfigure
|