libcamera: Rename libcamera pkg-config generation
The libcamera library is moved to the first positional argument of the pkg-config generator to automatically populate the name and filebase values for the package. As part of this, the shared library name is adjusted to the full library name 'libcamera', without relying upon the automatic 'lib' prefix which better represents the component and naming of the library. As a result of this, the pkgconfig file is now named 'libcamera.pc' as opposed to 'camera.pc', and applications desiring to reference libcamera will need to search for 'libcamera' as a dependency rather than 'camera'. The library itself is still created and installed as 'libcamera.so'. An example meson.build file would need to be adjusted as the following: - dependency('camera', required : true), + dependency('libcamera', required : true), 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:
parent
bdca9ab14e
commit
ec7afef665
1 changed files with 3 additions and 4 deletions
|
@ -135,8 +135,9 @@ libcamera_deps = [
|
|||
# runtime if the library is running from an installed location by checking
|
||||
# for the presence or abscence of the dynamic tag.
|
||||
|
||||
libcamera = shared_library('camera',
|
||||
libcamera = shared_library('libcamera',
|
||||
libcamera_sources,
|
||||
name_prefix : '',
|
||||
install : true,
|
||||
include_directories : includes,
|
||||
build_rpath : '/',
|
||||
|
@ -157,10 +158,8 @@ libcamera_dep = declare_dependency(sources : [
|
|||
link_with : libcamera)
|
||||
|
||||
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')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue