[lasem] build: use a macro instead of hardcoded API_VERSION.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] build: use a macro instead of hardcoded API_VERSION.
- Date: Fri, 25 Nov 2011 15:13:27 +0000 (UTC)
commit 386ed8d945ac4daaaaf43186182822dc3e3830b9
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri Nov 25 16:12:53 2011 +0100
build: use a macro instead of hardcoded API_VERSION.
configure.ac | 1 +
src/Makefile.am | 11 ++++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 338e69f..1ffbb78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,7 @@ AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_SUBST([LASEM_API_VERSION], [0.4])
+AC_SUBST([LASEM_API_VERSION_U],[AS_TR_SH([$LASEM_API_VERSION])])
AC_SUBST([LASEM_LIBTOOL_VERSION], [lasem_libtool_current:lasem_version_micro:0])
AC_SEARCH_LIBS([strerror],[cposix])
diff --git a/src/Makefile.am b/src/Makefile.am
index 433e520..b2af864 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -278,11 +278,12 @@ introspection_files = $(liblasem_ LASEM_API_VERSION@_la_SOURCES) \
$(liblasem_ LASEM_API_VERSION@_la_HEADERS)
Lasem- LASEM_API_VERSION@.gir: $(INTROSPECTION_SCANNER)
-Lasem_0_4_gir_INCLUDES = GObject-2.0 cairo-1.0 Gio-2.0 Pango-1.0 GdkPixbuf-2.0
-Lasem_0_4_gir_SCANNERFLAGS = --strip-prefix=Lsm
-Lasem_0_4_gir_CFLAGS = $(INCLUDES)
-Lasem_0_4_gir_LIBS = liblasem- LASEM_API_VERSION@.la
-Lasem_0_4_gir_FILES = $(addprefix $(srcdir)/,$(introspection_files))
+
+Lasem_ LASEM_API_VERSION_U@_gir_INCLUDES = GObject-2.0 cairo-1.0 Gio-2.0 Pango-1.0 GdkPixbuf-2.0
+Lasem_ LASEM_API_VERSION_U@_gir_SCANNERFLAGS = --strip-prefix=Lsm
+Lasem_ LASEM_API_VERSION_U@_gir_CFLAGS = $(INCLUDES)
+Lasem_ LASEM_API_VERSION_U@_gir_LIBS = liblasem- LASEM_API_VERSION@.la
+Lasem_ LASEM_API_VERSION_U@_gir_FILES = $(addprefix $(srcdir)/,$(introspection_files))
INTROSPECTION_GIRS += Lasem- LASEM_API_VERSION@.gir
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]