author | Eckhart Koeppen <eckhart.koppen@nokia.com> |
Wed, 21 Apr 2010 11:15:19 +0300 | |
branch | RCL_3 |
changeset 11 | 25a739ee40f4 |
parent 3 | 41300fa6a67c |
permissions | -rw-r--r-- |
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) |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
20 |
include_directories( |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
21 |
${CMAKE_CURRENT_BINARY_DIR} |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
22 |
${GSTREAMER_INCLUDE_DIR} |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
23 |
${GLIB2_INCLUDE_DIR} |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
24 |
${LIBXML2_INCLUDE_DIR} |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
25 |
${X11_X11_INCLUDE_PATH}) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
26 |
add_definitions(-DPHONON_BACKEND_VERSION_4_2) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
27 |
|
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
28 |
# configure plugin api |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
29 |
if(USE_INSTALL_PLUGIN) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
30 |
set(PLUGIN_INSTALL_API TRUE) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
31 |
endif(USE_INSTALL_PLUGIN) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
32 |
|
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
33 |
configure_file(phonon-config-gstreamer.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/phonon-config-gstreamer.h ) |
0 | 34 |
|
35 |
set(phonon_gstreamer_SRCS |
|
36 |
audiooutput.cpp |
|
37 |
artssink.cpp |
|
38 |
backend.cpp |
|
39 |
devicemanager.cpp |
|
40 |
effectmanager.cpp |
|
41 |
gsthelper.cpp |
|
42 |
mediaobject.cpp |
|
43 |
medianode.cpp |
|
44 |
effect.cpp |
|
45 |
medianodeevent.cpp |
|
46 |
videowidget.cpp |
|
47 |
qwidgetvideosink.cpp |
|
48 |
streamreader.cpp |
|
49 |
phononsrc.cpp |
|
50 |
message.cpp |
|
51 |
audioeffect.cpp |
|
52 |
abstractrenderer.cpp |
|
53 |
x11renderer.cpp |
|
54 |
widgetrenderer.cpp |
|
55 |
glrenderer.cpp |
|
56 |
volumefadereffect.cpp |
|
57 |
) |
|
58 |
||
59 |
find_package(Alsa) |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
60 |
macro_ensure_version("0.10.22" ${GSTREAMER_VERSION} GSTREAMER_HAS_NONBLOCKING_ALSASINK) |
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
61 |
if(ALSA_FOUND AND NOT GSTREAMER_HAS_NONBLOCKING_ALSASINK) |
0 | 62 |
add_definitions(-DUSE_ALSASINK2) |
63 |
include_directories(${ALSA_INCLUDES}) |
|
64 |
set(phonon_gstreamer_SRCS |
|
65 |
${phonon_gstreamer_SRCS} |
|
66 |
alsasink2.c |
|
67 |
) |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
68 |
endif(ALSA_FOUND AND NOT GSTREAMER_HAS_NONBLOCKING_ALSASINK) |
0 | 69 |
|
3
41300fa6a67c
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
70 |
automoc4_add_library(phonon_gstreamer MODULE ${phonon_gstreamer_SRCS}) |
0 | 71 |
set_target_properties(phonon_gstreamer PROPERTIES PREFIX "") |
72 |
target_link_libraries(phonon_gstreamer |
|
73 |
${QT_QTOPENGL_LIBRARY} |
|
74 |
${PHONON_LIBS} ${OPENGL_gl_LIBRARY} |
|
75 |
${GSTREAMER_LIBRARIES} ${GSTREAMER_BASE_LIBRARY} ${GSTREAMER_INTERFACE_LIBRARY} |
|
76 |
${GSTREAMER_PLUGIN_VIDEO_LIBRARIES} ${GSTREAMER_PLUGIN_AUDIO_LIBRARIES} |
|
77 |
${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES}) |
|
78 |
if(ALSA_FOUND) |
|
79 |
target_link_libraries(phonon_gstreamer ${ASOUND_LIBRARY}) |
|
80 |
endif(ALSA_FOUND) |
|
81 |
||
82 |
install(TARGETS phonon_gstreamer DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/phonon_backend) |
|
83 |
install(FILES gstreamer.desktop DESTINATION ${SERVICES_INSTALL_DIR}/phononbackends) |
|
84 |
endif (BUILD_PHONON_GSTREAMER) |