0
|
1 |
# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
# Copyright (C) 2008 Matthias Kretz <kretz@kde.org>
|
|
3 |
#
|
|
4 |
# This library is free software: you can redistribute it and/or modify
|
|
5 |
# it under the terms of the GNU Lesser General Public License as published by
|
|
6 |
# the Free Software Foundation, either version 2 or 3 of the License.
|
|
7 |
#
|
|
8 |
# This library is distributed in the hope that it will be useful,
|
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
11 |
# GNU Lesser General Public License for more details.
|
|
12 |
#
|
|
13 |
# You should have received a copy of the GNU Lesser General Public License
|
|
14 |
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
15 |
|
|
16 |
project(phonon-gstreamer)
|
|
17 |
include(ConfigureChecks.cmake)
|
|
18 |
|
|
19 |
if (BUILD_PHONON_GSTREAMER)
|
|
20 |
include_directories(${GSTREAMER_INCLUDE_DIR} ${GLIB2_INCLUDE_DIR}
|
|
21 |
${LIBXML2_INCLUDE_DIR})
|
|
22 |
|
|
23 |
set(phonon_gstreamer_SRCS
|
|
24 |
audiooutput.cpp
|
|
25 |
artssink.cpp
|
|
26 |
backend.cpp
|
|
27 |
devicemanager.cpp
|
|
28 |
effectmanager.cpp
|
|
29 |
gsthelper.cpp
|
|
30 |
mediaobject.cpp
|
|
31 |
medianode.cpp
|
|
32 |
effect.cpp
|
|
33 |
medianodeevent.cpp
|
|
34 |
videowidget.cpp
|
|
35 |
qwidgetvideosink.cpp
|
|
36 |
streamreader.cpp
|
|
37 |
phononsrc.cpp
|
|
38 |
message.cpp
|
|
39 |
audioeffect.cpp
|
|
40 |
abstractrenderer.cpp
|
|
41 |
x11renderer.cpp
|
|
42 |
widgetrenderer.cpp
|
|
43 |
glrenderer.cpp
|
|
44 |
volumefadereffect.cpp
|
|
45 |
)
|
|
46 |
|
|
47 |
find_package(Alsa)
|
|
48 |
if(ALSA_FOUND)
|
|
49 |
add_definitions(-DUSE_ALSASINK2)
|
|
50 |
include_directories(${ALSA_INCLUDES})
|
|
51 |
set(phonon_gstreamer_SRCS
|
|
52 |
${phonon_gstreamer_SRCS}
|
|
53 |
alsasink2.c
|
|
54 |
)
|
|
55 |
endif(ALSA_FOUND)
|
|
56 |
|
|
57 |
automoc4(phonon_gstreamer phonon_gstreamer_SRCS)
|
|
58 |
add_library(phonon_gstreamer SHARED ${phonon_gstreamer_SRCS})
|
|
59 |
set_target_properties(phonon_gstreamer PROPERTIES PREFIX "")
|
|
60 |
target_link_libraries(phonon_gstreamer
|
|
61 |
${QT_QTOPENGL_LIBRARY}
|
|
62 |
${PHONON_LIBS} ${OPENGL_gl_LIBRARY}
|
|
63 |
${GSTREAMER_LIBRARIES} ${GSTREAMER_BASE_LIBRARY} ${GSTREAMER_INTERFACE_LIBRARY}
|
|
64 |
${GSTREAMER_PLUGIN_VIDEO_LIBRARIES} ${GSTREAMER_PLUGIN_AUDIO_LIBRARIES}
|
|
65 |
${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES})
|
|
66 |
if(ALSA_FOUND)
|
|
67 |
target_link_libraries(phonon_gstreamer ${ASOUND_LIBRARY})
|
|
68 |
endif(ALSA_FOUND)
|
|
69 |
|
|
70 |
install(TARGETS phonon_gstreamer DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/phonon_backend)
|
|
71 |
install(FILES gstreamer.desktop DESTINATION ${SERVICES_INSTALL_DIR}/phononbackends)
|
|
72 |
endif (BUILD_PHONON_GSTREAMER)
|