[libgames-support] Add the API version to the vapi
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgames-support] Add the API version to the vapi
- Date: Sun, 28 Jun 2015 21:37:53 +0000 (UTC)
commit 9bb834a9b0aa6dd6c5ad31dc28ab8a7048b1363b
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sun Jun 28 16:37:36 2015 -0500
Add the API version to the vapi
Makefile.am | 2 +-
configure.ac | 6 ++++--
games/Makefile.am | 10 +++++-----
tests/Makefile.am | 2 +-
4 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b6d7b76..ef4e9ab 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@ SUBDIRS = games po tests
pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = libgames-support-1.0.pc
+pkgconfig_DATA = libgames-support-$(LIBGAMES_SUPPORT_API_VERSION).pc
EXTRA_DIST = \
COPYING.LESSER
diff --git a/configure.ac b/configure.ac
index 96cbd06..46733b2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,8 +11,10 @@ dnl * If any interfaces have been removed or changed since the last public
dnl release, then set age to 0)
dnl
dnl http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
-LIBGAMES_SUPPORT_LT_VERSION=0:0:0
-AC_SUBST([LIBGAMES_SUPPORT_LT_VERSION])
+AC_SUBST([LIBGAMES_SUPPORT_LT_VERSION], [0:0:0])
+
+dnl This one is easier. Increment it whenever you increment age.
+AC_SUBST([LIBGAMES_SUPPORT_API_VERSION], [1.0])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
diff --git a/games/Makefile.am b/games/Makefile.am
index 2295f2d..f06efbd 100644
--- a/games/Makefile.am
+++ b/games/Makefile.am
@@ -27,18 +27,18 @@ libgames_support_la_VALAFLAGS = \
--pkg gio-2.0 \
--pkg gee-0.8 \
--header=games-support.h \
- --vapi=games-support.vapi
+ --vapi=games-support-$(LIBGAMES_SUPPORT_API_VERSION).vapi
-games-support.h games-support.vapi : libgames_support_la_vala.stamp
+games-support.h games-support-$(LIBGAMES_SUPPORT_API_VERSION).vapi : libgames_support_la_vala.stamp
games_includedir = $(includedir)/gnome-games
dist_games_include_HEADERS = games-support.h
vapidir = $(datadir)/vala/vapi
-dist_vapi_DATA = games-support.vapi
+dist_vapi_DATA = games-support-$(LIBGAMES_SUPPORT_API_VERSION).vapi
MAINTAINERCLEANFILES = \
- games-support.h \
- games-support.vapi
+ games-support.h \
+ games-support-$(LIBGAMES_SUPPORT_API_VERSION).vapi
-include $(top_srcdir)/git.mk
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 389541e..84f25f2 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -3,7 +3,7 @@ noinst_PROGRAMS = test-scores
TESTS = test-scores
test_scores_SOURCES = \
- $(top_builddir)/games/games-support.vapi \
+ $(top_builddir)/games/games-support-$(LIBGAMES_SUPPORT_API_VERSION).vapi \
test-scores.vala
test_scores_CFLAGS = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]