| 1 |
# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
| 2 |
# |
| 3 |
# This library is free software: you can redistribute it and/or modify |
| 4 |
# it under the terms of the GNU Lesser General Public License as published by |
| 5 |
# the Free Software Foundation, either version 2 or 3 of the License. |
| 6 |
# |
| 7 |
# This library is distributed in the hope that it will be useful, |
| 8 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 |
# GNU Lesser General Public License for more details. |
| 11 |
# |
| 12 |
# You should have received a copy of the GNU Lesser General Public License |
| 13 |
# along with this library. If not, see <http://www.gnu.org/licenses/>. |
| 14 |
project(phonon-ds9) |
| 15 |
include(ConfigureChecks.cmake) |
| 16 |
|
| 17 |
if (BUILD_PHONON_DS9) |
| 18 |
find_package(OPENGL REQUIRED) |
| 19 |
|
| 20 |
include_directories($ENV{DXDSDK_DIR}/include $ENV{DXSDK_DIR}) |
| 21 |
set(phonon_ds9_SRCS |
| 22 |
abstractvideorenderer.cpp |
| 23 |
audiooutput.cpp |
| 24 |
backend.cpp |
| 25 |
backendnode.cpp |
| 26 |
effect.cpp |
| 27 |
fakesource.cpp |
| 28 |
iodevicereader.cpp |
| 29 |
mediagraph.cpp |
| 30 |
mediaobject.cpp |
| 31 |
videowidget.cpp |
| 32 |
videorenderer_vmr9.cpp |
| 33 |
videorenderer_soft.cpp |
| 34 |
volumeeffect.cpp |
| 35 |
qbasefilter.cpp |
| 36 |
qpin.cpp |
| 37 |
qasyncreader.cpp |
| 38 |
qaudiocdreader.cpp |
| 39 |
qmeminputpin.cpp |
| 40 |
) |
| 41 |
|
| 42 |
add_definitions(-DPHONON_MAKE_QT_ONLY_BACKEND -DUNICODE) |
| 43 |
automoc4_add_library(phonon_ds9 MODULE ${phonon_ds9_SRCS}) |
| 44 |
set_target_properties(phonon_ds9 PROPERTIES PREFIX "") |
| 45 |
target_link_libraries(phonon_ds9 |
| 46 |
${PHONON_LIBS} ${QT_QTOPENGL_LIBRARY} ${OPENGL_gl_LIBRARY} |
| 47 |
dxguid strmiids dmoguids msdmo ole32 oleaut32 uuid gdi32) |
| 48 |
# 'MODULE' is treated as a LIBRARY |
| 49 |
install(TARGETS phonon_ds9 |
| 50 |
RUNTIME DESTINATION ${BIN_INSTALL_DIR}/phonon_backend |
| 51 |
LIBRARY DESTINATION ${BIN_INSTALL_DIR}/phonon_backend |
| 52 |
ARCHIVE DESTINATION ${LIB_INSTALL_DIR}) |
| 53 |
install(FILES ds9.desktop DESTINATION ${SERVICES_INSTALL_DIR}/phononbackends) |
| 54 |
endif (BUILD_PHONON_DS9) |