libcamera: Move libcamera.so pkg-config file generation
The pkg-config file for the main libcamera.so is generated at the top level meson.build. Move this to the actual core libcamera build structure to be consistent and keep it next to the library construction. Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
@@ -164,14 +164,6 @@ run_command('ln', '-fsT', meson.source_root(), meson.build_root() / 'source')
|
||||
|
||||
configure_file(output : 'config.h', configuration : config_h)
|
||||
|
||||
pkg_mod = import('pkgconfig')
|
||||
pkg_mod.generate(libraries : libcamera,
|
||||
version : '1.0',
|
||||
name : 'libcamera',
|
||||
filebase : 'camera',
|
||||
description : 'Complex Camera Support Library',
|
||||
subdirs : 'libcamera')
|
||||
|
||||
# Check for python installation and modules.
|
||||
py_mod = import('python')
|
||||
py_mod.find_installation('python3', modules: py_modules)
|
||||
|
||||
@@ -156,4 +156,12 @@ libcamera_dep = declare_dependency(sources : [
|
||||
include_directories : libcamera_includes,
|
||||
link_with : libcamera)
|
||||
|
||||
pkg_mod = import('pkgconfig')
|
||||
pkg_mod.generate(libraries: libcamera,
|
||||
version : '1.0',
|
||||
name : 'libcamera',
|
||||
filebase : 'camera',
|
||||
description : 'Complex Camera Support Library',
|
||||
subdirs : 'libcamera')
|
||||
|
||||
subdir('proxy/worker')
|
||||
|
||||
Reference in New Issue
Block a user