diff mbox series

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

Message ID 20240724143819.073877b3@gandalf.local.home (mailing list archive)
State Accepted
Commit c14f6cd2ec653637a60d941c1e88ff3c49646504
Headers show
Series trace-cmd meson: Fix include file for swig python build | expand

Commit Message

Steven Rostedt July 24, 2024, 6:38 p.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

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%2Fk@slm.duckdns.org/

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 python/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Daniel Wagner July 30, 2024, 4:36 p.m. UTC | #1
On Wed, Jul 24, 2024 at 02:38:19PM GMT, Steven Rostedt wrote:
> From: "Steven Rostedt (Google)" <rostedt@goodmis.org>
> 
> 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%2Fk@slm.duckdns.org/
> 
> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>

looks good to me.

Reviewed-by: Daniel Wagner <dwagner@suse.de>
diff mbox series

Patch

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',