[PATCH] trace-cmd meson: Fix include file for swig python build

Steven Rostedt <[email protected]>
Newsgroups org.kernel.vger.linux-trace-devel
Message-ID <[email protected]>
From: "Steven Rostedt (Google)" <[email protected]>

The header trace-cmd-private-python.h was recently moved to
lib/trace-cmd/include/private. Change the meson.build file to reflect this
change.

Link: https://lore.kernel.org/all/Y+w51nOhNd+PGo%[email protected]/

Signed-off-by: Steven Rostedt (Google) <[email protected]>
---
 python/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/python/meson.build b/python/meson.build
index 5a91ff63a326..d00948947030 100644
--- a/python/meson.build
+++ b/python/meson.build
@@ -22,13 +22,14 @@ if have_python_support
             swig,
             '-python',
             '-I' + meson.current_source_dir() + '/../include/trace-cmd',
+            '-I' + meson.current_source_dir() + '/../lib/trace-cmd/include/private',
             '-I' + libtraceevent_dep.get_pkgconfig_variable('prefix') + '/include/traceevent',
             '-o', '@OUTPUT1@',
             '@INPUT0@'],
         install: true,
         install_dir: [ python3.get_install_dir(pure: false, subdir: 'trace-cmd'), false])
 
-    incdir_py = include_directories(['.', '../include/trace-cmd'])
+    incdir_py = include_directories(['.', '../include/trace-cmd', '../lib/trace-cmd/include/private'])
 
     pyctracecmd_clib = python3.extension_module(
         '_ctracecmd',
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.