[gtk/msvc-broadway-improvements: 2/2] win32/generate-msvc.mak: Add rules to generate broadway headers




commit a27bacc1fe4f109355618f876068b6541ddfe365
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Aug 5 16:22:29 2022 +0800

    win32/generate-msvc.mak: Add rules to generate broadway headers
    
    This allows one to (re-)generate clienthtml.h and broadwayjs.h that is needed
    to build broadwayd with the NMake Makefiles.  Currently, since these headers
    are currently dist'ed, the rules added here are mainly of use to build from a
    GIT checkout.

 win32/generate-msvc.mak | 13 +++++++++++++
 1 file changed, 13 insertions(+)
---
diff --git a/win32/generate-msvc.mak b/win32/generate-msvc.mak
index acc9252e85..fbd092a1c1 100644
--- a/win32/generate-msvc.mak
+++ b/win32/generate-msvc.mak
@@ -142,6 +142,19 @@ generate-base-sources:     \
        @$(PYTHON) $(GLIB_MKENUMS) --template $(@F).template $(gdk_public_h_sources) 
$(gdk_deprecated_h_sources) > ..\win32\$@
        @cd ..\win32
 
+# Generate the private headers needed for broadway-server.c
+generate-broadway-items: ..\gdk\broadway\clienthtml.h ..\gdk\broadway\broadwayjs.h
+
+..\gdk\broadway\clienthtml.h: ..\gdk\broadway\client.html
+       @echo Generating $@...
+       @$(PERL) ..\gdk\broadway\toarray.pl client_html $**>$@
+
+..\gdk\broadway\broadwayjs.h:  \
+..\gdk\broadway\broadway.js    \
+..\gdk\broadway\rawinflate.min.js
+       @echo Generating $@...
+       @$(PERL) ..\gdk\broadway\toarray.pl broadway_js $**>$@
+
 .\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtktypebuiltins.h    \
 .\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtktypebuiltins.c:
        @echo Generating $@...


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