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-qt7)
15
include(ConfigureChecks.cmake)
16
17
include_directories(${OPENGL_INCLUDE_DIR})
18
19
if (BUILD_PHONON_QT7)
20
    set(phonon_qt7_SRCS
21
        quicktimevideoplayer.mm
22
        backendheader.mm 
23
        medianodevideopart.mm 
24
        medianodeevent.mm 
25
        audiooutput.mm 
26
        backendinfo.mm 
27
        audiosplitter.mm 
28
        audioeffects.mm 
29
        quicktimestreamreader.mm 
30
        medianode.mm 
31
        backend.mm 
32
        mediaobject.mm 
33
        mediaobjectaudionode.mm 
34
        audiomixer.mm  
35
        quicktimeaudioplayer.mm 
36
        videoframe.mm 
37
        quicktimemetadata.mm 
38
        audiodevice.mm 
39
        audioconnection.mm 
40
        audiograph.mm 
41
        audionode.mm 
42
        videowidget.mm
43
       )
44
45
   automoc4_add_library(phonon_qt7 MODULE ${phonon_qt7_SRCS})
46
   target_link_libraries(phonon_qt7
47
       ${QT_QTGUI_LIBRARY} ${QT_QTOPENGL_LIBRARY}
48
       ${PHONON_LIBS}
49
       "-framework QuickTime"
50
       "-framework AudioUnit"
51
       "-framework AudioToolbox"
52
       "-framework CoreAudio"
53
       "-framework QuartzCore"
54
       "-framework QTKit"
55
       )
56
    install(TARGETS phonon_qt7 DESTINATION ${PLUGIN_INSTALL_DIR})
57
58
endif (BUILD_PHONON_QT7)