aboutsummaryrefslogtreecommitdiffstats
path: root/src/ivimedia/configure.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/ivimedia/configure.cmake')
-rw-r--r--src/ivimedia/configure.cmake80
1 files changed, 80 insertions, 0 deletions
diff --git a/src/ivimedia/configure.cmake b/src/ivimedia/configure.cmake
new file mode 100644
index 0000000..dd28af9
--- /dev/null
+++ b/src/ivimedia/configure.cmake
@@ -0,0 +1,80 @@
+
+
+#### Inputs
+
+# input taglib
+set(INPUT_taglib "undefined" CACHE STRING "")
+set_property(CACHE INPUT_taglib PROPERTY STRINGS undefined no qt system)
+
+
+
+#### Libraries
+
+
+
+#### 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 libs.taglib OR FIXME
+ 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
+ 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 tests.taglib_submodule AND NOT INPUT_taglib STREQUAL 'no' AND NOT QT_FEATURE_system_taglib OR FIXME
+)
+qt_configure_add_report_entry(
+ TYPE WARNING
+ MESSAGE "Building taglib was disabled! The Mediaplayer Simulation Backend will only provide a stub and can't scan media files"
+ CONDITION INPUT_taglib STREQUAL 'no'
+)
+qt_configure_add_report_entry(
+ TYPE WARNING
+ MESSAGE "Building Mediaplayer Simulation Backend was disabled! Please make sure the QtMultimedia module is available."
+ CONDITION NOT QT_FEATURE_media_simulation_backend AND NOT TARGET Qt::Multimedia
+)