From 94491ae53567a98c73744412c7bbedd2fdf1d315 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 10 Aug 2011 17:10:01 +0200 Subject: [PATCH] Install pygst.h so it can be reused by other bindings Also add a PYGST_CFLAGS https://bugzilla.gnome.org/show_bug.cgi?id=656289 --- configure.ac | 2 ++ gst/Makefile.am | 4 ++-- pkgconfig/gst-python.pc.in | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 591ff18b9e..5f46695b4b 100644 --- a/configure.ac +++ b/configure.ac @@ -398,6 +398,8 @@ dnl full installation path AS_AC_EXPAND(PYTHONDIR, $pythondir) AS_AC_EXPAND(PYEXECDIR, $pyexecdir) +PYGST_CFLAGS="-I\$(top_srcdir)/gst -I\$(top_builddir)/gst" +AC_SUBST(PYGST_CFLAGS) dnl add debugging options ... # changequote(,)dnl # if test "x$GCC" = xyes; then diff --git a/gst/Makefile.am b/gst/Makefile.am index 595fd9f0a8..5b73188299 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -22,8 +22,8 @@ defs_DATA = gst-types.defs \ pbutils.defs defsdir = $(pkgdatadir)/$(GST_MAJORMINOR)/defs -noinst_HEADERS = common.h pygstvalue.h pygstminiobject.h pygstexception.h \ - pygst.h pygst-private.h +pygst_installdir = $(includedir)/gstreamer-@GST_MAJORMINOR@/pygst/ +pygst_install_HEADERS = pygst.h common.h pygstvalue.h pygstminiobject.h pygstexception.h versioned_overrides = \ gst-0.10.21.ignore \ diff --git a/pkgconfig/gst-python.pc.in b/pkgconfig/gst-python.pc.in index 4e16c7bf9f..e3c46da290 100644 --- a/pkgconfig/gst-python.pc.in +++ b/pkgconfig/gst-python.pc.in @@ -4,7 +4,9 @@ datadir=@datadir@ pyexecdir=@pyexecdir@ # same here. Useful when calling the code generator in addon packages. +pygstincludedir=@includedir@/gstreamer-@GST_MAJORMINOR@ defsdir=${datadir}/gst-python/@GST_MAJORMINOR@/defs +codegendir=${datadir}/pygst/0.10/codegen Name: gst-python Description: Python bindings for GStreamer