allocators: Add single-include header
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 19 Feb 2013 08:39:24 +0000 (09:39 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 19 Feb 2013 09:05:38 +0000 (10:05 +0100)
gst-libs/gst/allocators/Makefile.am
gst-libs/gst/allocators/allocators.h [new file with mode: 0644]

index 6cc127c..c550ab0 100644 (file)
@@ -3,6 +3,7 @@ lib_LTLIBRARIES = libgstallocators-@GST_API_VERSION@.la
 libgstallocators_@GST_API_VERSION@_includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/allocators
 
 libgstallocators_@GST_API_VERSION@_include_HEADERS = \
+       allocators.h \
        gstdmabuf.h
 
 noinst_HEADERS =
@@ -11,7 +12,7 @@ libgstallocators_@GST_API_VERSION@_la_SOURCES = \
        gstdmabuf.c 
 
 libgstallocators_@GST_API_VERSION@_la_LIBADD = $(GST_LIBS) $(LIBM)
-libgstallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_CFLAGS)
+libgstallocators_@GST_API_VERSION@_la_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS)
 libgstallocators_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
 
 if HAVE_INTROSPECTION
@@ -28,7 +29,9 @@ GstAllocators-@GST_API_VERSION@.gir: $(INTROSPECTION_SCANNER) libgstallocators-@
                --nsversion=@GST_API_VERSION@ \
                --strip-prefix=Gst \
                --warn-all \
-               $(gir_cincludes) \
+               --c-include "gst/allocators/allocators.h" \
+               -I$(top_srcdir)/gst-libs \
+               -I$(top_builddir)/gst-libs \
                --add-include-path=`PKG_CONFIG_PATH="$(GST_PKG_CONFIG_PATH)" $(PKG_CONFIG) --variable=girdir gstreamer-@GST_API_VERSION@` \
                --library=libgstallocators-@GST_API_VERSION@.la \
                --include=Gst-@GST_API_VERSION@ \
diff --git a/gst-libs/gst/allocators/allocators.h b/gst-libs/gst/allocators/allocators.h
new file mode 100644 (file)
index 0000000..c12beff
--- /dev/null
@@ -0,0 +1,28 @@
+/* GStreamer
+ * Copyright (C) 2012 GStreamer developers
+ *
+ * allocators.h: single include header for gst-allocators library
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ */
+
+#ifndef __GST_ALLOCATORS_H__
+#define __GST_ALLOCATORS_H__
+
+#include <gst/allocators/gstdmabuf.h>
+
+#endif /* __GST_ALLOCATORS_H__ */
+