浏览代码

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>
Peter Korsgaard 14 年之前
父节点
当前提交
11285bd2c7
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 9 0
      package/multimedia/gstreamer/Config.in
  2. 3 1
      package/multimedia/gstreamer/gstreamer.mk

+ 9 - 0
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

+ 3 - 1
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