[mm-common] Add support for extra m4 arguments via GMMPROC_EXTRA_M4_DIR.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mm-common] Add support for extra m4 arguments via GMMPROC_EXTRA_M4_DIR.
- Date: Fri, 10 Dec 2010 10:07:33 +0000 (UTC)
commit 2aa27a46e2defc1fc5cfb4fb793b4cabaf6d7f18
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Dec 10 11:06:12 2010 +0100
Add support for extra m4 arguments via GMMPROC_EXTRA_M4_DIR.
* build/generate-binding.am: Use GMMPROC_EXTRA_M4_DIR to provide
extra -I arguments to gmmproc. For instance, use this in configure.ac:
MM_PKG_CONFIG_SUBST([GMMPROC_EXTRA_M4_DIR], [--variable=gmmprocm4dir gtkmm-3.0])
build/generate-binding.am | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/build/generate-binding.am b/build/generate-binding.am
index 80025de..fe9886d 100644
--- a/build/generate-binding.am
+++ b/build/generate-binding.am
@@ -25,7 +25,11 @@
# Location of the module's gmmproc support files.
codegen_srcdir ?= $(top_srcdir)/codegen
-# Location of the module's gmmproc M4 files.
+# Location of the module's gmmproc M4 files,
+# and of any extra m4 files from installed modules,
+# such as from gtkmm rather than just glibmm.
+# Use, for instance, this in configure.ac:
+# MM_PKG_CONFIG_SUBST([GMMPROC_EXTRA_M4_DIR], [--variable=gmmprocm4dir gtkmm-3.0])
codegen_m4_srcdir ?= $(codegen_srcdir)/m4
# Destination directory of the generated source files.
@@ -55,7 +59,8 @@ gmmproc_dependencies = $(binding_relfiles_m4) $(files_defs)
# Default command lines for running the code generators.
gmmproc ?= $(PERL) -I"$(GMMPROC_DIR)/pm" -- "$(GMMPROC_DIR)/gmmproc"
gen_wrap_init ?= $(PERL) -- "$(GMMPROC_DIR)/generate_wrap_init.pl"
-gmmproc_flags ?= -I $(codegen_m4_srcdir) --defs $(srcdir)
+codegen_m4_flags = $(addprefix -I , $(codegen_m4_srcdir) $(GMMPROC_EXTRA_M4_DIR))
+gmmproc_flags ?= $(codegen_m4_flags) --defs $(srcdir)
# Automatically created output directories.
binding_mkdirs = $(binding_stampdir) $(binding_outputdir)/private
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]