enable build of videowidget, depending if Phonon is found or not

svn path=/trunk/KDE/kdelibs/; revision=923520
This commit is contained in:
Marco Martin 2009-02-08 21:41:08 +00:00
parent b0ad8d6535
commit ba196464eb
2 changed files with 14 additions and 1 deletions

View File

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

View File

@ -22,6 +22,8 @@
#include <QtGui/QGraphicsProxyWidget>
#include <plasma/plasma_export.h>
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