[gobject-introspection] build/win32/gi-tests-msvc.mak: Clean up output

commit c60e46d11be7f7216eca04965febc32345bb1fb9
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Dec 2 21:36:13 2015 +0800

    build/win32/gi-tests-msvc.mak: Clean up output
    We want to clean up the .ilk files, but only want to create them only
    during debug builds.
    Also silence some warnings during the tests by defining TOP_BUILDDIR.

 build/win32/gi-tests-msvc.mak |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/build/win32/gi-tests-msvc.mak b/build/win32/gi-tests-msvc.mak
index b555bcd..c11c6b5 100644
--- a/build/win32/gi-tests-msvc.mak
+++ b/build/win32/gi-tests-msvc.mak
@@ -16,8 +16,8 @@ TESTS_CFLAGS_ADD = /MDd /Od /Zi /DG_ENABLE_DEBUG
 CFLAGS = $(TESTS_CFLAGS_ADD) /I$(TOP_SRCDIR) /W3 /we4013 /FImsvc_recommended_pragmas.h /DHAVE_CONFIG_H
-LDFLAGS_DLL = /link $(LDFLAGS_ARCH) /DLL /out:$@ /implib:$*-$(GI_APIVERSION).lib $(BASE_GLIB_LIBS)
+LDFLAGS_DLL = /link $(LDFLAGS_ARCH) /DLL /out:$@ /implib:$*-$(GI_APIVERSION).lib $(BASE_GLIB_LIBS) /DEBUG 
 # Special CFLAGS for Regress test
 REGRESS_CFLAGS = -DREGRESS_PRINT_PREVIEW_COMMAND="evince --unlink-tempfile --preview --print-settings %s %f" 
@@ -249,6 +249,7 @@ warn_tests_log.txt:
        @-echo Runinng warn tests...
        @-copy GObject-$(GLIB_APIVERSION).gir $(TOP_SRCDIR)\gir
        @-copy GLib-$(GLIB_APIVERSION).gir $(TOP_SRCDIR)\gir
+       @-set TOP_BUILDDIR=../..
        @-for %a in ($(TOP_SRCDIR)\tests\warn\*.h) do if not "%a" == "$(TOP_SRCDIR)\tests\warn\common.h" 
$(PYTHON) $(TOP_SRCDIR)\tests\warn\warningtester.py %a >> $@
        @-del $(TOP_SRCDIR)\gir\GObject-$(GLIB_APIVERSION).gir
        @-del $(TOP_SRCDIR)\gir\GLib-$(GLIB_APIVERSION).gir
@@ -285,6 +286,7 @@ clean:
        @-rmdir /s /q Regress-$(GI_APIVERSION)-C
        @-for %a in ($(built_test_typelibs)) do @del %a
        @-for %a in ($(built_test_girs)) do @del %a
+       @-del /f/q *.ilk
        @-del /f/q *.lib
        @-del /f/q *.exp
        @-del /f/q *.dll

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