summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2011-09-27 09:52:50 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2011-09-27 09:54:20 (GMT)
commit11285bd2c7be86cf8c2e6145bce59cad5286a51e (patch)
tree55e00887af30c3fadb247bf693f87390da352d43
parenta404b4443b69e21d0594dc531317fd62ea3865da (diff)
downloadbuildroot-11285bd2c7be86cf8c2e6145bce59cad5286a51e.tar.gz
buildroot-11285bd2c7be86cf8c2e6145bce59cad5286a51e.tar.bz2
gstreamer: add option to disable gst_debug tracing functionality
Shrinks gst library sizes with ~1MB (depending on the amount of plugins enabled). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/multimedia/gstreamer/Config.in9
-rw-r--r--package/multimedia/gstreamer/gstreamer.mk4
2 files changed, 12 insertions, 1 deletions
diff --git a/package/multimedia/gstreamer/Config.in b/package/multimedia/gstreamer/Config.in
index 7de904c..4d279b8 100644
--- a/package/multimedia/gstreamer/Config.in
+++ b/package/multimedia/gstreamer/Config.in
@@ -7,5 +7,14 @@ config BR2_PACKAGE_GSTREAMER
http://gstreamer.freedesktop.org/
+config BR2_PACKAGE_GSTREAMER_GST_DEBUG
+ bool "enable gst-debug trace support"
+ default y
+ depends on BR2_PACKAGE_GSTREAMER
+ help
+ Enable support for the gst-debug tracing functionality
+ in gstreamer. This has limited CPU overhead, but does
+ increase the rootfs size somewhat.
+
comment "gstreamer requires a toolchain with WCHAR support"
depends on !BR2_USE_WCHAR
diff --git a/package/multimedia/gstreamer/gstreamer.mk b/package/multimedia/gstreamer/gstreamer.mk
index db5ccaf..ffc8745 100644
--- a/package/multimedia/gstreamer/gstreamer.mk
+++ b/package/multimedia/gstreamer/gstreamer.mk
@@ -1,3 +1,4 @@
+
#############################################################
#
# gstreamer
@@ -19,7 +20,8 @@ GSTREAMER_CONF_OPT = \
--disable-examples \
--disable-tests \
--disable-failing-tests \
- --disable-loadsave
+ --disable-loadsave \
+ $(if $(BR2_PACKAGE_GSTREAMER_GST_DEBUG),,--disable-gst-debug)
GSTREAMER_DEPENDENCIES = libglib2 host-pkg-config