mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
f3d98341e3
Made it impossible to build with qmake as per the readme. The file was renamed to gstqsgmaterial a while ago. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5357>
102 lines
3.3 KiB
Prolog
102 lines
3.3 KiB
Prolog
TEMPLATE = lib
|
|
|
|
TARGET = gstqmlgl
|
|
|
|
QT += qml quick gui
|
|
|
|
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
|
|
}
|
|
|
|
android {
|
|
CONFIG += static
|
|
} else {
|
|
CONFIG += plugin
|
|
}
|
|
|
|
android:DEFINES += HAVE_QT_ANDROID
|
|
win32:DEFINES += HAVE_QT_WIN32
|
|
macx:DEFINES += HAVE_QT_MAC
|
|
|
|
versionAtLeast(QT_VERSION, "5.5") {
|
|
win32-msvc: LIBS += opengl32.lib
|
|
win32-g++: LIBS += -lopengl32
|
|
}
|
|
|
|
SOURCES += \
|
|
gstplugin.cc \
|
|
gstqtelement.cc \
|
|
gstqtglutility.cc \
|
|
gstqsgmaterial.cc \
|
|
gstqtoverlay.cc \
|
|
gstqtsink.cc \
|
|
gstqtsrc.cc \
|
|
qtglrenderer.cc \
|
|
qtwindow.cc \
|
|
qtitem.cc
|
|
|
|
HEADERS += \
|
|
gstqtelements.h \
|
|
gstqsgmaterial.h \
|
|
gstqtgl.h \
|
|
gstqtglutility.h \
|
|
gstqtoverlay.h \
|
|
gstqtsink.h \
|
|
gstqtsrc.h \
|
|
qtglrenderer.h \
|
|
qtwindow.h \
|
|
qtitem.h
|