forked from AuroraMiddleware/gtk
win32/generate-msvc.mak: Add rule to regenerate demos.h.win32
We can regenerate demos.h.win32 with or without the font features demo by using the regenerate-demos-h-win32 target with or without secifying the FONT_FEATURES_DEMO=1 flag on the NMake command line.
This commit is contained in:
parent
f8200470da
commit
079ee4e31e
@ -46,6 +46,11 @@ AT_PLAT=aarch64
|
||||
AT_PLAT=i686
|
||||
!endif
|
||||
|
||||
demo_sources = $(demos_base)
|
||||
!ifdef FONT_FEATURES_DEMO
|
||||
demo_sources = $(demo_sources) $(font_features_demo)
|
||||
!endif
|
||||
|
||||
# Please do not change anything beneath this line unless maintaining the NMake Makefiles
|
||||
GTK_VERSION = @GTK_VERSION@
|
||||
|
||||
|
@ -99,3 +99,17 @@ NULL=
|
||||
|
||||
!if [del /f /q resources_sources.mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header demo_sources.mak demo_actual_sources]
|
||||
!endif
|
||||
|
||||
!if [for %f in ($(demo_sources)) do @call create-lists.bat file demo_sources.mak ..\demos\gtk-demo\%f]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer demo_sources.mak]
|
||||
!endif
|
||||
|
||||
!include demo_sources.mak
|
||||
|
||||
!if [del /f /q demo_sources.mak]
|
||||
!endif
|
@ -3,6 +3,7 @@
|
||||
# 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 create-lists-msvc.mak
|
||||
|
||||
@ -193,6 +194,12 @@ all: \
|
||||
@echo Generating $@...
|
||||
@$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(@D) --generate-source $(@D)\iconbrowser.gresource.xml
|
||||
|
||||
regenerate-demos-h-win32: ..\demos\gtk-demo\geninclude.py $(demo_actual_sources)
|
||||
@echo Regenerating demos.h.win32...
|
||||
@-del ..\demos\gtk-demo\demos.h.win32
|
||||
@cd ..\demos\gtk-demo
|
||||
@$(PYTHON) geninclude.py demos.h.win32 $(demo_sources)
|
||||
|
||||
# Remove the generated files
|
||||
clean:
|
||||
@-del /f /q ..\demos\icon-browser\resources.c
|
||||
|
Loading…
Reference in New Issue
Block a user