introspection: pass compiler and GTK DLL path to scanner

Based on the MSYS2 0009-give-cc-to-gir-scanner.mingw.patch and 0010-put-gtk-dll-into-path.mingw.patch.

Pass CC to g-ir-scanner and add the GTK build directory to PATH while scanning GTK, so MinGW builds can run the scanner with the just-built DLLs.
This commit is contained in:
Daemonratte 2026-05-13 10:19:49 +02:00
commit cc3ccba88d
2 changed files with 5 additions and 0 deletions

View file

@ -2,6 +2,8 @@
include $(top_srcdir)/Makefile.decl
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ENV = \
CC="$(CC)"
INTROSPECTION_SCANNER_ARGS = \
--warn-all \
--add-include-path=../gdk

View file

@ -2,6 +2,9 @@
include $(top_srcdir)/Makefile.decl
-include $(INTROSPECTION_MAKEFILE)
INTROSPECTION_GIRS =
INTROSPECTION_SCANNER_ENV = \
CC="$(CC)" \
PATH="$(builddir):$(builddir)/.libs:$${PATH}:"
INTROSPECTION_SCANNER_ARGS = \
--warn-all \
--add-include-path=../gdk