From ba196464eb503727fb1b53241e607b8c14667f6f Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 8 Feb 2009 21:41:08 +0000 Subject: [PATCH] enable build of videowidget, depending if Phonon is found or not svn path=/trunk/KDE/kdelibs/; revision=923520 --- CMakeLists.txt | 11 +++++++++++ widgets/videowidget.h | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a2f62dfa..9d91c681b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,6 +135,13 @@ if(QT_QTOPENGL_FOUND AND OPENGL_FOUND) glapplet.cpp) endif(QT_QTOPENGL_FOUND AND OPENGL_FOUND) +if (PHONON_FOUND) + message(STATUS "Adding support to Phonon to libplasma") + set(plasma_LIB_SRCS + ${plasma_LIB_SRCS} + widgets/videowidget.cpp) +endif(PHONON_FOUND) + kde4_add_library(plasma SHARED ${plasma_LIB_SRCS}) target_link_libraries(plasma ${KDE4_KIO_LIBS} ${KDE4_KFILE_LIBS} knewstuff2 @@ -144,6 +151,9 @@ if(X11_FOUND) target_link_libraries(plasma ${X11_LIBRARIES}) endif(X11_FOUND) +if(PHONON_FOUND) + target_link_libraries(plasma ${KDE4_PHONON_LIBS}) +endif(PHONON_FOUND) if(DL_LIBRARY) target_link_libraries(plasma ${DL_LIBRARY}) @@ -241,6 +251,7 @@ install(FILES widgets/tabbar.h widgets/treeview.h widgets/textedit.h + widgets/videowidget.h widgets/webview.h DESTINATION ${INCLUDE_INSTALL_DIR}/plasma/widgets COMPONENT Devel) diff --git a/widgets/videowidget.h b/widgets/videowidget.h index d1b099fef..f329caaa0 100644 --- a/widgets/videowidget.h +++ b/widgets/videowidget.h @@ -22,6 +22,8 @@ #include +#include + namespace Phonon { class VideoWidget; class MediaObject; @@ -38,7 +40,7 @@ class VideoWidgetPrivate; * * @short Provides a video player widget */ -class VideoWidget : public QGraphicsProxyWidget +class PLASMA_EXPORT VideoWidget : public QGraphicsProxyWidget { Q_OBJECT