diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-26 21:00:18 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-26 22:16:05 +0200 |
commit | 07d7e87411ca411682344c945c006fd61fa7ab98 (patch) | |
tree | 6036289fe41f8960ed31ffa8ddbc2b3483cb6b0d /test cases | |
parent | d651727208f36acd470e68721020fa996bb3737f (diff) | |
download | meson-07d7e87411ca411682344c945c006fd61fa7ab98.zip meson-07d7e87411ca411682344c945c006fd61fa7ab98.tar.gz meson-07d7e87411ca411682344c945c006fd61fa7ab98.tar.bz2 |
Allow soname to be an arbitrary string and fix symlink generation.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/unit/1 soname/CMakeLists.txt | 8 | ||||
-rw-r--r-- | test cases/unit/1 soname/meson.build | 18 |
2 files changed, 26 insertions, 0 deletions
diff --git a/test cases/unit/1 soname/CMakeLists.txt b/test cases/unit/1 soname/CMakeLists.txt index 1b5ee71..c4f2e3e 100644 --- a/test cases/unit/1 soname/CMakeLists.txt +++ b/test cases/unit/1 soname/CMakeLists.txt @@ -1,3 +1,11 @@ +# This is a CMake version of this test. It behaves slightly differently +# so in case you ever need to debug this, here it is. +# +# The biggest difference is that if SOVERSION is not set, it +# is set to VERSION. Autotools sets it to the first number +# of VERSION. That is, for version number 1.2.3 CMake sets +# soname to 1.2.3 but Autotools sets it to 1. + project(vertest C) cmake_minimum_required(VERSION 3.5) diff --git a/test cases/unit/1 soname/meson.build b/test cases/unit/1 soname/meson.build new file mode 100644 index 0000000..d956afe --- /dev/null +++ b/test cases/unit/1 soname/meson.build @@ -0,0 +1,18 @@ +project('vertest', 'c') + +shared_library('nover', 'versioned.c') + +shared_library('verset', 'versioned.c', + version : '4.5.6') + +shared_library('soverset', 'versioned.c', + soversion : '1.2.3') + +shared_library('bothset', 'versioned.c', + soversion : '1.2.3', + version : '4.5.6') + +shared_library('settosame', 'versioned.c', + soversion : '7.8.9', + version : '7.8.9') + |