diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-07-05 00:10:26 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2011-07-05 09:46:43 +0100 |
commit | 0a6ec8333620833d5e8bef08b93176fce842821b (patch) | |
tree | 0aa1fa2d8c4c6ad44087b06acb9c37bc98a06826 | |
parent | 411f9cadb4712a78ee18f28a4c889a312916ddba (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.ac | 2 | ||||
-rw-r--r-- | gst/Makefile.am | 1 | ||||
-rw-r--r-- | gst/gst.h | 5 | ||||
-rw-r--r-- | libs/gst/base/Makefile.am | 1 | ||||
-rw-r--r-- | libs/gst/check/Makefile.am | 1 | ||||
-rw-r--r-- | libs/gst/controller/Makefile.am | 1 | ||||
-rw-r--r-- | libs/gst/dataprotocol/Makefile.am | 1 | ||||
-rw-r--r-- | libs/gst/net/Makefile.am | 1 |
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 \ @@ -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) \ |