Skip to content

Commit 07f871b

Browse files
authored
Unified version and soversion between all supported build systems. (#565)
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
1 parent 23f2563 commit 07f871b

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dnl OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
dnl SUCH DAMAGE.
2929
dnl
3030

31-
AC_INIT([libusrsctp], [0.9.4.0])
31+
AC_INIT([libusrsctp], [0.9.5.0])
3232
AM_INIT_AUTOMAKE([foreign])
3333

3434
AC_PROG_CC

meson.build

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
# Project definition
22
project('usrsctplib', 'c',
3-
version: '1.0.0',
3+
version: '0.9.5.0',
44
default_options: ['c_std=c99'],
55
meson_version: '>=0.49.0')
66

7+
# Shared library API and ABI versions
8+
# Notice: shared library version must be in X.Y.Z format only
9+
soversion_full = '2.0.0'
10+
soversion_short = '2'
11+
712
# Set compiler warning flags
813
compiler = meson.get_compiler('c')
914
if compiler.get_argument_syntax() == 'msvc'
@@ -186,7 +191,8 @@ else
186191
dependencies: dependencies,
187192
include_directories: include_dirs,
188193
install: true,
189-
version: meson.project_version())
194+
version: soversion_full,
195+
soversion: soversion_short)
190196
endif
191197

192198
# Declare dependency

usrsctplib/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@
3434
# INCLUDE MODULES AND SETTINGS
3535
#################################################
3636

37-
set(VERSION "1.0.0")
37+
set(VERSION "0.9.5.0")
38+
39+
# Shared library API and ABI versions
40+
# Notice: shared library version must be in X.Y.Z format only
41+
set(SOVERSION_FULL "2.0.0")
42+
set(SOVERSION_SHORT "2")
3843

3944
include(GNUInstallDirs)
4045
set(prefix ${CMAKE_INSTALL_PREFIX})
@@ -177,7 +182,7 @@ if (WIN32)
177182
endif ()
178183

179184
set_target_properties(usrsctp PROPERTIES IMPORT_SUFFIX "_import.lib")
180-
set_target_properties(usrsctp PROPERTIES SOVERSION 1 VERSION 1.0.0)
185+
set_target_properties(usrsctp PROPERTIES SOVERSION ${SOVERSION_SHORT} VERSION ${SOVERSION_FULL})
181186

182187
#################################################
183188
# INSTALL LIBRARY AND HEADER

usrsctplib/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ libusrsctp_la_SOURCES = user_atomic.h \
7676
netinet6/sctp6_var.h \
7777
netinet6/sctp6_usrreq.c
7878
libusrsctp_la_CFLAGS = $(LIBCFLAGS)
79-
libusrsctp_la_LDFLAGS = -version-info 1:0:0
79+
libusrsctp_la_LDFLAGS = -version-info 2:0:0
8080
include_HEADERS = usrsctp.h
8181

0 commit comments

Comments
 (0)