mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
Pick-to: dev 6.0 Change-Id: Ib35e164a8628ffc7d1429ba4756a27d4b98977e2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
version: 2
|
|
accept_configuration:
|
|
condition: property
|
|
property: features
|
|
not_contains_value: Disable
|
|
|
|
instructions:
|
|
Build:
|
|
- !include "{{qt/qtbase}}/prepare_building_env.yaml"
|
|
- type: MakeDirectory
|
|
directory: .git
|
|
- type: SetBuildDirectory
|
|
directory: "{{.SourceDir}}"
|
|
- type: ChangeDirectory
|
|
directory: "{{.BuildDir}}"
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} -DQT_BUILD_TESTS=OFF {{.SourceDir}}"
|
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
|
maxTimeInSeconds: 6000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to call cmake.
|
|
|
|
- type: Group
|
|
instructions:
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --target qttools/all --parallel -v"
|
|
maxTimeInSeconds: 12000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to build sources.
|
|
- type: ExecuteCommand
|
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --target generate_docs -v"
|
|
maxTimeInSeconds: 12000
|
|
maxTimeBetweenOutput: 1200
|
|
userMessageOnFailure: >
|
|
Failed to generate docs.
|
|
- type: MakeDirectory
|
|
directory: "{{.BuildDir}}/qtbase/doc/global"
|
|
enable_if:
|
|
condition: property
|
|
property: features
|
|
contains_value: "Documentation"
|
|
|
|
Test:
|
|
- type: EnvironmentVariable
|
|
variableName: Dummy
|
|
variableValue: dummy
|