From patchwork Sat Oct 26 16:39:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 2227 X-Patchwork-Delegate: laurent.pinchart@ideasonboard.com Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 4AF9E61376 for ; Sat, 26 Oct 2019 18:40:05 +0200 (CEST) Received: from pendragon.ideasonboard.com (143.121.2.93.rev.sfr.net [93.2.121.143]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C6D38325 for ; Sat, 26 Oct 2019 18:40:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1572108004; bh=r4zjNMGpjPN26Wn+AzsjOjZDNONwIyBMKzkstjUsLmM=; h=From:To:Subject:Date:From; b=MLYR7K550BaQdlBReOmQtMjYxUx2wAz7Q/UmG6kXMtxPx2Nx8KinlhttGtF+4Yr+s KcqVMjX5/hIRSULscFZfWAJNprrhk9leesQa2rqJxNm6LXnX54U/vpYMXtRj4OZCT5 Po/hIvmKypkT/tvhfYS0P61LkEZYxYFf8yt12mN4= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Sat, 26 Oct 2019 19:39:50 +0300 Message-Id: <20191026163950.8910-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] meson: Add target to generate tags with ctags X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2019 16:40:05 -0000 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 Reviewed-by: Niklas Söderlund --- .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, + ])