shithub: dav1d

Download patch

ref: e811c4767d0c698fc674e9603e1e63d15acff16e
parent: 9cb94d2941707e1973d69b9a738df4e3579407f0
author: Janne Grunau <[email protected]>
date: Fri Feb 22 14:03:40 EST 2019

bump version to 0.2.0 and soname to 1.0.0

The soname bump is required due to API changes since the 0.1.0 release.
Fixes #247.

--- a/meson.build
+++ b/meson.build
@@ -23,7 +23,7 @@
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 project('dav1d', ['c'],
-    version: '0.1.1',
+    version: '0.2.0',
     default_options: ['c_std=c99',
                       'warning_level=2',
                       'buildtype=release',
@@ -30,7 +30,8 @@
                       'b_ndebug=if-release'],
     meson_version: '>= 0.47.0')
 
-dav1d_version_array    = meson.project_version().split('.')
+david_soname_version   = '1.0.0'
+dav1d_version_array    = david_soname_version.split('.')
 dav1d_version_major    = dav1d_version_array[0]
 dav1d_version_minor    = dav1d_version_array[1]
 dav1d_version_revision = dav1d_version_array[2]
--- a/src/meson.build
+++ b/src/meson.build
@@ -143,11 +143,12 @@
 #
 
 if host_machine.system() == 'windows' and get_option('default_library') != 'static'
+    rc_version_array = meson.project_version().split('.')
     winmod = import('windows')
     rc_data = configuration_data()
-    rc_data.set('VERSION_MAJOR', dav1d_version_major)
-    rc_data.set('VERSION_MINOR', dav1d_version_minor)
-    rc_data.set('VERSION_REVISION', dav1d_version_revision)
+    rc_data.set('VERSION_MAJOR', rc_version_array[0])
+    rc_data.set('VERSION_MINOR', rc_version_array[1])
+    rc_data.set('VERSION_REVISION', rc_version_array[2])
     rc_data.set('VERSION_EXTRA', '0')
     rc_data.set('COPYRIGHT_YEARS', '2018')
 
@@ -219,7 +220,7 @@
         thread_compat_dep,
         ],
     c_args : [stackalign_flag],
-    version : meson.project_version(),
+    version : david_soname_version,
     soversion : dav1d_soversion,
     install : true,
 )