[gnome-session/benzea/40-alpha: 2/4] meson: Use major version as API version




commit 5e13059745eada7f73b0c65ab5e726c41454836b
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Feb 23 18:04:53 2021 +0100

    meson: Use major version as API version
    
    This is only used for the gettext package. We could possibly just the
    version from the gettext package entirely. But, leave as is for now and
    simply use the GNOME release instead.

 meson.build | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
---
diff --git a/meson.build b/meson.build
index ef5132c6..9c8b05dc 100644
--- a/meson.build
+++ b/meson.build
@@ -8,13 +8,7 @@ project(
 
 prefix = get_option('prefix')
 session_version = meson.project_version()
-version_array = session_version.split('.')
-session_major_version = version_array[0].to_int()
-session_minor_version = version_array[1].to_int()
-session_micro_version = version_array[2].to_int()
-
-session_api_version = '@0@.0'.format(session_major_version)
-session_api_name = '@0@-@1@'.format(meson.project_name(), session_api_version)
+session_api_name = '@0@-@1@'.format(meson.project_name(), session_version.split('.')[0])
 
 session_prefix = get_option('prefix')
 session_bindir = join_paths(session_prefix, get_option('bindir'))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]