[aravis] build: use a macro instead of hardcoded API_VERSION.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] build: use a macro instead of hardcoded API_VERSION.
- Date: Fri, 25 Nov 2011 15:42:02 +0000 (UTC)
commit b9c67348c8e12b9c961674e590c372a6c0518ea3
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri Nov 25 16:40:20 2011 +0100
build: use a macro instead of hardcoded API_VERSION.
configure.ac | 1 +
src/Makefile.am | 12 +++++++-----
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index a4d27a8..3d2e836 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,7 @@ AC_CONFIG_MACRO_DIR([m4])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_SUBST([ARAVIS_API_VERSION], [0.2])
+AC_SUBST([ARAVIS_API_VERSION_U],[AS_TR_SH([$ARAVIS_API_VERSION])])
AC_SEARCH_LIBS([strerror],[cposix])
AC_PROG_CC
diff --git a/src/Makefile.am b/src/Makefile.am
index 65be556..254c0a1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -147,11 +147,13 @@ introspection_files = $(ARAVIS_SRCS) \
arvenumtypes.h
Aravis- ARAVIS_API_VERSION@.gir: $(INTROSPECTION_SCANNER)
-Aravis_0_2_gir_INCLUDES = GObject-2.0 Gio-2.0
-Aravis_0_2_gir_SCANNERFLAGS = --identifier-prefix=Arv --warn-all
-Aravis_0_2_gir_CFLAGS = $(INCLUDES) -I$(top_srcdir)/src
-Aravis_0_2_gir_LIBS = libaravis- ARAVIS_API_VERSION@.la
-Aravis_0_2_gir_FILES = $(addprefix $(srcdir)/,$(introspection_files))
+
+Aravis_ ARAVIS_API_VERSION_U@_gir_INCLUDES = GObject-2.0 Gio-2.0
+Aravis_ ARAVIS_API_VERSION_U@_gir_SCANNERFLAGS = --identifier-prefix=Arv --warn-all
+Aravis_ ARAVIS_API_VERSION_U@_gir_CFLAGS = $(INCLUDES) -I$(top_srcdir)/src
+Aravis_ ARAVIS_API_VERSION_U@_gir_LIBS = libaravis- ARAVIS_API_VERSION@.la
+Aravis_ ARAVIS_API_VERSION_U@_gir_FILES = $(addprefix $(srcdir)/,$(introspection_files))
+
INTROSPECTION_GIRS += Aravis- ARAVIS_API_VERSION@.gir
girdir = $(datadir)/gir-1.0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]