|
@@ -21,19 +21,23 @@ sources = files(
|
|
|
'Actions/DeleteUserAction.vala',
|
|
'Actions/DeleteUserAction.vala',
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
-library_version = meson.project_version()
|
|
|
|
|
-libspry = shared_library('spry-@0@'.format(library_version),
|
|
|
|
|
|
|
+# The API version rides every artifact name (libspry-0.2.so, spry-0.2.vapi,
|
|
|
|
|
+# ...); the project version is the release version and only reaches the
|
|
|
|
|
+# pkg-config Version: field (usm checks it against the manifest version).
|
|
|
|
|
+api_version = '0.2'
|
|
|
|
|
+release_version = meson.project_version()
|
|
|
|
|
+libspry = shared_library('spry-@0@'.format(api_version),
|
|
|
sources,
|
|
sources,
|
|
|
dependencies: [glib_dep, gobject_dep, gio_dep, invercargill_dep, invercargill_json_dep, json_glib_dep, inversion_dep, astralis_dep, libxml_dep, sodium_deps, invercargill_sql_dep, sqlite_dep, invercargill_sql_inversion_dep, statum_dep],
|
|
dependencies: [glib_dep, gobject_dep, gio_dep, invercargill_dep, invercargill_json_dep, json_glib_dep, inversion_dep, astralis_dep, libxml_dep, sodium_deps, invercargill_sql_dep, sqlite_dep, invercargill_sql_inversion_dep, statum_dep],
|
|
|
install: true,
|
|
install: true,
|
|
|
- vala_gir: 'spry-@0@.gir'.format(library_version),
|
|
|
|
|
|
|
+ vala_gir: 'spry-@0@.gir'.format(api_version),
|
|
|
install_dir: [true, true, true, true]
|
|
install_dir: [true, true, true, true]
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
pkg = import('pkgconfig')
|
|
pkg = import('pkgconfig')
|
|
|
pkg.generate(libspry,
|
|
pkg.generate(libspry,
|
|
|
- version : library_version,
|
|
|
|
|
- name : 'spry-@0@'.format(library_version),
|
|
|
|
|
|
|
+ version : release_version,
|
|
|
|
|
+ name : 'spry-@0@'.format(api_version),
|
|
|
requires : [statum_dep])
|
|
requires : [statum_dep])
|
|
|
|
|
|
|
|
spry_dep = declare_dependency(
|
|
spry_dep = declare_dependency(
|