coin: Move AUTOGEN and tests options addition into a common location
As a drive-by this fixes the qtbase build to also have the CMAKE_AUTOGEN_VERBOSE option set. Pick-to: 6.2 6.3 Change-Id: I32324fb1e8e16299c5f34517edbc7ff335d84e14 Reviewed-by: Toni Saario <toni.saario@qt.io>
This commit is contained in:
parent
e8bf2c6eba
commit
6e5c7b9e4f
@ -10,14 +10,14 @@ instructions:
|
|||||||
directory: "{{.BuildDir}}"
|
directory: "{{.BuildDir}}"
|
||||||
- type: AppendToEnvironmentVariable
|
- type: AppendToEnvironmentVariable
|
||||||
variableName: COIN_CMAKE_ARGS
|
variableName: COIN_CMAKE_ARGS
|
||||||
variableValue: " -DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
variableValue: " -S {{.SourceDir}} -B ."
|
||||||
disable_if:
|
disable_if:
|
||||||
condition: runtime
|
condition: runtime
|
||||||
env_var: COIN_CMAKE_ARGS
|
env_var: COIN_CMAKE_ARGS
|
||||||
equals_value: null
|
equals_value: null
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: COIN_CMAKE_ARGS
|
variableName: COIN_CMAKE_ARGS
|
||||||
variableValue: "-DCMAKE_AUTOGEN_VERBOSE=ON -S {{.SourceDir}} -B ."
|
variableValue: "-S {{.SourceDir}} -B ."
|
||||||
enable_if:
|
enable_if:
|
||||||
condition: runtime
|
condition: runtime
|
||||||
env_var: COIN_CMAKE_ARGS
|
env_var: COIN_CMAKE_ARGS
|
||||||
|
@ -33,7 +33,7 @@ instructions:
|
|||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: COIN_CMAKE_ARGS
|
variableName: COIN_CMAKE_ARGS
|
||||||
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
||||||
variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}} -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}} {{.SourceDir}}"
|
||||||
- !include "{{qt/qtbase}}/call_host_cmake.yaml"
|
- !include "{{qt/qtbase}}/call_host_cmake.yaml"
|
||||||
- type: ExecuteCommand
|
- type: ExecuteCommand
|
||||||
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
command: "{{.Env.ENV_PREFIX}} cmake --build . --parallel -v"
|
||||||
@ -63,7 +63,7 @@ instructions:
|
|||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: COIN_CMAKE_ARGS
|
variableName: COIN_CMAKE_ARGS
|
||||||
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
||||||
variableValue: "{{.Env.NON_QTBASE_TARGET_CONFIGURE_ARGS}} -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
variableValue: "{{.Env.NON_QTBASE_TARGET_CONFIGURE_ARGS}} {{.SourceDir}}"
|
||||||
- !include "{{qt/qtbase}}/call_target_cmake.yaml"
|
- !include "{{qt/qtbase}}/call_target_cmake.yaml"
|
||||||
- type: ExecuteCommand
|
- type: ExecuteCommand
|
||||||
command: "{{.Env.TARGET_ENV_PREFIX}} cmake --build . --parallel -v"
|
command: "{{.Env.TARGET_ENV_PREFIX}} cmake --build . --parallel -v"
|
||||||
|
@ -17,7 +17,7 @@ instructions:
|
|||||||
- type: ChangeDirectory
|
- type: ChangeDirectory
|
||||||
directory: "{{.BuildDir}}"
|
directory: "{{.BuildDir}}"
|
||||||
- type: ExecuteCommand
|
- type: ExecuteCommand
|
||||||
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}}/host -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}}/host {{.SourceDir}}"
|
||||||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
||||||
maxTimeInSeconds: 6000
|
maxTimeInSeconds: 6000
|
||||||
maxTimeBetweenOutput: 1200
|
maxTimeBetweenOutput: 1200
|
||||||
@ -63,7 +63,7 @@ instructions:
|
|||||||
property: platformDependency
|
property: platformDependency
|
||||||
equals_value: null
|
equals_value: null
|
||||||
- type: ExecuteCommand
|
- type: ExecuteCommand
|
||||||
command: "{{.Env.TARGET_ENV_PREFIX}} cmake {{.Env.TARGET_CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}}/target -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
command: "{{.Env.TARGET_ENV_PREFIX}} cmake {{.Env.TARGET_CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}}/target {{.SourceDir}}"
|
||||||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
||||||
maxTimeInSeconds: 6000
|
maxTimeInSeconds: 6000
|
||||||
maxTimeBetweenOutput: 1200
|
maxTimeBetweenOutput: 1200
|
||||||
|
@ -9,7 +9,7 @@ instructions:
|
|||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: COIN_CMAKE_ARGS
|
variableName: COIN_CMAKE_ARGS
|
||||||
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
# The lack of space between the non qtbase configure args and the rest of the args is important!
|
||||||
variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}} -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON {{.SourceDir}}"
|
variableValue: "{{.Env.NON_QTBASE_CONFIGURE_ARGS}} {{.SourceDir}}"
|
||||||
- !include "{{qt/qtbase}}/call_cmake.yaml"
|
- !include "{{qt/qtbase}}/call_cmake.yaml"
|
||||||
- type: EnvironmentVariable
|
- type: EnvironmentVariable
|
||||||
variableName: CMAKE_BUILD_TIMEOUT
|
variableName: CMAKE_BUILD_TIMEOUT
|
||||||
|
@ -7,7 +7,7 @@ instructions:
|
|||||||
- type: ChangeDirectory
|
- type: ChangeDirectory
|
||||||
directory: "{{.BuildDir}}"
|
directory: "{{.BuildDir}}"
|
||||||
- type: ExecuteCommand
|
- type: ExecuteCommand
|
||||||
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} -DQT_BUILD_TESTS=OFF {{.SourceDir}}"
|
command: "{{.Env.ENV_PREFIX}} cmake {{.Env.CONFIGURE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{.InstallDir}} {{.SourceDir}}"
|
||||||
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
executeCommandArgumentSplitingBehavior: SplitAfterVariableSubstitution
|
||||||
maxTimeInSeconds: 6000
|
maxTimeInSeconds: 6000
|
||||||
maxTimeBetweenOutput: 1200
|
maxTimeBetweenOutput: 1200
|
||||||
|
@ -358,6 +358,28 @@ instructions:
|
|||||||
property: features
|
property: features
|
||||||
contains_value: WarningsAreErrors
|
contains_value: WarningsAreErrors
|
||||||
|
|
||||||
|
- type: Group
|
||||||
|
instructions:
|
||||||
|
- type: AppendToEnvironmentVariable
|
||||||
|
variableName: CONFIGURE_ARGS
|
||||||
|
variableValue: " -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON"
|
||||||
|
- type: AppendToEnvironmentVariable
|
||||||
|
variableName: NON_QTBASE_CONFIGURE_ARGS
|
||||||
|
variableValue: " -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON"
|
||||||
|
- type: AppendToEnvironmentVariable
|
||||||
|
variableName: TEST_CONFIGURE_ARGS
|
||||||
|
variableValue: " -DCMAKE_AUTOGEN_VERBOSE=ON"
|
||||||
|
|
||||||
|
- type: AppendToEnvironmentVariable
|
||||||
|
variableName: TARGET_CONFIGURE_ARGS
|
||||||
|
variableValue: " -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON"
|
||||||
|
- type: AppendToEnvironmentVariable
|
||||||
|
variableName: NON_QTBASE_TARGET_CONFIGURE_ARGS
|
||||||
|
variableValue: " -DQT_BUILD_TESTS=OFF -DCMAKE_AUTOGEN_VERBOSE=ON"
|
||||||
|
- type: AppendToEnvironmentVariable
|
||||||
|
variableName: TARGET_TEST_CONFIGURE_ARGS
|
||||||
|
variableValue: " -DCMAKE_AUTOGEN_VERBOSE=ON"
|
||||||
|
|
||||||
# Sccache
|
# Sccache
|
||||||
- type: Group
|
- type: Group
|
||||||
instructions:
|
instructions:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user