summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/mediaplayer/mediaplayer.pro
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/mediaplayer.pro')
-rw-r--r--src/plugins/avfoundation/mediaplayer/mediaplayer.pro56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/mediaplayer.pro b/src/plugins/avfoundation/mediaplayer/mediaplayer.pro
new file mode 100644
index 000000000..ae320ac1f
--- /dev/null
+++ b/src/plugins/avfoundation/mediaplayer/mediaplayer.pro
@@ -0,0 +1,56 @@
+load(qt_build_config)
+
+#DEFINES += QT_DEBUG_AVF
+# Avoid clash with a variable named `slots' in a Quartz header
+CONFIG += no_keywords
+
+TARGET = qavfmediaplayer
+QT += multimedia-private network
+
+PLUGIN_TYPE = mediaservice
+
+load(qt_plugin)
+DESTDIR = $$QT.multimedia.plugins/$${PLUGIN_TYPE}
+
+LIBS += -framework AVFoundation -framework CoreMedia
+
+target.path += $$[QT_INSTALL_PLUGINS]/$${PLUGIN_TYPE}
+INSTALLS += target
+
+DEFINES += QMEDIA_AVF_MEDIAPLAYER
+
+HEADERS += \
+ avfmediaplayercontrol.h \
+ avfmediaplayermetadatacontrol.h \
+ avfmediaplayerservice.h \
+ avfmediaplayersession.h \
+ avfmediaplayerserviceplugin.h \
+ avfvideorenderercontrol.h \
+ avfdisplaylink.h \
+ avfvideoframerenderer.h \
+ avfvideooutput.h
+
+OBJECTIVE_SOURCES += \
+ avfmediaplayercontrol.mm \
+ avfmediaplayermetadatacontrol.mm \
+ avfmediaplayerservice.mm \
+ avfmediaplayerserviceplugin.mm \
+ avfmediaplayersession.mm \
+ avfvideorenderercontrol.mm \
+ avfdisplaylink.mm \
+ avfvideoframerenderer.mm \
+ avfvideooutput.mm
+
+!isEmpty(QT.widgets.name) {
+ QT += multimediawidgets-private opengl
+ HEADERS += \
+ avfvideowidgetcontrol.h \
+ avfvideowidget.h
+
+ OBJECTIVE_SOURCES += \
+ avfvideowidgetcontrol.mm \
+ avfvideowidget.mm
+}
+
+OTHER_FILES += \
+ avfmediaplayer.json