blob: 17792935e528b90e2003bd2ea25e7d25ab532f98 (
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
67
68
69
70
71
72
73
74
|
INCLUDEPATH += $$PWD
include(../trace/trace.pri)
HEADERS += $$PWD/s60videodisplay.h \
$$PWD/s60videooutpututils.h \
$$PWD/s60videooutputfactory.h \
$$PWD/s60videowidget.h \
$$PWD/s60videowidgetcontrol.h \
$$PWD/s60videowidgetdisplay.h \
$$PWD/s60videowindowcontrol.h \
$$PWD/s60videowindowdisplay.h
SOURCES += $$PWD/s60videodisplay.cpp \
$$PWD/s60videooutpututils.cpp \
$$PWD/s60videooutputfactory.cpp \
$$PWD/s60videowidget.cpp \
$$PWD/s60videowidgetcontrol.cpp \
$$PWD/s60videowidgetdisplay.cpp \
$$PWD/s60videowindowcontrol.cpp \
$$PWD/s60videowindowdisplay.cpp
LIBS *= -lcone
LIBS *= -lws32
# Uncomment this to enable frame rate measurement
#videooutput_measure_framerate = yes
contains(surfaces_s60_enabled, yes) {
message("VideoOutput: graphics surface rendering supported")
DEFINES += VIDEOOUTPUT_GRAPHICS_SURFACES
HEADERS += $$PWD/s60eglendpoint.h \
$$PWD/s60eglextensions.h \
$$PWD/s60nativewindow.h \
$$PWD/s60videobuffer.h \
$$PWD/s60videoeglrenderercontrol.h
SOURCES += $$PWD/s60eglendpoint.cpp \
$$PWD/s60eglextensions.cpp \
$$PWD/s60nativewindow.cpp \
$$PWD/s60videobuffer.cpp \
$$PWD/s60videoeglrenderercontrol.cpp
DEFINES += VIDEOOUTPUT_EGL_RENDERER
LIBS += -llibegl
contains(QT_CONFIG, opengl) | contains(QT_CONFIG, opengles2) {
QT += opengl
} else {
DEFINES += QT_NO_OPENGL
}
contains(QT_CONFIG, openvg) {
LIBS += -llibopenvg
} else {
DEFINES += QT_NO_OPENVG
}
contains(videooutput_measure_framerate, yes) {
HEADERS += $$PWD/s60videoframerate.h
SOURCES += $$PWD/s60videoframerate.cpp
DEFINES += VIDEOOUTPUT_MEASURE_FRAMERATE
}
} else {
message("VideoOutput: no graphics surface rendering support - DSA only")
}
exists($$[QT_INSTALL_HEADERS]/QtGui/qgraphicssystemhelper_symbian.h) {
message("VideoOutput: QSymbianGraphicsSystemHelper is available")
DEFINES += QSYMBIANGRAPHICSSYSTEMHELPER_AVAILABLE
} else {
exists($$[QT_INSTALL_HEADERS]/QtGui/private/qwidget_p.h) {
DEFINES += PRIVATE_QTGUI_HEADERS_AVAILABLE
message("VideoOutput: private QtGui headers are available")
} else {
message("VideoOutput: neither QSymbianGraphicsSystemHelper nor private QtGui headers not available - video and viewfinder may not be rendered correctly")
}
}
|