Debian Codegraph @

coin/instructions/qmake_examples/build_qmake_examples_instructions.yaml

raw
1 type: Group
2 instructions:
3 # Only enable building examples if -DQT_BUILD_EXAMPLES=ON was passed to the CMake config in some
4 # form. The variable to check unfortunately depends on host vs target, and qtbase vs non-qtbase.
5 - type: Group
6 instructions:
7 - !include "{{qt/qtbase}}/qmake_examples/build_qmake_examples_inner_instructions.yaml"
8 enable_if:
9 condition: or
10 conditions:
11 # qtbase host case
12 - condition: runtime
13 env_var: CONFIGURE_ARGS
14 contains_value: "QT_BUILD_EXAMPLES=ON"
15 # qtbase target case
16 - condition: runtime
17 env_var: TARGET_CONFIGURE_ARGS
18 contains_value: "QT_BUILD_EXAMPLES=ON"
19 # non-qtbase host case
20 # non-qtbase target case
21 - condition: runtime
22 env_var: COIN_CMAKE_ARGS
23 contains_value: "QT_BUILD_EXAMPLES=ON"
24 # host case
25 - condition: runtime
26 env_var: CONFIGURE_ARGS
27 contains_value: "-make examples"
28 # target case
29 - condition: runtime
30 env_var: TARGET_CONFIGURE_ARGS
31 contains_value: "-make examples"