MSVC Introspection Build: Fix build
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 13 Jan 2014 07:40:09 +0000 (15:40 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 13 Jan 2014 07:40:42 +0000 (15:40 +0800)
Link and run the dumper program firstly against the build of ATK from the
same tarball,then linking to the other dependent libraries which this build
of ATK was built against before finally trying to link and run against
other existing builds.

This is especially important for unstable releases, as APIs are often added
and dependent upon during development cycles.

build/atk-introspection-msvc.mak

index 0c20812..72618f7 100644 (file)
@@ -24,8 +24,9 @@ Atk-$(APIVERSION).gir: atk_list
        @-echo Generating Atk-$(APIVERSION).gir...
        @set CC=$(CC)
        @set PYTHONPATH=$(BASEDIR)\lib\gobject-introspection
-       @set PATH=win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(PATH);$(MINGWDIR)\bin
+       @set PATH=win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(BASEDIR)\bin;$(PATH);$(MINGWDIR)\bin
        @set PKG_CONFIG_PATH=$(PKG_CONFIG_PATH)
+       @set LIB=win32\vs$(VSVER)\$(CFG)\$(PLAT)\bin;$(BASEDIR)\lib;$(LIB)
        $(PYTHON2) $(G_IR_SCANNER) --verbose -I.. --add-include-path=.. \
        --namespace=Atk --nsversion=$(APIVERSION) --include=GObject-2.0 \
        --no-libtool --pkg=glib-2.0 --library=$(DLLNAME)        \