qt5multimedia: conditionally add pulseaudio to dependencies
PATCH 1/1 qt5multimedia: conditionally add pulseaudio to dependencies
Qt5Multimedia includes support for pulseaudio if it detects libpulse and libpulse-mainloop-glib in the system at build-time. We need to depend on pulseaudio if it is selected.
--- package/qt5/qt5multimedia/qt5multimedia.mk | 4 ++++ 1 file changed, 4 insertions(+)
package/qt5/qt5multimedia/qt5multimedia.mk +4 -0
@@ -26,6 +26,10 @@ ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y) QT5MULTIMEDIA_DEPENDENCIES += qt5declarative endif +ifeq ($(BR2_PACKAGE_PULSEAUDIO),y) +QT5MULTIMEDIA_DEPENDENCIES += pulseaudio +endif + define QT5MULTIMEDIA_CONFIGURE_CMDS (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake) endef
Signature · 1 line
2.9.3
PATCH 1/1 qt5multimedia: conditionally add pulseaudio to dependencies
Hello Bartosz,
Quoted 14 lines · Bartosz Golaszewski
Qt5Multimedia includes support for pulseaudio if it detects libpulse and libpulse-mainloop-glib in the system at build-time. We need to depend on pulseaudio if it is selected.
Signed-off-by Bartosz Golaszewski <[email protected]>--- package/qt5/qt5multimedia/qt5multimedia.mk | 4 ++++ 1 file changed, 4 insertions(+)package/qt5/qt5multimedia/qt5multimedia.mk +0
-0
package/qt5/qt5multimedia/qt5multimedia.mk ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y) · line 32
Quoted 7 lines
package/qt5/qt5multimedia/qt5multimedia.mk +4
-0@@ -26,6 +26,10 @@ ifeq ($(BR2_PACKAGE_QT5DECLARATIVE),y) QT5MULTIMEDIA_DEPENDENCIES += qt5declarative endif +ifeq ($(BR2_PACKAGE_PULSEAUDIO),y) +QT5MULTIMEDIA_DEPENDENCIES += pulseaudio +endif +
Thanks for catching this one.
Ony one nit: the test qtmultimedia-opensource-src-5.8.0/config.tests/pulseaudio/pulseaudio.cpp checks for:
#include <pulse/pulseaudio.h> #include <pulse/glib-mainloop.h>
and pulse/glib-mainloop.h is only installed by the pulseaudio package in case BR2_PACKAGE_LIBGLIB2 is selected. The Dependency should therefore be (not sure about the libglib2 one):
+ifeq ($(BR2_PACKAGE_LIBGLIB2)$(BR2_PACKAGE_PULSEAUDIO),yy) +QT5MULTIMEDIA_DEPENDENCIES += libglib2 pulseaudio +endif
By the way, the dependency on alsa is missing too...
Regards,
Peter
Quoted 3 lines
package/qt5/qt5multimedia/qt5multimedia.mk +0
-0define QT5MULTIMEDIA_CONFIGURE_CMDS (cd $(@D); $(TARGET_MAKE_ENV) $(HOST_DIR)/usr/bin/qmake) endef
PATCH 1/1 qt5multimedia: conditionally add pulseaudio to dependencies
In reply to Bartosz Golaszewski2017-06-26 16:11 GMT+02:00 Bartosz Golaszewski <[email protected]>:
Quoted 8 lines
Qt5Multimedia includes support for pulseaudio if it detects libpulse and libpulse-mainloop-glib in the system at build-time. We need to depend on pulseaudio if it is selected.
Signed-off-by Bartosz Golaszewski <[email protected]>--- package/qt5/qt5multimedia/qt5multimedia.mk | 4 ++++ 1 file changed, 4 insertions(+)
Superseded by v2 [1].
Thanks,
Bartosz