gplugin/gplugin

Simplify shared library versioning.
develop
2017-06-09, Elliott Sales de Andrade
06217d1664be
Parents ce727a8da6d1
Children 932cda2de491
Simplify shared library versioning.

Meson isn't libtool so we don't really need to use the same current,
age, revision thing. Also, the 'soversion' property defaults to the
first element of 'version', so we don't need to specify it.
--- a/gplugin-gtk/meson.build Fri Jun 09 03:35:55 2017 -0400
+++ b/gplugin-gtk/meson.build Fri Jun 09 03:46:03 2017 -0400
@@ -5,13 +5,7 @@
###############################################################################
GTK3 = dependency('gtk+-3.0', version : '>=3.0.0')
-GPLUGIN_GTK_LD_CURRENT = 0
-GPLUGIN_GTK_LD_REVISION = 1
-GPLUGIN_GTK_LD_AGE = 0
-GPLUGIN_GTK_LD_VERSION = '@0@.@1@.@2@'.format(
- GPLUGIN_GTK_LD_CURRENT,
- GPLUGIN_GTK_LD_REVISION,
- GPLUGIN_GTK_LD_AGE)
+GPLUGIN_GTK_LIBRARY_VERSION = '0.1.0'
GPLUGIN_GTK_SOURCES = [
'gplugin-gtk-plugin-info.c',
@@ -70,8 +64,7 @@
c_args : ['-DGPLUGIN_GTK_COMPILATION', '-DG_LOG_DOMAIN="GPluginGtk"'],
include_directories : toplevel_inc,
dependencies : [gplugin_dep, GTK3],
- soversion : GPLUGIN_GTK_LD_CURRENT,
- version : GPLUGIN_GTK_LD_VERSION,
+ version : GPLUGIN_GTK_LIBRARY_VERSION,
install : true
)
--- a/gplugin/meson.build Fri Jun 09 03:35:55 2017 -0400
+++ b/gplugin/meson.build Fri Jun 09 03:46:03 2017 -0400
@@ -2,13 +2,7 @@
# Library
###############################################################################
-GPLUGIN_LD_CURRENT = 0
-GPLUGIN_LD_REVISION = 1
-GPLUGIN_LD_AGE = 0
-GPLUGIN_LD_VERSION = '@0@.@1@.@2@'.format(
- GPLUGIN_LD_CURRENT,
- GPLUGIN_LD_REVISION,
- GPLUGIN_LD_AGE)
+GPLUGIN_LIBRARY_VERSION = '0.1.0'
GPLUGIN_HEADERS = [
'gplugin-core.h',
@@ -183,8 +177,7 @@
c_args : ['-DGPLUGIN_COMPILATION', '-DG_LOG_DOMAIN="GPlugin"'],
include_directories : toplevel_inc,
dependencies : [GLIB, GOBJECT, GMODULE],
- soversion : GPLUGIN_LD_CURRENT,
- version : GPLUGIN_LD_VERSION,
+ version : GPLUGIN_LIBRARY_VERSION,
install : true
)
gplugin_dep = declare_dependency(