Fri, 27 Apr 2018 07:02:15 -0400
Move gnt version information into libgnt meson.build.
| finch/libgnt/meson.build | file | annotate | diff | comparison | revisions | |
| meson.build | file | annotate | diff | comparison | revisions |
--- a/finch/libgnt/meson.build Fri Apr 27 06:04:11 2018 -0400 +++ b/finch/libgnt/meson.build Fri Apr 27 07:02:15 2018 -0400 @@ -1,3 +1,42 @@ +# UPDATING VERSION NUMBERS FOR RELEASES +# +# If any code has changed in libgnt: +# gnt_micro_version += 1 +# +# If any functions have been added to libgnt: +# gnt_micro_version = 0 +# gnt_minor_version += 1 +# gnt_lt_current += 1 +# +# If backwards compatibility has been broken in libgnt: +# gnt_micro_version = 0 +# gnt_minor_version = 0 +# gnt_major_version += 1; +# gnt_lt_current += 1 +# +# gnt_version_suffix should be similar to one of the following: +# For beta releases: 'beta2' +# For code under development: 'devel' +# For production releases: '' +# + +# the last version for Finch 2 was 2.8.10, +# the first version for Finch 3 was 2.9.0 +gnt_lt_current = 9 +gnt_major_version = 2 +gnt_minor_version = 9 +gnt_micro_version = 0 +gnt_version_suffix = 'devel' +gnt_version = '@0@.@1@.@2@'.format(gnt_major_version, + gnt_minor_version, + gnt_micro_version) +gnt_display_version = '@0@@1@'.format(gnt_version, + gnt_version_suffix) + +GNT_LIB_VERSION = '@0@.@1@.@2@'.format(gnt_lt_current - gnt_minor_version, + gnt_minor_version, + gnt_micro_version) + gnt_config = configuration_data() ####################################################################### # Check for ncurses and other things used by the console UI
--- a/meson.build Fri Apr 27 06:04:11 2018 -0400 +++ b/meson.build Fri Apr 27 07:02:15 2018 -0400 @@ -20,27 +20,7 @@ # For code under development: 'devel' # For production releases: '' # -# -# If any code has changed in libgnt: -# gnt_micro_version += 1 -# -# If any functions have been added to libgnt: -# gnt_micro_version = 0 -# gnt_minor_version += 1 -# gnt_lt_current += 1 -# -# If backwards compatibility has been broken in libgnt: -# gnt_micro_version = 0 -# gnt_minor_version = 0 -# gnt_major_version += 1; -# gnt_lt_current += 1 -# -# gnt_version_suffix should be similar to one of the following: -# For beta releases: 'beta2' -# For code under development: 'devel' -# For production releases: '' -# -# Make sure to update finch/libgnt/configure.ac with libgnt version changes. +# Make sure to update finch/libgnt/meson.build with libgnt version changes. # purple_lt_current = 20 purple_major_version = 3 @@ -53,20 +33,6 @@ purple_display_version = '@0@@1@'.format(purple_version, purple_version_suffix) -# the last version for Finch 2 was 2.8.10, -# the first version for Finch 3 was 2.9.0 -gnt_lt_current = 9 -gnt_major_version = 2 -gnt_minor_version = 9 -gnt_micro_version = 0 -gnt_version_suffix = 'devel' -gnt_version = '@0@.@1@.@2@'.format(gnt_major_version, - gnt_minor_version, - gnt_micro_version) -gnt_display_version = '@0@@1@'.format(gnt_version, - gnt_version_suffix) - - add_project_arguments('-DHAVE_CONFIG_H=1', language : 'c') conf = configuration_data() man_conf = configuration_data() @@ -87,16 +53,6 @@ purple_minor_version, purple_micro_version) -version_conf.set('GNT_MAJOR_VERSION', gnt_major_version) -version_conf.set('GNT_MINOR_VERSION', gnt_minor_version) -version_conf.set('GNT_MICRO_VERSION', gnt_micro_version) -version_conf.set('GNT_VERSION', gnt_display_version) -version_conf.set('GNT_API_VERSION', gnt_lt_current - gnt_minor_version) - -GNT_LIB_VERSION = '@0@.@1@.@2@'.format(gnt_lt_current - gnt_minor_version, - gnt_minor_version, - gnt_micro_version) - package_revision = vcs_tag( input : 'package_revision.h.in', output : 'package_revision.h',