From: Pierre-Luc Beaudoin Date: Sat, 18 Oct 2008 14:03:31 +0000 (-0400) Subject: Introduce API_VERSION X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4bcea3571186ad0eb2682e38cb6eec1e2e8ee52;p=libchamplain Introduce API_VERSION --- diff --git a/Makefile.am b/Makefile.am index 9e22869..23ea52b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,8 @@ SUBDIRS = champlain-gtk demos docs/reference -pcfiles = champlain-gtk-0.2.pc +pcfiles = champlain-gtk-@API_VERSION@.pc -champlain-gtk-0.2.pc: champlain-gtk.pc +champlain-gtk-@API_VERSION@.pc: champlain-gtk.pc @cp -f $< $@ pkgconfig_DATA = $(pcfiles) diff --git a/champlain-gtk.pc.in b/champlain-gtk.pc.in index 9079e9b..12567ca 100644 --- a/champlain-gtk.pc.in +++ b/champlain-gtk.pc.in @@ -6,6 +6,6 @@ includedir=@includedir@ Name: libchamplain-gtk Description: Gtk+ Widget wrapper for libchamplain Version: @VERSION@ -Libs: -L${libdir} -lchamplain-gtk-0.2 -Cflags: -I${includedir}/libchamplain-gtk-0.2 -Requires: champlain-0.2 gobject-2.0 clutter-0.8 clutter-gtk-0.8 gtk+-2.0 +Libs: -L${libdir} -lchamplain-gtk-@API_VERSION@ +Cflags: -I${includedir}/libchamplain-gtk-@API_VERSION@ +Requires: champlain-@API_VERSION@ gobject-2.0 clutter-0.8 clutter-gtk-0.8 gtk+-2.0 diff --git a/configure.ac b/configure.ac index 90ed73c..9a4462b 100644 --- a/configure.ac +++ b/configure.ac @@ -17,8 +17,11 @@ AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal]) # Checks for libraries. LIBRARY_VERSION=0:1:0 +# API_VERSION is used to generate the pc file only +API_VERSION=0.2 AC_SUBST(LIBRARY_VERSION) +AC_SUBST(API_VERSION) AC_SUBST(DEPS_CFLAGS) AC_SUBST(DEPS_LIBS)