mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Tretter <m.tretter@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Michael Tretter <m.tretter@pengutronix.de>
Subject: [ptxdist] [PATCH] gstreamer1: optionally install gstcheck library
Date: Fri,  5 Apr 2019 11:00:55 +0200	[thread overview]
Message-ID: <20190405090055.442-1-m.tretter@pengutronix.de> (raw)

The GStreamer unit test library provides helpers for writing unit tests
for GStreamer elements. The library include GstCheck for building a test
suite and GstHarness for feeding test data to elements.

Notably, gst-check does not enable the internal GStreamer unit tests.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
 rules/gstreamer1.in   | 5 +++++
 rules/gstreamer1.make | 5 ++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/gstreamer1.in b/rules/gstreamer1.in
index 9fea4a903..0ce231133 100644
--- a/rules/gstreamer1.in
+++ b/rules/gstreamer1.in
@@ -29,6 +29,11 @@ if GSTREAMER1
 		default y
 		prompt "enable debug support"
 
+	config GSTREAMER1_CHECK
+		bool
+		default n
+		prompt "install gst-check library"
+
 	config GSTREAMER1_INSTALL_TOOLS
 		bool
 		default y
diff --git a/rules/gstreamer1.make b/rules/gstreamer1.make
index 82742482f..c11ece086 100644
--- a/rules/gstreamer1.make
+++ b/rules/gstreamer1.make
@@ -82,7 +82,7 @@ GSTREAMER1_CONF_OPT	:= \
 	--disable-poisoning \
 	--$(call ptx/endis, PTXCONF_GSTREAMER1_INTROSPECTION)-introspection \
 	\
-	--disable-check \
+	--$(call ptx/endis, PTXCONF_GSTREAMER1_CHECK)-check \
 	--with-ptp-helper-setuid-user=nobody \
 	--with-ptp-helper-setuid-group=nogroup \
 	--with-ptp-helper-permissions=setuid-root \
@@ -121,6 +121,9 @@ endif
 	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstcontroller-1.0)
 	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstnet-1.0)
 	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstreamer-1.0)
+ifdef PTXCONF_GSTREAMER1_CHECK
+	@$(call install_lib, gstreamer1, 0, 0, 0644, libgstcheck-1.0)
+endif
 
 	@$(call install_lib, gstreamer1, 0, 0, 0644, \
 		gstreamer-1.0/libgstcoreelements)
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-04-05  9:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190405090055.442-1-m.tretter@pengutronix.de \
    --to=m.tretter@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox