[gimp/wip/Jehan/native-win64-build] Try to run the g-ir-scanner command directly.




commit ef6aa7b2cb2c25d0a67f76a6f50d127609f9e152
Author: Jehan <jehan girinstud io>
Date:   Tue May 4 18:41:17 2021 +0200

    Try to run the g-ir-scanner command directly.

 build/windows/build-msys2.sh | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)
---
diff --git a/build/windows/build-msys2.sh b/build/windows/build-msys2.sh
index fb4eb74b25..f9ba87c206 100644
--- a/build/windows/build-msys2.sh
+++ b/build/windows/build-msys2.sh
@@ -98,6 +98,9 @@ export XDG_DATA_DIRS="/mingw64/share/"
 git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/babl.git _babl
 git clone --depth=${GIT_DEPTH} https://gitlab.gnome.org/GNOME/gegl.git _gegl
 
+export BASEDIR=`realpath ~`
+pwd
+echo ${BASEDIR}
 mkdir _babl/_build
 cd _babl/_build
 printf "Babl" | python3 ../babl/identfilter.py
@@ -105,7 +108,28 @@ printf "BablTest" | python3 ../babl/identfilter.py
 git apply ../../build/windows/patches/0001-Introspection-in-verbose-mode.patch
 git apply ../../build/windows/patches/0001-Add-some-quotes.patch
 meson -Dprefix="${GIMP_PREFIX}" -Denable-vapi=false -Dwith-docs=false --buildtype=plain -Dwith-lcms=true 
-Denable-gir=true ..
-ninja
+ninja || \
+C:/msys64/mingw64/bin/g-ir-scanner.exe --no-libtool --namespace=Babl \
+--nsversion=0.1 --warn-all --output babl/Babl-0.1.gir --c-include=babl.h \
+--identifier-filter-cmd="C:/msys64/mingw64/bin/python.exe ${BASEDIR}/_babl/babl/identfilter.py" \
+-DBABL_IS_BEING_COMPILED -I${BASEDIR}/_babl/babl -I${BASEDIR}/_babl/_build/babl -I./. \
+-I../. -I./babl/base/. -I../babl/base/. \
+--filelist=${BASEDIR}/_babl/_build/babl/libbabl-0.1-0.dll.p/Babl_0.1_gir_filelist \
+--cflags-begin -fno-unsafe-math-optimizations \
+-Wdeclaration-after-statement -Winit-self -Wmissing-declarations \
+-Wmissing-prototypes -Wold-style-definition -Wpointer-arith -mmmx -msse \
+-mfpmath=sse -mstackrealign -I./. -I../. -I./babl/base/. \
+-I../babl/base/. -IC:/msys64/mingw64/include \
+-IC:/msys64/mingw64/include/gobject-introspection-1.0 \
+-IC:/msys64/mingw64/include/glib-2.0 \
+-IC:/msys64/mingw64/lib/glib-2.0/include --cflags-end \
+--add-include-path=C:/msys64/mingw64/share/gir-1.0 -L./babl --library \
+babl-0.1 --extra-library=m -LC:/msys64/mingw64/lib --extra-library=lcms2 \
+--extra-library=girepository-1.0 --extra-library=gobject-2.0 \
+--extra-library=glib-2.0 --extra-library=intl --sources-top-dirs \
+${BASEDIR}/_babl/subprojects/ \
+--sources-top-dirs ${BASEDIR}/_babl/_build/subprojects/
+
 ninja install
 
 mkdir ../../_gegl/_build


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]