[gtk/more-vs-proj-updates: 2/3] win32/generate-msvc.mak: Add rules to generate broadway headers




commit 32d718705559e835cad53cfc77b2f76e871b89cf
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 9f9346227a..25831c5bea 100644
--- a/win32/generate-msvc.mak
+++ b/win32/generate-msvc.mak
@@ -121,6 +121,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]