From 9ba0c3fef81dd952dcc3913f82a98b961a81d643 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 6 Dec 2023 02:22:54 +0200 Subject: meson: Tag all installed files Meson uses tags to sort installed files in categories, and makes it possible to install a subset of the files using the '--tags' argument to 'meson install'. This is typically used by distributions to split the runtime, development and documentation files into separate packages. By default, meson tries to guess the correct tag for installed files, but can't always do so properly. Mark the install targets that meson can't guess with the correct install_tag. As the feature has been introduced in meson 0.60, bump the minimum meson version. The latest LTS release of all major distributions that libcamera currently targets ship a recent enough meson version. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/apps/cam/meson.build | 3 ++- src/apps/lc-compliance/meson.build | 3 ++- src/apps/qcam/meson.build | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/apps') diff --git a/src/apps/cam/meson.build b/src/apps/cam/meson.build index 48c834ac..c70ca3cd 100644 --- a/src/apps/cam/meson.build +++ b/src/apps/cam/meson.build @@ -58,4 +58,5 @@ cam = executable('cam', cam_sources, libyaml, ], cpp_args : cam_cpp_args, - install : true) + install : true, + install_tag : 'bin') diff --git a/src/apps/lc-compliance/meson.build b/src/apps/lc-compliance/meson.build index 51d9075a..dd7b73ab 100644 --- a/src/apps/lc-compliance/meson.build +++ b/src/apps/lc-compliance/meson.build @@ -26,4 +26,5 @@ lc_compliance = executable('lc-compliance', lc_compliance_sources, libevent, libgtest, ], - install : true) + install : true, + install_tag : 'bin-devel') diff --git a/src/apps/qcam/meson.build b/src/apps/qcam/meson.build index 2e77146c..6cf4c171 100644 --- a/src/apps/qcam/meson.build +++ b/src/apps/qcam/meson.build @@ -63,6 +63,7 @@ resources = qt5.preprocess(moc_headers : qcam_moc_headers, qcam = executable('qcam', qcam_sources, resources, install : true, + install_tag : 'bin', link_with : apps_lib, dependencies : [ libatomic, -- cgit v1.2.1