[vlc-commits] [Git][videolan/vlc][master] 2 commits: meson: set the soversion of libvlc
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Sep 21 17:55:34 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
e4502e03 by Wassim Lalaoui at 2026-09-21T17:19:42+00:00
meson: set the soversion of libvlc
to be on par with autotools and prevent any incompatible linking
- - - - -
69b5246a by Wassim Lalaoui at 2026-09-21T17:19:42+00:00
meson: do not set soversion of libvlccore on Windows and OS/2
- - - - -
3 changed files:
- lib/meson.build
- meson.build
- src/meson.build
Changes:
=====================================
lib/meson.build
=====================================
@@ -42,6 +42,10 @@ if host_system == 'windows'
)
endif
+libvlc_kwargs = {}
+if vlc_lib_versioning
+ libvlc_kwargs += {'version': libvlc_abi_version}
+endif
libvlc = library('vlc',
libvlc_sources, rev_target,
@@ -51,6 +55,7 @@ libvlc = library('vlc',
dependencies: [libvlccore_dep, m_lib, threads_dep],
install: true,
install_dir: libdir_path,
+ kwargs: libvlc_kwargs,
)
# Publicly exported dependency object. Used when libvlc is wrapped in a meson
=====================================
meson.build
=====================================
@@ -335,6 +335,8 @@ else
have_osx = false
endif
+vlc_lib_versioning = host_system not in ['windows', 'os/2'] and not have_ios and not have_tvos
+
#
# Windows and MinGW checks
#
=====================================
src/meson.build
=====================================
@@ -498,18 +498,22 @@ if host_system == 'windows'
)
endif
+libvlccore_kwargs = {}
+if vlc_lib_versioning
+ libvlccore_kwargs += {'version': '9.0.0'}
+endif
libvlccore = library(
'vlccore',
libvlccore_sources, vlc_about, fourcc, rev_target,
include_directories: vlc_include_dirs,
- version: '9.0.0',
c_args: vlccore_cargs,
link_args: libvlccore_link_args,
link_with: [vlc_libcompat],
dependencies: libvlccore_deps,
install: true,
install_dir: libdir_path,
+ kwargs: libvlccore_kwargs,
)
libvlccore_dep = declare_dependency(link_with: libvlccore, sources: vlc_about)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6eec05fd8e7e742dcaa75638031e7c93102a33d3...69b5246ae9d711affff002649ed009c4d4f3e31e
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/6eec05fd8e7e742dcaa75638031e7c93102a33d3...69b5246ae9d711affff002649ed009c4d4f3e31e
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list