[gobject-introspection] tests: make sure g-ir-scanner can find cairo-1.0.gir
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: make sure g-ir-scanner can find cairo-1.0.gir
- Date: Wed, 24 Jun 2015 19:59:56 +0000 (UTC)
commit 5f72748c8f1e8313b7f6c4c296cffdae7095cfbe
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Mon Mar 30 22:01:41 2015 +0200
tests: make sure g-ir-scanner can find cairo-1.0.gir
"cairo-1.0.gir" is generated into "$(top_builddir)/gir" but
g-ir-scanner is never instructed to look into that directory.
This fails somewhat when there is no system installed copy
of it when VPATH building "tests/scanner/Regress-1.0.gir":
Couldn't find include cairo-1.0.gir (search path: "everything except the correct value")
https://bugzilla.gnome.org/show_bug.cgi?id=745636
common.mk | 9 ++++++---
tests/offsets/Makefile.am | 2 +-
tests/scanner/Makefile.am | 16 ++++++++--------
3 files changed, 15 insertions(+), 12 deletions(-)
---
diff --git a/common.mk b/common.mk
index 303622f..e26c637 100644
--- a/common.mk
+++ b/common.mk
@@ -21,7 +21,8 @@ INTROSPECTION_SCANNER_ARGS = \
--add-include-path=$(srcdir) \
--add-include-path=$(top_srcdir)/gir \
--add-include-path=$(builddir) \
- --add-include-path=$(top_builddir)
+ --add-include-path=$(top_builddir) \
+ --add-include-path=$(top_builddir)/gir
INTROSPECTION_COMPILER = \
env PATH=".libs:$(PATH)" \
@@ -31,7 +32,8 @@ INTROSPECTION_COMPILER_ARGS = \
--includedir=$(srcdir) \
--includedir=$(top_srcdir)/gir \
--includedir=$(builddir) \
- --includedir=$(top_builddir)
+ --includedir=$(top_builddir) \
+ --includedir=$(top_builddir)/gir
INTROSPECTION_DOCTOOL = \
env PATH=".libs:$(PATH)" \
@@ -45,4 +47,5 @@ INTROSPECTION_DOCTOOL_ARGS = \
--add-include-path=$(srcdir) \
--add-include-path=$(top_srcdir)/gir \
--add-include-path=$(builddir) \
- --add-include-path=$(top_builddir)
+ --add-include-path=$(top_builddir) \
+ --add-include-path=$(top_builddir)/gir
diff --git a/tests/offsets/Makefile.am b/tests/offsets/Makefile.am
index 65d8773..3ae071c 100644
--- a/tests/offsets/Makefile.am
+++ b/tests/offsets/Makefile.am
@@ -25,7 +25,7 @@ Offsets_1_0_gir_INCLUDES = GObject-2.0
Offsets_1_0_gir_LIBS = liboffsets.la
Offsets_1_0_gir_PACKAGES = gobject-2.0
Offsets_1_0_gir_FILES = $(srcdir)/offsets.h $(srcdir)/offsets.c
-Offsets_1_0_gir_SCANNERFLAGS = --warn-all --warn-error -I$(top_srcdir)/tests
+Offsets_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --warn-all --warn-error -I$(top_srcdir)/tests
INTROSPECTION_GIRS += Offsets-1.0.gir
CLEANFILES += Offsets-1.0.gir Offsets-1.0.typelib liboffsets.la
diff --git a/tests/scanner/Makefile.am b/tests/scanner/Makefile.am
index 92a22c3..b11aa5a 100644
--- a/tests/scanner/Makefile.am
+++ b/tests/scanner/Makefile.am
@@ -86,7 +86,7 @@ SLetter_1_0_gir_LIBS = libsletter.la
SLetter_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
SLetter_1_0_gir_INCLUDES = Gio-2.0
SLetter_1_0_gir_FILES = $(libsletter_la_SOURCES)
-SLetter_1_0_gir_SCANNERFLAGS = --identifier-prefix=S --c-include="sletter.h" --warn-error
+SLetter_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --identifier-prefix=S --c-include="sletter.h"
--warn-error
GIRS += SLetter-1.0.gir
Regress-1.0.gir: $(top_builddir)/Gio-2.0.gir Utility-1.0.gir libregress.la
@@ -97,7 +97,7 @@ if HAVE_CAIRO
Regress_1_0_gir_INCLUDES += cairo-1.0
endif
Regress_1_0_gir_FILES = $(libregress_la_SOURCES)
-Regress_1_0_gir_SCANNERFLAGS = --c-include="regress.h" --warn-error
+Regress_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --c-include="regress.h" --warn-error
GIRS += Regress-1.0.gir
WarnLib-1.0.gir: $(top_builddir)/Gio-2.0.gir libwarnlib.la
@@ -105,7 +105,7 @@ WarnLib_1_0_gir_LIBS = libwarnlib.la
WarnLib_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
WarnLib_1_0_gir_INCLUDES = Gio-2.0
WarnLib_1_0_gir_FILES = $(libwarnlib_la_SOURCES)
-WarnLib_1_0_gir_SCANNERFLAGS = --c-include="warnlib.h" --symbol-prefix=warnlib_
+WarnLib_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --c-include="warnlib.h" --symbol-prefix=warnlib_
GIRS += WarnLib-1.0.gir
Utility-1.0.gir: libutility.la
@@ -114,7 +114,7 @@ Utility_1_0_gir_LIBS = libutility.la
Utility_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
Utility_1_0_gir_INCLUDES = GObject-2.0
Utility_1_0_gir_FILES = $(libutility_la_SOURCES)
-Utility_1_0_gir_SCANNERFLAGS = --c-include="utility.h" --warn-error
+Utility_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --c-include="utility.h" --warn-error
GIRS += Utility-1.0.gir
# This one tests different --namespace and --strip-prefix
@@ -124,7 +124,7 @@ GtkFrob_1_0_gir_LIBS = libgtkfrob.la
GtkFrob_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
GtkFrob_1_0_gir_INCLUDES = GObject-2.0
GtkFrob_1_0_gir_FILES = $(libgtkfrob_la_SOURCES)
-GtkFrob_1_0_gir_SCANNERFLAGS = --identifier-prefix=Gtk --symbol-prefix=gtk_frob --warn-error
+GtkFrob_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --identifier-prefix=Gtk
--symbol-prefix=gtk_frob --warn-error
GIRS += GtkFrob-1.0.gir
# This tests that functions called _get_type are only matched if they have no
@@ -135,7 +135,7 @@ GetType_1_0_gir_LIBS = libgettype.la
GetType_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
GetType_1_0_gir_INCLUDES = GObject-2.0
GetType_1_0_gir_FILES = $(libgettype_la_SOURCES)
-GetType_1_0_gir_SCANNERFLAGS = --c-include="gettype.h" --identifier-prefix=GetType --symbol-prefix=gettype
+GetType_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --c-include="gettype.h"
--identifier-prefix=GetType --symbol-prefix=gettype
GIRS += GetType-1.0.gir
Typedefs-1.0.gir: libtypedefs.la
@@ -144,7 +144,7 @@ Typedefs_1_0_gir_LIBS = libtypedefs.la
Typedefs_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
Typedefs_1_0_gir_INCLUDES = GObject-2.0
Typedefs_1_0_gir_FILES = $(libtypedefs_la_SOURCES)
-Typedefs_1_0_gir_SCANNERFLAGS = --c-include="typedefs.h" --identifier-prefix=Typedefs
--symbol-prefix=typedefs
+Typedefs_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --c-include="typedefs.h"
--identifier-prefix=Typedefs --symbol-prefix=typedefs
GIRS += Typedefs-1.0.gir
if !OS_WIN32
@@ -161,7 +161,7 @@ Bar_1_0_gir_PROGRAM = ./barapp
Bar_1_0_gir_CFLAGS = $(GI_SCANNER_CFLAGS)
Bar_1_0_gir_INCLUDES = GObject-2.0
Bar_1_0_gir_FILES = $(barapp_SOURCES)
-Bar_1_0_gir_SCANNERFLAGS = --accept-unprefixed
+Bar_1_0_gir_SCANNERFLAGS = $(INTROSPECTION_SCANNER_ARGS) --accept-unprefixed
GIRS += Bar-1.0.gir
endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]