[gtk/msvcproj-nmake-robust] Visual Studio projects: Speed up build



commit 8d4c2708a05482a663fa1d2bd51436b1fb11a1c0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue May 31 13:55:13 2022 +0800

    Visual Studio projects: Speed up build
    
    ...for the sources and header generating phase, so that we can reduce
    the number of times that we generate the source file lists that we need.

 win32/generate-msvc.mak | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/win32/generate-msvc.mak b/win32/generate-msvc.mak
index e32c1571a9..b4f5a69f93 100644
--- a/win32/generate-msvc.mak
+++ b/win32/generate-msvc.mak
@@ -3,8 +3,8 @@
 # Items in here should not need to be edited unless
 # one is maintaining the NMake build files.
 
-!include ../demos/gtk-demo/demos-sources.mak
 !include config-msvc.mak
+!include ../demos/gtk-demo/demos-sources.mak
 !include create-lists-msvc.mak
 
 # Copy the pre-defined gdkconfig.h.[win32|win32_broadway]
@@ -189,15 +189,16 @@ generate-base-sources:    \
 
 .\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtkdbusgenerated.c: 
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtkdbusgenerated.h
 
-.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtktypefuncs.inc: ..\gtk\gentypefuncs.py
+.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtktypefuncs.inc:    \
+..\gtk\gentypefuncs.py \
+.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtkversion.h \
+.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtktypebuiltins.h
        @echo Generating $@...
        @if not exist $(@D)\ md $(@D)
-       @if not exist $(@D)\gtktypebuiltins.h $(MAKE) /f generate-msvc.mak CFG=$(CFG) $(@D)\gtktypebuiltins.h
-       @if not exist $(@D)\gtkversion.h $(MAKE) /f generate-msvc.mak CFG=$(CFG) $(@D)\gtkversion.h
        @echo #undef GTK_COMPILATION > $(@R).preproc.c
        @echo #include "gtkx.h" >> $(@R).preproc.c
        @cl /EP $(GTK_PREPROCESSOR_FLAGS) $(@R).preproc.c > $(@R).combined.c
-       @$(PYTHON) $** $@ $(@R).combined.c
+       @$(PYTHON) ..\gtk\gentypefuncs.py $@ $(@R).combined.c
        @del $(@R).preproc.c $(@R).combined.c
 
 .\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtk.gresource.xml: $(GTK_RESOURCES)


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