Debian Codegraph @

coin/instructions/cmake_cross_compilation_qtbase_build_instructions.yaml

raw
1 type: Group
2 instructions:
3 - type: MakeDirectory
4 directory: .git
5 - type: MakeDirectory
6 directory: "{{.SourceDir}}_build"
7 - type: ChangeDirectory
8 directory: "{{.SourceDir}}_build"
9 - type: MakeDirectory
10 directory: target
11 - type: EnvironmentVariable
12 variableName: DESTDIR
13 variableValue: ""
14 - type: SetBuildDirectory
15 directory: "{{.SourceDir}}_build/target"
16 - type: ChangeDirectory
17 directory: "{{.BuildDir}}"
18
19 - type: AppendToEnvironmentVariable
20 variableName: TARGET_CMAKE_ARGS
21 variableValue: " -DQT_HOST_PATH={{.AgentWorkingDir}}/install"
22
23 - type: EnvironmentVariable
24 variableName: COIN_CONFIGURE_ARGS
25 variableValue: "{{.Env.TARGET_CONFIGURE_ARGS}}"
26 - type: EnvironmentVariable
27 variableName: COIN_CMAKE_ARGS
28 # Use unix separators even on Windows, to avoid escaping issues in the configure script.
29 variableValue: "{{.Env.TARGET_CMAKE_ARGS}} {{.Env.COMMON_TARGET_CMAKE_ARGS}} -DCMAKE_STAGING_PREFIX:PATH={{unixPathSeparators .InstallDir}}/target"
30 - type: EnvironmentVariable
31 variableName: CONFIGURE_ENV_PREFIX
32 variableValue: "{{.Env.TARGET_ENV_PREFIX}}"
33 - !include "{{qt/qtbase}}/call_configure_qtbase.yaml"
34
35 - type: ExecuteCommand
36 command: "{{.Env.CONFIGURE_ENV_PREFIX}} cmake --build . --parallel -v"
37 maxTimeInSeconds: 6000
38 maxTimeBetweenOutput: 4800
39 userMessageOnFailure: >
40 Failed to build sources.
41 - type: EnvironmentVariable
42 variableName: COIN_CMAKE_BUILD_DIR
43 variableValue: "{{.BuildDir}}"
44 - type: EnvironmentVariable
45 variableName: COIN_CMAKE_BUILD_LIBEXEC_DIR
46 variableValue: "{{.Env.COIN_CMAKE_BUILD_DIR}}{{.Env.CI_PATH_SEP}}libexec"
47 disable_if:
48 condition: and
49 conditions:
50 - condition: property
51 property: host.os
52 equals_value: Windows
53 - condition: and
54 conditions:
55 - condition: property
56 property: target.os
57 not_equals_value: QNX
58 - condition: property
59 property: target.osVersion
60 not_in_values: [WebAssembly, Android_ANY]
61 - type: EnvironmentVariable
62 variableName: COIN_CMAKE_BUILD_LIBEXEC_DIR
63 variableValue: "{{.Env.COIN_CMAKE_BUILD_DIR}}{{.Env.CI_PATH_SEP}}bin"
64 enable_if:
65 condition: and
66 conditions:
67 - condition: property
68 property: host.os
69 equals_value: Windows
70 - condition: and
71 conditions:
72 - condition: property
73 property: target.os
74 not_equals_value: QNX
75 - condition: property
76 property: target.osVersion
77 not_in_values: [WebAssembly, Android_ANY]
78 - !include "{{qt/qtbase}}/call_target_install.yaml"
79 - type: EnvironmentVariable
80 variableName: DESTDIR
81 variableValue: "{{.InstallRoot}}"
82 - !include "{{qt/qtbase}}/call_target_install.yaml"
83 - type: EnvironmentVariable
84 variableName: DESTDIR
85 variableValue: ""
86 - type: SignPackage
87 directory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
88 maxTimeInSeconds: 1200
89 maxTimeBetweenOutput: 1200
90 enable_if:
91 condition: and
92 conditions:
93 - condition: property
94 property: host.os
95 equals_value: Windows
96 - condition: property
97 property: features
98 contains_value: Packaging
99 - type: Group
100 instructions:
101 - !include "{{qt/qtbase}}/build_android_javadocs.yaml"
102 enable_if:
103 condition: and
104 conditions:
105 - condition: property
106 property: features
107 contains_value: JavaDocs
108 - condition: property
109 property: target.osVersion
110 equals_value: "Android_ANY"
111 - type: UploadArtifact
112 archiveDirectory: "{{.InstallRoot}}/{{.AgentWorkingDir}}"
113 transferType: UploadModuleBuildArtifact
114 maxTimeInSeconds: 1200
115 maxTimeBetweenOutput: 1200
116 - type: EnvironmentVariable
117 variableName: COIN_CONFIG_TYPE
118 variableValue: "Target"
119 - !include "{{qt/qtbase}}/cmake_build_standalone_examples_target.yaml"
120 - !include "{{qt/qtbase}}/qmake/get_qmake_location_target.yaml"
121 - !include "{{qt/qtbase}}/qmake_examples/build_qmake_examples_instructions.yaml"