mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
gst: make compiler warn about unstable API if GST_USE_UNSTABLE_API is not defined
And define it in our own build.
This commit is contained in:
parent
411f9cadb4
commit
0a6ec83336
8 changed files with 13 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue