summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2013-03-20 17:42:15 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2013-03-20 17:42:15 +0800
commit9103dbb81dedf85e2272fc0597a1f17cbb49df4c (patch)
tree8c0505eeb24ee1d431d2d5115025f9d961158aa7 /build
parent4b2243c8af6e260537709ba63cedf164179dfe07 (diff)
downloadgtk+-9103dbb81dedf85e2272fc0597a1f17cbb49df4c.tar.gz
Fix introspection building for Visual Studio builds
Apparently time_t is used in gtkrecentmanager.h, which is a special type that could not be recognized when Gtk-3.0.gir is built. Judging from the ast.py from the gobject-introspection package, we can define time_t as long, and this will allow pygobject to load the Gtk module from gi.repository.
Diffstat (limited to 'build')
-rw-r--r--build/win32/gengir_gtk.bat1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/win32/gengir_gtk.bat b/build/win32/gengir_gtk.bat
index d8a82f2bea..28925dcb74 100644
--- a/build/win32/gengir_gtk.bat
+++ b/build/win32/gengir_gtk.bat
@@ -111,6 +111,7 @@ echo --no-libtool --library=gtk-3-vs%VSVER% ^^>> gtk_gir.bat
echo --reparse-validate --add-include-path=%BASEDIR%\share\gir-1.0 --add-include-path=. ^^>> gtk_gir.bat
echo --pkg-export gtk+-3.0 --warn-all --c-include="gtk/gtkx.h" ^^>> gtk_gir.bat
echo -I..\.. -DG_LOG_DOMAIN=\"Gtk\" -DGTK_LIBDIR=\"/dummy/lib\" ^^>> gtk_gir.bat
+echo -Dtime_t=long ^^>> gtk_gir.bat
echo -DGTK_DATADIR=\"/dummy/share\" -DGTK_DATA_PREFIX=\"/dummy\" ^^>> gtk_gir.bat
echo -DGTK_SYSCONFDIR=\"/dummy/etc\" -DGTK_VERSION=\"3.6.2\" ^^>> gtk_gir.bat
echo -DGTK_BINARY_VERSION=\"3.0.0\" -DGTK_HOST=\"i686-pc-vs%VSVER%\" ^^>> gtk_gir.bat