summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/mediaplayer/mediaplayer.pro
blob: f71e0c3b3af9d8eccc3c21ae2ec8cd190782f7a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
TARGET = qavfmediaplayer

#DEFINES += QT_DEBUG_AVF
# Avoid clash with a variable named `slots' in a Quartz header
CONFIG += no_keywords

QT += multimedia-private network

LIBS += -framework CoreMedia -framework CoreVideo -framework QuartzCore

QMAKE_USE += avfoundation

HEADERS += \
    avfmediaplayercontrol.h \
    avfmediaplayermetadatacontrol.h \
    avfmediaplayerservice.h \
    avfmediaplayersession.h \
    avfmediaplayerserviceplugin.h \
    avfvideooutput.h \
    avfvideowindowcontrol.h

OBJECTIVE_SOURCES += \
    avfmediaplayercontrol.mm \
    avfmediaplayermetadatacontrol.mm \
    avfmediaplayerservice.mm \
    avfmediaplayerserviceplugin.mm \
    avfmediaplayersession.mm \
    avfvideooutput.mm \
    avfvideowindowcontrol.mm

    qtHaveModule(widgets) {
        QT += multimediawidgets-private
        HEADERS += \
            avfvideowidgetcontrol.h \
            avfvideowidget.h

        OBJECTIVE_SOURCES += \
            avfvideowidgetcontrol.mm \
            avfvideowidget.mm
    }

qtConfig(opengl) {
    HEADERS += \
        avfvideoframerenderer.h \
        avfvideorenderercontrol.h \
        avfdisplaylink.h

    OBJECTIVE_SOURCES += \
        avfvideoframerenderer.mm \
        avfvideorenderercontrol.mm \
        avfdisplaylink.mm
}

ios|tvos {
    LIBS += -framework Foundation
} else {
    INCLUDEPATH += $$[QT_INSTALL_HEADERS]
    LIBS += -framework AppKit -framework Metal
}

OTHER_FILES += \
    avfmediaplayer.json

PLUGIN_TYPE = mediaservice
PLUGIN_CLASS_NAME = AVFMediaPlayerServicePlugin
load(qt_plugin)