Debian Codegraph @

coin/instructions/cmake_qtbase_build_instructions.yaml

raw
1 type: Group
2 instructions:
3 - type: ChangeDirectory
4 directory: "{{.SourceDir}}"
5 - type: MakeDirectory
6 directory: .git
7 - type: MakeDirectory
8 directory: "{{.SourceDir}}_build"
9 - type: SetBuildDirectory
10 directory: "{{.SourceDir}}_build"
11 - type: ChangeDirectory
12 directory: "{{.BuildDir}}"
13
14 - type: EnvironmentVariable
15 variableName: COIN_CONFIGURE_ARGS
16 variableValue: "{{.Env.CONFIGURE_ARGS}}"
17 - type: EnvironmentVariable
18 variableName: COIN_CMAKE_ARGS
19 # Use unix separators even on Windows, to avoid escaping issues in the configure script.
20 variableValue: "{{.Env.CMAKE_ARGS}} {{.Env.COMMON_CMAKE_ARGS}} -DCMAKE_INSTALL_PREFIX:PATH={{unixPathSeparators .InstallDir}}"
21 - type: EnvironmentVariable
22 variableName: CONFIGURE_ENV_PREFIX
23 variableValue: "{{.Env.ENV_PREFIX}}"
24 - !include "{{qt/qtbase}}/call_configure_qtbase.yaml"
25
26 - type: ExecuteCommand
27 command: "{{.Env.CONFIGURE_ENV_PREFIX}} cmake --build . --parallel -v"
28 maxTimeInSeconds: 6000
29 maxTimeBetweenOutput: 1200
30 userMessageOnFailure: >
31 Failed to build sources.
32 - type: EnvironmentVariable
33 variableName: COIN_CMAKE_BUILD_DIR
34 variableValue: "{{.BuildDir}}"
35 - type: EnvironmentVariable
36 variableName: COIN_CMAKE_BUILD_LIBEXEC_DIR
37 variableValue: "{{.Env.COIN_CMAKE_BUILD_DIR}}{{.Env.CI_PATH_SEP}}libexec"
38 disable_if:
39 condition: and
40 conditions:
41 - condition: property
42 property: host.os
43 equals_value: Windows
44 - condition: and
45 conditions:
46 - condition: property
47 property: target.os
48 not_equals_value: QNX
49 - condition: property
50 property: target.osVersion
51 not_in_values: [WebAssembly, Android_ANY]
52 - type: EnvironmentVariable
53 variableName: COIN_CMAKE_BUILD_LIBEXEC_DIR
54 variableValue: "{{.Env.COIN_CMAKE_BUILD_DIR}}{{.Env.CI_PATH_SEP}}bin"
55 enable_if:
56 condition: and
57 conditions:
58 - condition: property
59 property: host.os
60 equals_value: Windows
61 - condition: and
62 conditions:
63 - condition: property
64 property: target.os
65 not_equals_value: QNX
66 - condition: property
67 property: target.osVersion
68 not_in_values: [WebAssembly, Android_ANY]
69 - !include "{{qt/qtbase}}/call_host_install.yaml"
70 - type: EnvironmentVariable
71 variableName: DESTDIR
72 variableValue: "{{.InstallRoot}}"
73 - !include "{{qt/qtbase}}/call_host_install.yaml"
74 - type: EnvironmentVariable
75 variableName: DESTDIR
76 variableValue: ""
77 - type: SignPackage
78 enable_if:
79 condition: and
80 conditions:
81 - condition: property
82 property: host.os
83 equals_value: Windows
84 - condition: property
85 property: features
86 contains_value: Packaging
87 directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
88 maxTimeInSeconds: 1200
89 maxTimeBetweenOutput: 1200
90 # Signal that qtbase should always build the doc tools (if all other requirements are met).
91 - type: EnvironmentVariable
92 variableName: QT_CI_BUILD_DOC_TOOLS
93 variableValue: "1"
94 - !include "{{qt/qtbase}}/coin_build_doc_tools_checked.yaml"
95 - type: UploadArtifact
96 archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
97 transferType: UploadModuleBuildArtifact
98 maxTimeInSeconds: 1200
99 maxTimeBetweenOutput: 1200
100 - type: EnvironmentVariable
101 variableName: COIN_CONFIG_TYPE
102 variableValue: "Host"
103 - !include "{{qt/qtbase}}/cmake_build_standalone_examples_host.yaml"
104 - !include "{{qt/qtbase}}/qmake/get_qmake_location_host.yaml"
105 - !include "{{qt/qtbase}}/qmake_examples/build_qmake_examples_instructions.yaml"