From: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
To: linux-trace-devel@vger.kernel.org
Cc: "Yordan Karadzhov (VMware)" <y.karadz@gmail.com>
Subject: [PATCH v2] kernel-shark: Add 'Requires' to libkshark.pc
Date: Thu, 11 Nov 2021 16:27:21 +0200 [thread overview]
Message-ID: <20211111142721.93092-1-y.karadz@gmail.com> (raw)
Adding only the requirements for building 'libkshark'. The requirements
for building the GUI are not supposed to be listed here.
Signed-off-by: Yordan Karadzhov (VMware) <y.karadz@gmail.com>
---
CMakeLists.txt | 2 ++
build/libkshark.pc.cmake | 1 +
2 files changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bb7b2a1..3723654 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,8 @@ if (NOT _POLKIT_INSTALL_PREFIX)
endif ()
+set(LIBTRACECMD_MIN_VERSION 1.0)
+
set(CMAKE_MODULE_PATH "${KS_DIR}/build")
find_package(TraceEvent REQUIRED)
find_package(TraceFS REQUIRED)
diff --git a/build/libkshark.pc.cmake b/build/libkshark.pc.cmake
index ad4ce34..0764d0d 100644
--- a/build/libkshark.pc.cmake
+++ b/build/libkshark.pc.cmake
@@ -6,5 +6,6 @@ Name: libkshark
URL: https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/
Description: Library for accessing ftrace file system
Version: @KS_VERSION_STRING@
+Requires: json-c, libtracecmd >= @LIBTRACECMD_MIN_VERSION@
Cflags: -I${includedir}
Libs: -L${libdir} -lkshark
--
2.32.0
reply other threads:[~2021-11-11 14:27 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=20211111142721.93092-1-y.karadz@gmail.com \
--to=y.karadz@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).