[libcamera-devel] [PATCH] meson: Add target to generate tags with ctags
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sat Oct 26 18:39:50 CEST 2019
This should be useful for ctags users. The tags file will be placed at
the root of the source tree, and is added to .gitignore.
Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
.gitignore | 1 +
meson.build | 11 +++++++++++
2 files changed, 12 insertions(+)
diff --git a/.gitignore b/.gitignore
index e00516aaa716..0eefb058a8ef 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
build/
patches/
*.patch
+tags
diff --git a/meson.build b/meson.build
index 72ad7c8b493b..e1997ed414f2 100644
--- a/meson.build
+++ b/meson.build
@@ -85,3 +85,14 @@ pkg_mod.generate(libraries : libcamera,
name : 'libcamera',
filebase : 'camera',
description : 'Complex Camera Support Library')
+
+run_target('ctags',
+ command : [
+ 'ctags',
+ '-o', '@0@/tags'.format(meson.current_source_dir()),
+ ] + [
+ libcamera_api,
+ libcamera_ipa_api,
+ libcamera_headers,
+ libcamera_sources,
+ ])
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list