Install pygst.h so it can be reused by other bindings
authorThibault Saunier <thibault.saunier@collabora.com>
Wed, 10 Aug 2011 15:10:01 +0000 (17:10 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 10 Aug 2011 16:10:01 +0000 (18:10 +0200)
Also add a PYGST_CFLAGS

https://bugzilla.gnome.org/show_bug.cgi?id=656289

configure.ac
gst/Makefile.am
pkgconfig/gst-python.pc.in

index 591ff18..5f46695 100644 (file)
@@ -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
index 595fd9f..5b73188 100644 (file)
@@ -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      \
index 4e16c7b..e3c46da 100644 (file)
@@ -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