From f9b50bef00d9560b32c399e5d22c00117cfcfa38 Mon Sep 17 00:00:00 2001 From: gixxpunk Date: Thu, 19 Oct 2017 15:42:03 +0200 Subject: [PATCH] - gstreamer: introduce debug flag --- make/gstreamer.mk | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/make/gstreamer.mk b/make/gstreamer.mk index 33742577..6ceb3109 100644 --- a/make/gstreamer.mk +++ b/make/gstreamer.mk @@ -1,5 +1,15 @@ # makefile to build gstreamer and all it's dependencies +# change to activate debug +GSTREAMER_DEBUG = no + +GST_MAIN_CONFIG_DEBUG = --disable-gst-debug +GST_PLUGIN_CONFIG_DEBUG = --disable-debug +ifeq ($(GSTREAMER_DEBUG), yes) + GST_MAIN_CONFIG_DEBUG = --enable-gst-debug + GST_PLUGIN_CONFIG_DEBUG = --enable-debug +endif + # # gstreamer # @@ -19,14 +29,14 @@ $(D)/gstreamer: $(D)/libglib $(D)/libxml2 $(D)/glib_networking $(ARCHIVE)/$(GSTR --libexecdir=/lib \ --datarootdir=/.remove \ --enable-silent-rules \ - --disable-debug \ + $(GST_PLUGIN_CONFIG_DEBUG) \ --disable-tests \ --disable-valgrind \ --disable-gst-tracer-hooks \ --disable-dependency-tracking \ --disable-examples \ --disable-check \ - --disable-gst-debug \ + $(GST_MAIN_CONFIG_DEBUG) \ --disable-benchmarks \ --disable-gtk-doc-html \ ac_cv_header_valgrind_valgrind_h=no \ @@ -70,7 +80,7 @@ $(D)/gst_plugins_base: $(D)/zlib $(D)/libglib $(D)/orc $(D)/gstreamer $(D)/alsa_ --datarootdir=/.remove \ --enable-silent-rules \ --disable-valgrind \ - --disable-debug \ + $(GST_PLUGIN_CONFIG_DEBUG) \ --disable-examples \ --disable-gtk-doc-html \ ; \ @@ -134,7 +144,7 @@ $(D)/gst_plugins_good: $(D)/libpng $(D)/libjpeg $(D)/gstreamer $(D)/gst_plugins_ --datarootdir=/.remove \ --enable-silent-rules \ --disable-valgrind \ - --disable-debug \ + $(GST_PLUGIN_CONFIG_DEBUG) \ --disable-examples \ --disable-gtk-doc-html \ ; \ @@ -172,7 +182,7 @@ $(D)/gst_plugins_bad: $(D)/libass $(D)/libcurl $(D)/libxml2 $(D)/openssl $(D)/li --datarootdir=/.remove \ --enable-silent-rules \ --disable-valgrind \ - --disable-debug \ + $(GST_PLUGIN_CONFIG_DEBUG) \ --disable-examples \ --disable-gtk-doc-html \ ; \ @@ -223,7 +233,7 @@ $(D)/gst_plugins_ugly: $(D)/gstreamer $(D)/gst_plugins_base $(ARCHIVE)/$(GST_PLU --datarootdir=/.remove \ --enable-silent-rules \ --disable-valgrind \ - --disable-debug \ + $(GST_PLUGIN_CONFIG_DEBUG) \ --disable-examples \ --disable-gtk-doc-html \ ; \