meson: Set a SONAME version in the libcamera libraries
The libcamera and libcamera-base libraries are currently unversioned, but donwstream users expect these to have a proper SONAME version in order to package them. A stable release has not yet happened because the project is still under development and the API/ABI might change. But having a versioned SONAME would allow distributions to package libcamera, without the need to add any downstream patch to set the version. Since the "0.0.0" version is already used in different places, let's also use that as the library version. The meson build system will use the first part of the version ("0") as the SONAME version, which is aligned with the convention used by other projects: $ ls /lib64/libcamera*so* -1 /lib64/libcamera-base.so /lib64/libcamera-base.so.0 /lib64/libcamera-base.so.0.0.0 /lib64/libcamera.so /lib64/libcamera.so.0 /lib64/libcamera.so.0.0.0 $ objdump -p /lib64/libcamera.so.0.0.0 | grep SONAME SONAME libcamera.so.0 Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
7f035328fb
commit
e00149fccb
2 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,7 @@ libcamera_base_args = [ '-DLIBCAMERA_BASE_PRIVATE' ]
|
|||
|
||||
libcamera_base_lib = shared_library('libcamera-base',
|
||||
[libcamera_base_sources, libcamera_base_headers],
|
||||
version : libcamera_version,
|
||||
name_prefix : '',
|
||||
install : true,
|
||||
cpp_args : libcamera_base_args,
|
||||
|
|
|
@ -128,6 +128,7 @@ libcamera_deps = [
|
|||
|
||||
libcamera = shared_library('libcamera',
|
||||
libcamera_sources,
|
||||
version : libcamera_version,
|
||||
name_prefix : '',
|
||||
install : true,
|
||||
include_directories : includes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue