summaryrefslogtreecommitdiff
path: root/giscanner/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/Makefile.am')
-rw-r--r--giscanner/Makefile.am24
1 files changed, 22 insertions, 2 deletions
diff --git a/giscanner/Makefile.am b/giscanner/Makefile.am
index 0da9b597..0bd394f6 100644
--- a/giscanner/Makefile.am
+++ b/giscanner/Makefile.am
@@ -1,9 +1,19 @@
## Process this file with automake to produce Makefile.in
INCLUDES = -I$(top_srcdir)/girepository
-BUILT_SOURCES = scannerparser.c scannerparser.h scannerlexer.c scannerlexer.h
+BUILT_SOURCES = \
+ glibconfig-scanner.h \
+ scannerparser.c \
+ scannerparser.h \
+ scannerlexer.c \
+ scannerlexer.h
-CLEANFILES = scannerparser.c scannerparser.h scannerlexer.c scannerlexer.h
+CLEANFILES = \
+ glibconfig-scanner.h \
+ scannerparser.c \
+ scannerparser.h \
+ scannerlexer.c \
+ scannerlexer.h
AM_YFLAGS = -d -t
# Why do I have to do this automake?
@@ -57,5 +67,15 @@ CLEANFILES += _giscanner.so
_giscanner.so: _giscanner.la
ln -sf .libs/_giscanner.so .
+GLIBCONFIG=`pkg-config --variable=libdir glib-2.0`/glib-2.0/include/glibconfig.h
+glibconfig-scanner.h:
+ cat $(GLIBCONFIG) \
+ | sed s/__G_LIBCONFIG_H__/__G_LIBCONFIG_SCANNER_H__/g \
+ | sed s/define\ G_HAVE_ISO_VARARGS\ 1/define\ G_HAVE_ISO_VARARGS\ 0/g \
+ | sed s/define\ G_HAVE_GNUC_VARARGS\ 1/define\ G_HAVE_GNUC_VARARGS\ 0/g \
+ > $(top_builddir)/giscanner/$@
+
+gidir = $(includedir)/gobject-introspection-1.0/
+gi_HEADERS = glibconfig-scanner.h
include $(top_srcdir)/gcov.mak