[gobject-introspection] MSVC builds: Update NMake Makefiles for introspection



commit 3670e1ed6cfa08cd423fd2e93c054f02156b94c0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Jan 4 23:30:26 2016 +0800

    MSVC builds: Update NMake Makefiles for introspection
    
    This updates the NMake Makefiles for:
    -Removing the __pycache__ directory on clean, which is generated when
     using Python 3.x, in the NMake Makefiles for building the main
     introspection files.
    
    -Building the giteststructinfo test program, as well as moving builds of
     DLLs and EXEs to using inference rules when applicable, for the NMake
     Makefiles that is used to build the tests.

 build/win32/gi-introspection-msvc.mak |    1 +
 build/win32/gi-tests-msvc.mak         |   13 +++++++------
 2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/build/win32/gi-introspection-msvc.mak b/build/win32/gi-introspection-msvc.mak
index 1a0a703..5bcbaf3 100644
--- a/build/win32/gi-introspection-msvc.mak
+++ b/build/win32/gi-introspection-msvc.mak
@@ -189,4 +189,5 @@ clean:
        @-del /f/q gio_list
        @-del /f/q gobject_list
        @-del /f/q glib_list
+       @ if exist __pycache__ rmdir /s /q __pycache__
        @-del /f/q *.pyc
diff --git a/build/win32/gi-tests-msvc.mak b/build/win32/gi-tests-msvc.mak
index c11c6b5..ba25a00 100644
--- a/build/win32/gi-tests-msvc.mak
+++ b/build/win32/gi-tests-msvc.mak
@@ -56,6 +56,7 @@ built_test_typelibs = \
 test_programs =        \
        gitestrepo.exe  \
        gitestthrows.exe        \
+       giteststructinfo.exe    \
        gitypelibtest.exe       \
        gitestoffsets.exe
 
@@ -83,8 +84,8 @@ offsets.dll: $(TOP_SRCDIR)\tests\offsets\offsets.c
        $(CC) $(CFLAGS) /I$(TOP_SRCDIR)\tests /I$(TOP_SRCDIR)\tests\offsets 
$(TOP_SRCDIR)\tests\offsets\offsets.c $(LDFLAGS_DLL)
        @-if exist $  manifest @mt /manifest $  manifest /outputresource:$@;2
 
-sletter.dll utility.dll gtkfrob.dll gettype.dll warnlib.dll typedefs.dll:
-       $(CC) $(CFLAGS) /I$(TOP_SRCDIR)\tests $(TOP_SRCDIR)\tests\scanner\$*.c $(LDFLAGS_DLL)
+{$(TOP_SRCDIR)\tests\scanner\}.c{}.dll:
+       $(CC) $(CFLAGS) /I$(TOP_SRCDIR)\tests $< $(LDFLAGS_DLL)
        @-if exist $  manifest @mt /manifest $  manifest /outputresource:$@;2
 
 regress.dll:
@@ -98,12 +99,12 @@ regress.dll:
        @-if exist $  manifest @mt /manifest $  manifest /outputresource:$@;2
 
 # Rules for test programs
-gitestrepo.exe gitestthrows.exe gitypelibtest.exe:
-       $(CC) $(CFLAGS) /I$(TOP_SRCDIR)\girepository $(TOP_SRCDIR)\tests\repository\$*.c $(LDFLAGS) 
girepository-$(GI_APIVERSION).lib
+{$(TOP_SRCDIR)\tests\repository\}.c{}.exe:
+       $(CC) $(CFLAGS) /I$(TOP_SRCDIR)\girepository $< $(LDFLAGS) girepository-$(GI_APIVERSION).lib
        @-if exist $  manifest @mt /manifest $  manifest /outputresource:$@;1
 
-barapp.exe:
-       $(CC) $(CFLAGS) /I$(TOP_SRCDIR)\girepository -I$(TOP_SRCDIR)\tests $(TOP_SRCDIR)\tests\scanner\$*.c 
$(LDFLAGS) girepository-$(GI_APIVERSION).lib
+{$(TOP_SRCDIR)\tests\scanner\}.c{}.exe:
+       $(CC) $(CFLAGS) /I$(TOP_SRCDIR)\girepository -I$(TOP_SRCDIR)\tests $< $(LDFLAGS) 
girepository-$(GI_APIVERSION).lib
        @-if exist $  manifest @mt /manifest $  manifest /outputresource:$@;1
 
 gitestoffsets.exe: gitestoffsets.c


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