From 53b0a183c7a40cd208b893ffd02fb4ba54137fc1 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 22 Jun 2020 18:04:01 +0430 Subject: [PATCH] Remove concept of stable/unstable from build tools We never practiced the concept of stable and unstable releases, let's remove the code and always use the stable scheme. --- configure.ac | 11 +---------- meson.build | 9 +-------- src/meson.build | 2 +- 3 files changed, 3 insertions(+), 19 deletions(-) diff --git a/configure.ac b/configure.ac index df51f6f74..9fe75ed19 100644 --- a/configure.ac +++ b/configure.ac @@ -46,16 +46,7 @@ AC_SUBST(HB_VERSION) # Libtool version m4_define([hb_version_int], m4_eval(hb_version_major*10000 + hb_version_minor*100 + hb_version_micro)) -m4_if(m4_eval(hb_version_minor % 2), [1], - dnl for unstable releases - [m4_define([hb_libtool_revision], 0)], - dnl for stable releases - [m4_define([hb_libtool_revision], hb_version_micro)]) -m4_define([hb_libtool_age], - m4_eval(hb_version_int - hb_libtool_revision)) -m4_define([hb_libtool_current], - m4_eval(hb_libtool_age)) -HB_LIBTOOL_VERSION_INFO=hb_libtool_current:hb_libtool_revision:hb_libtool_age +HB_LIBTOOL_VERSION_INFO=hb_version_int:0:hb_version_int AC_SUBST(HB_LIBTOOL_VERSION_INFO) AC_ARG_WITH([libstdc++], diff --git a/meson.build b/meson.build index cd573a69c..662fe03cc 100644 --- a/meson.build +++ b/meson.build @@ -12,14 +12,7 @@ hb_version_micro = hb_version_arr[2].to_int() # libtool versioning hb_version_int = hb_version_major*10000 + hb_version_minor*100 + hb_version_micro -if hb_version_minor % 2 == 1 - hb_libtool_revision = 0 # for unstable releases -else - hb_libtool_revision = hb_version_micro # for stable releases -endif -hb_libtool_age = hb_version_int - hb_libtool_revision -hb_libtool_current = hb_libtool_age -hb_libtool_version_info = '@0@:@1@:@2@'.format(hb_libtool_current, hb_libtool_revision, hb_libtool_age) +hb_libtool_version_info = '@0@:0:@0@'.format(hb_version_int) pkgmod = import('pkgconfig') cpp = meson.get_compiler('cpp') diff --git a/src/meson.build b/src/meson.build index a9757a4bc..36df8cb13 100644 --- a/src/meson.build +++ b/src/meson.build @@ -379,7 +379,7 @@ harfbuzz_def = custom_target('harfbuzz.def', output: 'harfbuzz.def') defs_list = [harfbuzz_def] -version = '0.' + '0'.join(meson.project_version().split('.')) + '.0' +version = '0.@0@.0'.format(hb_version_int) extra_hb_cpp_args = [] if cpp.get_id() == 'msvc'