[libvtemm] Substitute API version dynamically.
- From: Krzesimir Nowak <krnowak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libvtemm] Substitute API version dynamically.
- Date: Thu, 20 Aug 2009 15:07:10 +0000 (UTC)
commit b07aac0df3176bc9f0eec9097d8e450f1688cff5
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Thu Aug 20 17:03:11 2009 +0200
Substitute API version dynamically.
* configure.ac: Replace hardcoded .pc file names with
LIBVTEMM_MODULE_NAME.
* libvte/libvtemm-1.2-uninstalled.pc.in:
* libvte/libvtemm-1.2.pc.in: Rename them, so they don't have
API version in file name - it is placed by configure.
* libvtem/libvtemm/Makefile.am: Replace hardcoded API version with
LIBVTEMM_API_VERSION in lib_LTLIBRARIES and its variables.
configure.ac | 4 ++--
...ninstalled.pc.in => libvtemm-uninstalled.pc.in} | 0
libvte/{libvtemm-1.2.pc.in => libvtemm.pc.in} | 0
libvte/libvtemm/Makefile.am | 8 ++++----
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0a03999..ebc6c98 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,8 +47,8 @@ MM_ARG_ENABLE_WARNINGS([LIBVTEMM_WXXFLAGS],
AC_CONFIG_FILES([Makefile
codegen/Makefile
- libvte/libvtemm-1.2.pc
- libvte/libvtemm-1.2-uninstalled.pc
+ libvte/${LIBVTEMM_MODULE_NAME}.pc:libvte/libvtemm.pc.in
+ libvte/${LIBVTEMM_MODULE_NAME}-uninstalled.pc:libvte/libvtemm-uninstalled.pc.in
libvte/src/Makefile
libvte/libvtemm/Makefile
examples/Makefile
diff --git a/libvte/libvtemm-1.2-uninstalled.pc.in b/libvte/libvtemm-uninstalled.pc.in
similarity index 100%
rename from libvte/libvtemm-1.2-uninstalled.pc.in
rename to libvte/libvtemm-uninstalled.pc.in
diff --git a/libvte/libvtemm-1.2.pc.in b/libvte/libvtemm.pc.in
similarity index 100%
rename from libvte/libvtemm-1.2.pc.in
rename to libvte/libvtemm.pc.in
diff --git a/libvte/libvtemm/Makefile.am b/libvte/libvtemm/Makefile.am
index d05f312..9f390d2 100644
--- a/libvte/libvtemm/Makefile.am
+++ b/libvte/libvtemm/Makefile.am
@@ -1,7 +1,7 @@
## Copyright (c) 2009
## The libvtemm development team.
-lib_LTLIBRARIES = libvtemm-1.2.la
+lib_LTLIBRARIES = libvtemm- LIBVTEMM_API_VERSION@.la
include $(srcdir)/../src/filelist.am
include $(srcdir)/filelist.am
@@ -10,9 +10,9 @@ include $(top_srcdir)/build/compile-binding.am
AM_CPPFLAGS = $(binding_includes) $(binding_cppflags) $(GTHREAD_CFLAGS) $(LIBVTEMM_CFLAGS)
AM_CXXFLAGS = $(LIBVTEMM_WXXFLAGS)
-libvtemm_1_2_la_SOURCES = $(binding_sources) $(files_internal_cc)
-libvtemm_1_2_la_LDFLAGS = -no-undefined -version-info $(LIBVTEMM_SO_VERSION)
-libvtemm_1_2_la_LIBADD = $(LIBVTEMM_LIBS)
+libvtemm_ LIBVTEMM_API_VERSION@_la_SOURCES = $(binding_sources) $(files_internal_cc)
+libvtemm_ LIBVTEMM_API_VERSION@_la_LDFLAGS = -no-undefined -version-info $(LIBVTEMM_SO_VERSION)
+libvtemm_ LIBVTEMM_API_VERSION@_la_LIBADD = $(LIBVTEMM_LIBS)
EXTRA_DIST = \
$(files_internal_h)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]