[libcamera-devel] [RFC PATCH 1/8] meson: Simplify pkg_mod.generate

Kieran Bingham kieran.bingham at ideasonboard.com
Mon Nov 23 17:43:12 CET 2020


Later versions of meson allow for the first positional argument to
specificy the defaults.  Specify the libcamera library as the first
argument, and remove the filebase.

Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index 55cf36e15f57..ced4afa7d726 100644
--- a/meson.build
+++ b/meson.build
@@ -146,10 +146,9 @@ run_command('ln', '-fsT', meson.source_root(),
 configure_file(output : 'config.h', configuration : config_h)
 
 pkg_mod = import('pkgconfig')
-pkg_mod.generate(libraries : libcamera,
+pkg_mod.generate(libcamera,
                  version : '1.0',
                  name : 'libcamera',
-                 filebase : 'camera',
                  description : 'Complex Camera Support Library',
                  subdirs : 'libcamera')
 
-- 
2.25.1



More information about the libcamera-devel mailing list