From caeab4e6efd7d1eabc4ba37debca29e9ae521aa3 Mon Sep 17 00:00:00 2001 From: Konsta Date: Sat, 25 Mar 2023 15:06:34 +0200 Subject: [PATCH] android: Don't set soversion Change-Id: Ic8056f5bf13d9706fb1671dbfbebeb03c45515c8 --- src/libcamera/base/meson.build | 4 ++++ src/libcamera/meson.build | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/libcamera/base/meson.build b/src/libcamera/base/meson.build index b57774f4..e13a2f43 100644 --- a/src/libcamera/base/meson.build +++ b/src/libcamera/base/meson.build @@ -48,6 +48,10 @@ libcamera_base_deps = [ libunwind, ] +if host_machine.system() == 'android' + libcamera_soversion = '' +endif + # Internal components must use the libcamera_base_private dependency to enable # the use of headers which must not be exposed to the libcamera public api. libcamera_base_args = [ '-DLIBCAMERA_BASE_PRIVATE' ] diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 6aedacbd..49c1bede 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -194,6 +194,10 @@ libcamera_shader_headers = custom_target( libcamera_internal_headers += libcamera_shader_headers +if host_machine.system() == 'android' + libcamera_soversion = '' +endif + # We add '/' to the build_rpath as a 'safe' path to act as a boolean flag. # The build_rpath is stripped at install time by meson, so we determine at # runtime if the library is running from an installed location by checking