#### 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 )