summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-07-05 00:10:26 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-07-05 09:46:43 +0100
commit0a6ec8333620833d5e8bef08b93176fce842821b (patch)
tree0aa1fa2d8c4c6ad44087b06acb9c37bc98a06826
parent411f9cadb4712a78ee18f28a4c889a312916ddba (diff)
gst: make compiler warn about unstable API if GST_USE_UNSTABLE_API is not defined
And define it in our own build.
-rw-r--r--configure.ac2
-rw-r--r--gst/Makefile.am1
-rw-r--r--gst/gst.h5
-rw-r--r--libs/gst/base/Makefile.am1
-rw-r--r--libs/gst/check/Makefile.am1
-rw-r--r--libs/gst/controller/Makefile.am1
-rw-r--r--libs/gst/dataprotocol/Makefile.am1
-rw-r--r--libs/gst/net/Makefile.am1
8 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 77614b5363..a729c857e7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -648,6 +648,8 @@ dnl every flag in GST_OPTION_CFLAGS can be overridden at make time via e.g.
dnl make DEPRECATED_CFLAGS=''
GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
+GST_OPTION_CFLAGS="$GST_OPTION_CFLAGS -DGST_USE_UNSTABLE_API"
+GST_OPTION_CXXFLAGS="$GST_OPTION_CXXFLAGS -DGST_USE_UNSTABLE_API"
AC_SUBST(GST_OPTION_CFLAGS)
AC_SUBST(GST_OPTION_CXXFLAGS)
diff --git a/gst/Makefile.am b/gst/Makefile.am
index cfff0a9f0e..dcb8c93e2a 100644
--- a/gst/Makefile.am
+++ b/gst/Makefile.am
@@ -274,6 +274,7 @@ Gst-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_MAJORMINOR@
-I$(top_srcdir) \
-I$(top_builddir) \
-DIN_GOBJECT_INTROSPECTION=1 \
+ -DGST_USE_UNSTABLE_API \
--c-include='gst/gst.h' \
--library=libgstreamer-0.11.la \
--include=GLib-2.0 \
diff --git a/gst/gst.h b/gst/gst.h
index ce86d2101a..da578d9273 100644
--- a/gst/gst.h
+++ b/gst/gst.h
@@ -24,6 +24,11 @@
#ifndef __GST_H__
#define __GST_H__
+#ifndef GST_USE_UNSTABLE_API
+#warning "The GStreamer 0.11 API is still unstable and will change in future."
+#warning "Define GST_USE_UNSTABLE_API to avoid this warning."
+#endif
+
#include <glib.h>
#include <gst/glib-compat.h>
diff --git a/libs/gst/base/Makefile.am b/libs/gst/base/Makefile.am
index 60c886d0ff..9a5f50ead5 100644
--- a/libs/gst/base/Makefile.am
+++ b/libs/gst/base/Makefile.am
@@ -74,6 +74,7 @@ GstBase-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstbase-@GST_MAJORMINO
$(INTROSPECTION_SCANNER) -v --namespace GstBase \
--nsversion=@GST_MAJORMINOR@ \
--strip-prefix=Gst \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
diff --git a/libs/gst/check/Makefile.am b/libs/gst/check/Makefile.am
index 96acc4ca37..7d3082ab39 100644
--- a/libs/gst/check/Makefile.am
+++ b/libs/gst/check/Makefile.am
@@ -121,6 +121,7 @@ GstCheck-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_MAJORMI
$(INTROSPECTION_SCANNER) -v --namespace GstCheck \
--nsversion=@GST_MAJORMINOR@ \
--strip-prefix=Gst \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
diff --git a/libs/gst/controller/Makefile.am b/libs/gst/controller/Makefile.am
index 61abdbc930..7a28ee74cf 100644
--- a/libs/gst/controller/Makefile.am
+++ b/libs/gst/controller/Makefile.am
@@ -57,6 +57,7 @@ GstController-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcontroller-@G
$(INTROSPECTION_SCANNER) -v --namespace GstController \
--nsversion=@GST_MAJORMINOR@ \
--strip-prefix=Gst \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \
diff --git a/libs/gst/dataprotocol/Makefile.am b/libs/gst/dataprotocol/Makefile.am
index c41d23a7d3..59bd3878be 100644
--- a/libs/gst/dataprotocol/Makefile.am
+++ b/libs/gst/dataprotocol/Makefile.am
@@ -47,6 +47,7 @@ GstDataprotocol-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstdataprotoco
$(INTROSPECTION_SCANNER) -v --namespace GstDataprotocol \
--strip-prefix=Gst \
--nsversion=@GST_MAJORMINOR@ \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_builddir) \
$(gir_cincludes) \
diff --git a/libs/gst/net/Makefile.am b/libs/gst/net/Makefile.am
index 9e77b69ddb..67afa65540 100644
--- a/libs/gst/net/Makefile.am
+++ b/libs/gst/net/Makefile.am
@@ -49,6 +49,7 @@ GstNet-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_MAJORMINOR@
$(INTROSPECTION_SCANNER) -v --namespace GstNet \
--strip-prefix=Gst \
--nsversion=@GST_MAJORMINOR@ \
+ -DGST_USE_UNSTABLE_API \
-I$(top_srcdir) \
-I$(top_srcdir)/libs \
-I$(top_builddir) \