All of lore.kernel.org
 help / color / mirror / Atom feed
From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: linux-trace-devel@vger.kernel.org
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
Subject: [PATCH] libtracefs: add option to disable samples
Date: Mon,  8 Jan 2024 00:07:33 +0100	[thread overview]
Message-ID: <20240107230733.456099-1-giulio.benetti@benettiengineering.com> (raw)

On some Linux environment builder(i.e. Buildroot) we don't want to produce
sample to reduce size usage and dependencies count. So let's add samples
option set to true by default to let the user to override it and not
build samples.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 meson.build       | 2 ++
 meson_options.txt | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/meson.build b/meson.build
index 57ffe20..f7d3da6 100644
--- a/meson.build
+++ b/meson.build
@@ -38,7 +38,9 @@ subdir('include')
 if cunit_dep.found()
     subdir('utest')
 endif
+if get_option('samples')
 subdir('samples')
+endif
 
 if get_option('doc')
 subdir('Documentation')
diff --git a/meson_options.txt b/meson_options.txt
index 5533a88..8450992 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -16,3 +16,5 @@ option('docbook-suppress-sp', type : 'boolean', value : false,
        description : 'docbook suppress sp')
 option('doc', type : 'boolean', value: true,
        description : 'produce documentation')
+option('samples', type : 'boolean', value: true,
+       description : 'build samples')
-- 
2.34.1


                 reply	other threads:[~2024-01-07 23:10 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=20240107230733.456099-1-giulio.benetti@benettiengineering.com \
    --to=giulio.benetti@benettiengineering.com \
    --cc=linux-trace-devel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.