2016-06-16 05:13:02 +00:00
|
|
|
TEMPLATE = lib
|
|
|
|
|
2017-10-13 11:25:22 +00:00
|
|
|
TARGET = gstqmlgl
|
2016-06-16 05:13:02 +00:00
|
|
|
|
2019-01-19 14:10:09 +00:00
|
|
|
QT += qml quick gui
|
2016-06-16 05:13:02 +00:00
|
|
|
|
2020-05-13 09:31:38 +00:00
|
|
|
win32:!defined(packagesExist, test) {
|
|
|
|
# Change this to your gstreamer SDK installation path
|
|
|
|
GSTREAMER_PATH=C:/gstreamer/1.0/x86
|
|
|
|
|
|
|
|
# pkgconfig dependencies: gstreamer-1.0, gstreamer-video-1.0, gstreamer-gl-1.0
|
|
|
|
|
|
|
|
GSTREAMER_1_0_INCLUDEPATH = $${GSTREAMER_PATH}/include/gstreamer-1.0
|
|
|
|
win32-g++:GSTREAMER_1_0_LIBS = -L$${GSTREAMER_PATH}/lib -lgstreamer-1.0
|
|
|
|
win32-msvc:GSTREAMER_1_0_LIBS = /LIBPATH:$${GSTREAMER_PATH}/lib gstreamer-1.0.lib
|
|
|
|
|
|
|
|
GSTREAMER_VIDEO_1_0_INCLUDEPATH = $${GSTREAMER_PATH}/include/gstreamer-1.0
|
|
|
|
win32-g++:GSTREAMER_VIDEO_1_0_LIBS = -L$${GSTREAMER_PATH}/lib -lgstvideo-1.0
|
|
|
|
win32-msvc:GSTREAMER_VIDEO_1_0_LIBS = /LIBPATH:$${GSTREAMER_PATH}/lib gstvideo-1.0.lib
|
|
|
|
|
|
|
|
GSTREAMER_GL_1_0_INCLUDEPATH = $${GSTREAMER_PATH}/include \
|
|
|
|
$${GSTREAMER_PATH}/lib/gstreamer-1.0/include
|
|
|
|
win32-g++:GSTREAMER_GL_1_0_LIBS = -L$${GSTREAMER_PATH}/lib -lgstgl-1.0
|
|
|
|
win32-msvc:GSTREAMER_GL_1_0_LIBS = /LIBPATH:$${GSTREAMER_PATH}/lib gstgl-1.0.lib
|
|
|
|
|
|
|
|
# Extra dependencies:
|
|
|
|
# glib-2.0, gobject-2.0 (required by gstreamer-1.0)
|
|
|
|
# gstreamer-base-1.0 (required by gstreamer-video-1.0)
|
|
|
|
|
|
|
|
GLIB_2_0_INCLUDEPATH = $${GSTREAMER_PATH}/include/glib-2.0 \
|
|
|
|
$${GSTREAMER_PATH}/lib/glib-2.0/include
|
|
|
|
win32-g++:GLIB_2_0_LIBS = -L$${GSTREAMER_PATH}/lib -lglib-2.0 -lintl
|
|
|
|
win32-msvc:GLIB_2_0_LIBS = /LIBPATH:$${GSTREAMER_PATH}/lib glib-2.0.lib intl.lib
|
|
|
|
|
|
|
|
GOBJECT_2_0_INCLUDEPATH = $${GSTREAMER_PATH}/include
|
|
|
|
win32-g++:GOBJECT_2_0_LIBS = -L$${GSTREAMER_PATH}/lib -lgobject-2.0
|
|
|
|
win32-msvc:GOBJECT_2_0_LIBS = /LIBPATH:$${GSTREAMER_PATH}/lib gobject-2.0.lib
|
|
|
|
|
|
|
|
GSTREAMER_BASE_1_0_INCLUDEPATH = $${GSTREAMER_PATH}/include/gstreamer-1.0
|
|
|
|
win32-g++:GSTREAMER_BASE_1_0_LIBS = -L$${GSTREAMER_PATH}/lib -lgstbase-1.0
|
|
|
|
win32-msvc:GSTREAMER_BASE_1_0_LIBS = /LIBPATH:$${GSTREAMER_PATH}/lib gstbase-1.0.lib
|
|
|
|
|
|
|
|
INCLUDEPATH += $${GSTREAMER_1_0_INCLUDEPATH} \
|
|
|
|
$${GSTREAMER_VIDEO_1_0_INCLUDEPATH} \
|
|
|
|
$${GSTREAMER_GL_1_0_INCLUDEPATH} \
|
|
|
|
$${GLIB_2_0_INCLUDEPATH} \
|
|
|
|
$${GOBJECT_2_0_INCLUDEPATH} \
|
|
|
|
$${GSTREAMER_BASE_1_0_INCLUDEPATH}
|
|
|
|
|
|
|
|
LIBS += $${GSTREAMER_1_0_LIBS} \
|
|
|
|
$${GSTREAMER_VIDEO_1_0_LIBS} \
|
|
|
|
$${GSTREAMER_GL_1_0_LIBS} \
|
|
|
|
$${GLIB_2_0_LIBS} \
|
|
|
|
$${GOBJECT_2_0_LIBS} \
|
|
|
|
$${GSTREAMER_BASE_1_0_LIBS}
|
|
|
|
} else {
|
|
|
|
QT_CONFIG -= no-pkg-config
|
|
|
|
CONFIG += link_pkgconfig debug
|
|
|
|
PKGCONFIG = \
|
|
|
|
gstreamer-1.0 \
|
|
|
|
gstreamer-video-1.0 \
|
|
|
|
gstreamer-gl-1.0
|
|
|
|
}
|
2016-06-16 05:13:02 +00:00
|
|
|
|
2019-01-19 14:07:44 +00:00
|
|
|
android {
|
|
|
|
CONFIG += static
|
|
|
|
} else {
|
|
|
|
CONFIG += plugin
|
|
|
|
}
|
|
|
|
|
|
|
|
android:DEFINES += HAVE_QT_ANDROID
|
|
|
|
win32:DEFINES += HAVE_QT_WIN32
|
2019-01-19 14:37:45 +00:00
|
|
|
macx:DEFINES += HAVE_QT_MAC
|
2016-06-16 05:13:02 +00:00
|
|
|
|
2020-02-05 08:56:23 +00:00
|
|
|
versionAtLeast(QT_VERSION, "5.5") {
|
|
|
|
win32-msvc: LIBS += opengl32.lib
|
|
|
|
win32-g++: LIBS += -lopengl32
|
|
|
|
}
|
2019-04-18 15:14:18 +00:00
|
|
|
|
2016-06-16 05:13:02 +00:00
|
|
|
SOURCES += \
|
|
|
|
gstplugin.cc \
|
2021-02-12 16:09:19 +00:00
|
|
|
gstqtelement.cc \
|
2017-10-13 11:25:22 +00:00
|
|
|
gstqtglutility.cc \
|
2016-06-16 05:13:02 +00:00
|
|
|
gstqsgtexture.cc \
|
2020-05-13 09:31:38 +00:00
|
|
|
gstqtoverlay.cc \
|
2016-06-16 05:13:02 +00:00
|
|
|
gstqtsink.cc \
|
2017-10-13 11:25:22 +00:00
|
|
|
gstqtsrc.cc \
|
2020-05-13 09:31:38 +00:00
|
|
|
qtglrenderer.cc \
|
2017-10-13 11:25:22 +00:00
|
|
|
qtwindow.cc \
|
2016-06-16 05:13:02 +00:00
|
|
|
qtitem.cc
|
|
|
|
|
|
|
|
HEADERS += \
|
2021-02-12 16:09:19 +00:00
|
|
|
gstqtelements.h \
|
2016-06-16 05:13:02 +00:00
|
|
|
gstqsgtexture.h \
|
|
|
|
gstqtgl.h \
|
2017-10-13 11:25:22 +00:00
|
|
|
gstqtglutility.h \
|
2020-05-13 09:31:38 +00:00
|
|
|
gstqtoverlay.h \
|
2016-06-16 05:13:02 +00:00
|
|
|
gstqtsink.h \
|
2017-10-13 11:25:22 +00:00
|
|
|
gstqtsrc.h \
|
2020-05-13 09:31:38 +00:00
|
|
|
qtglrenderer.h \
|
2017-10-13 11:25:22 +00:00
|
|
|
qtwindow.h \
|
2016-06-16 05:13:02 +00:00
|
|
|
qtitem.h
|