diff options
author | Murray Cumming <murrayc@murrayc.com> | 2010-12-10 11:06:12 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2010-12-10 11:06:12 +0100 |
commit | 2aa27a46e2defc1fc5cfb4fb793b4cabaf6d7f18 (patch) | |
tree | ecd1d27fcaf8dc7e38da4303c9aacd6c00bd1057 | |
parent | b954e80e1e78f9b037cab2c734e2ba8c255a1fcd (diff) | |
download | mm-common-2aa27a46e2defc1fc5cfb4fb793b4cabaf6d7f18.tar.gz |
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])
-rw-r--r-- | 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 |