MSVC Projects: Generate widget factory GResource sources
Add rules in the helper NMake Makefiles to generate the GResource sources for gtk3-widget-factory. This prepares for us to add project files to build that demo program.
This commit is contained in:
@ -211,6 +211,15 @@ NULL=
|
||||
!if [call create-lists.bat footer resource_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header resource_sources_msvc$(VSVER)_$(PLAT).mak WIDGET_FACTORY_RESOURCES]
|
||||
!endif
|
||||
|
||||
!if [for /f %f in ('$(GLIB_COMPILE_RESOURCES) --sourcedir=..\demos\widget-factory --generate-dependencies ..\demos\widget-factory\widget-factory.gresource.xml') do @call create-lists.bat file resource_sources_msvc$(VSVER)_$(PLAT).mak %f]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer resource_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!include resource_sources_msvc$(VSVER)_$(PLAT).mak
|
||||
|
||||
!if [del /f /q resource_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
|
||||
@ -90,7 +90,8 @@ generate-base-sources: \
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk-3\gtk\gtk.gresource.xml \
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk3-demo\demos.h \
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk3-demo\demo_resources.c \
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk3-icon-browser\resources.c
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk3-icon-browser\resources.c \
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk3-widget-factory\widget_factory_resources.c
|
||||
|
||||
# Copy the pre-defined config.h.win32 and demos.h.win32
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gdk-3\config.h: ..\config.h.win32
|
||||
@ -290,6 +291,13 @@ generate-base-sources: \
|
||||
@$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=..\demos\icon-browser \
|
||||
--generate-source ..\demos\icon-browser\iconbrowser.gresource.xml
|
||||
|
||||
.\vs$(VSVER)\$(CFG)\$(PLAT)\obj\gtk3-widget-factory\widget_factory_resources.c: \
|
||||
..\demos\icon-browser\iconbrowser.gresource.xml $(WIDGET_FACTORY_RESOURCES)
|
||||
@echo Generating $@...
|
||||
@if not exist $(@D)\ md $(@D)
|
||||
@$(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=..\demos\widget-factory \
|
||||
--generate-source ..\demos\widget-factory\widget-factory.gresource.xml
|
||||
|
||||
gtk3-demo.sourcefiles: $(demo_actual_sources)
|
||||
@-del vs9\$(DEMO_VS9_PROJ)
|
||||
@for %%s in ($**) do @echo. ^<File RelativePath^="..\%%s" /^>>>$@
|
||||
|
||||
Reference in New Issue
Block a user