qt-gstreamer: initial add 1.2.0
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From e2ca8094aa8d0eac1c3a98df66fe94ce0c754088 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Jos=C3=A9=20Manuel=20Santamar=C3=ADa?= <panfaust@gmail.com>
|
||||
Date: Fri, 2 Oct 2015 15:00:29 +0300
|
||||
Subject: [PATCH 6/6] Fix compilation with GStreamer >= 1.5.1
|
||||
|
||||
apply gstreamer pkg-config definitions To ensure gstreamer builds correctly,
|
||||
pick up its cflags in FindGstreamer and apply them to the build as definitions
|
||||
|
||||
https://lists.ubuntu.com/archives/kubuntu-devel/2015-August/009819.html
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=751382
|
||||
---
|
||||
CMakeLists.txt | 1 +
|
||||
cmake/modules/FindGStreamer.cmake | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 4d3e7dd..5744015 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -106,6 +106,7 @@ find_package(GObject)
|
||||
macro_log_feature(GOBJECT_FOUND "GObject" "Required to build QtGLib" "http://www.gtk.org/" TRUE)
|
||||
|
||||
set(CMAKE_REQUIRED_INCLUDES ${QTGSTREAMER_INCLUDES})
|
||||
+add_definitions(${GSTREAMER_DEFINITIONS})
|
||||
include(CheckCXXSourceCompiles)
|
||||
check_cxx_source_compiles("
|
||||
#include <QtCore/QtGlobal>
|
||||
diff --git a/cmake/modules/FindGStreamer.cmake b/cmake/modules/FindGStreamer.cmake
|
||||
index dab91ac..fe6cde1 100644
|
||||
--- a/cmake/modules/FindGStreamer.cmake
|
||||
+++ b/cmake/modules/FindGStreamer.cmake
|
||||
@@ -36,6 +36,7 @@ if (PKG_CONFIG_FOUND)
|
||||
exec_program(${PKG_CONFIG_EXECUTABLE}
|
||||
ARGS --variable pluginsdir gstreamer-${GSTREAMER_ABI_VERSION}
|
||||
OUTPUT_VARIABLE PKG_GSTREAMER_PLUGIN_DIR)
|
||||
+ set(GSTREAMER_DEFINITIONS ${PKG_GSTREAMER_CFLAGS})
|
||||
endif()
|
||||
|
||||
find_library(GSTREAMER_LIBRARY
|
||||
--
|
||||
2.5.0
|
||||
|
||||
|
||||
37
recipes-support/qt-gstreamer/qt-gstreamer_1.2.0.bb
Normal file
37
recipes-support/qt-gstreamer/qt-gstreamer_1.2.0.bb
Normal file
@@ -0,0 +1,37 @@
|
||||
SUMMARY = "QtGStreamer is a set of libraries providing C++ bindings for GStreamer"
|
||||
|
||||
LICENSE = "LGPLv2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
||||
|
||||
inherit cmake_qt5 cmake-lib
|
||||
|
||||
DEPENDS += " \
|
||||
qtbase \
|
||||
qtdeclarative \
|
||||
glib-2.0 \
|
||||
gstreamer1.0 \
|
||||
gstreamer1.0-plugins-base \
|
||||
"
|
||||
|
||||
SRC_URI = " \
|
||||
http://gstreamer.freedesktop.org/src/${BPN}/${BPN}-${PV}.tar.xz \
|
||||
file://0001-Fix-compilation-with-GStreamer-1-5-1.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "fd794045a828c184acc1794b08a463fd"
|
||||
SRC_URI[sha256sum] = "9f3b492b74cad9be918e4c4db96df48dab9c012f2ae5667f438b64a4d92e8fd4"
|
||||
|
||||
EXTRA_OECMAKE += " \
|
||||
-DQT_VERSION=5 \
|
||||
-DUSE_QT_PLUGIN_DIR=OFF \
|
||||
"
|
||||
|
||||
FILES_${PN} += " \
|
||||
${libdir}/gstreamer-1.0 \
|
||||
${OE_QMAKE_PATH_QML} \
|
||||
"
|
||||
|
||||
FILES_${PN}-dev += " \
|
||||
${libdir}/cmake \
|
||||
"
|
||||
|
||||
CMAKE_ALIGN_SYSROOT[1] = "Qt5GStreamer, -S${libdir}/lib, -S${STAGING_LIBDIR}/lib"
|
||||
Reference in New Issue
Block a user