blob: c75cae8c5669597f1ca7b2b7a02f3f84fd4a964e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#### Inputs
# input taglib
set(INPUT_taglib "undefined" CACHE STRING "")
set_property(CACHE INPUT_taglib PROPERTY STRINGS undefined no qt system)
#### Libraries
qt_find_package(WrapSystemTagLib PROVIDED_TARGETS WrapSystemTagLib::WrapSystemTagLib MODULE_NAME ivimedia QMAKE_LIB taglib)
#### Tests
#### Features
qt_feature("taglib" PRIVATE
LABEL "taglib"
DISABLE INPUT_taglib STREQUAL 'no'
)
qt_feature_definition("taglib" "QTIVI_NO_TAGLIB" NEGATE)
qt_feature("system-taglib" PRIVATE
LABEL " Using system taglib"
CONDITION QT_FEATURE_taglib AND WrapSystemTagLib_FOUND
ENABLE INPUT_taglib STREQUAL 'system'
DISABLE INPUT_taglib STREQUAL 'qt'
)
qt_feature("media_simulation_backend" PRIVATE
LABEL "Mediaplayer Simulation Backend"
CONDITION TARGET Qt::Multimedia
)
qt_feature("tuner_simulation_backend" PRIVATE
LABEL "Tuner Simulation Backend"
CONDITION TARGET Qt::Multimedia
)
qt_feature("media_qtro_backend" PRIVATE
LABEL "Mediaplayer Qt Remote Objects Backend"
CONDITION QT_FEATURE_remoteobjects AND TARGET Qt::Multimedia
)
qt_feature("media_qtro_simulation_server" PRIVATE
LABEL "Mediaplayer Qt Remote Objects Simulation Server"
CONDITION QT_FEATURE_remoteobjects AND TARGET Qt::Multimedia
)
qt_feature("ivimedia" PUBLIC
LABEL "Qt IVI Media"
CONDITION QT_FEATURE_ivicore
)
qt_configure_add_summary_section(NAME "Qt IVI Media")
qt_configure_add_summary_entry(ARGS "taglib")
qt_configure_add_summary_entry(ARGS "system-taglib")
qt_configure_add_summary_entry(ARGS "media_qtro_simulation_server")
qt_configure_add_summary_section(NAME "Backends")
qt_configure_add_summary_entry(ARGS "media_simulation_backend")
qt_configure_add_summary_entry(ARGS "media_qtro_backend")
qt_configure_add_summary_entry(ARGS "tuner_simulation_backend")
qt_configure_end_summary_section() # end of "Backends" section
qt_configure_end_summary_section() # end of "Qt IVI Media" section
qt_configure_add_summary_entry(
ARGS "ivimedia"
CONDITION NOT QT_FEATURE_ivimedia
)
qt_configure_add_report_entry(
TYPE ERROR
# special case begin
MESSAGE [[
The taglib submodule was not initialized
Please initialize the submodule
E.g. by running the following command:
git submodule init && git submodule update
or disable taglib by passing --taglib=no
]]
CONDITION NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/../3rdparty/taglib/taglib/INSTALL" AND QT_FEATURE_taglib AND NOT QT_FEATURE_system_taglib
# special case end
)
qt_configure_add_report_entry(
TYPE WARNING
# special case begin
MESSAGE [[
Building taglib was disabled!
The Mediaplayer Simulation Backend will only provide a stub and can't scan media files
]]
# special case end
CONDITION INPUT_taglib STREQUAL 'no'
)
qt_configure_add_report_entry(
TYPE WARNING
# special case begin
MESSAGE [[
Building Mediaplayer Simulation Backend was disabled!
Please make sure the QtMultimedia module is available.
]]
# special case end
CONDITION NOT QT_FEATURE_media_simulation_backend AND NOT TARGET Qt::Multimedia
)
|