copy ..\..\config.h.win32 ..\..\config.h
if exist ..\..\MSVC_$(Configuration) goto DONE_GDKCONFIG_H
if exist ..\..\gdk\gdkconfig.h del ..\..\gdk\gdkconfig.h
if exist ..\..\GDK_VULKAN_BUILD del ..\..\GDK_VULKAN_BUILD
if exist ..\..\MSVC_$(Configuration)_Vulkan del ..\..\MSVC_$(Configuration)_Vulkan
if exist $(Configuration)\$(Platform)\bin\$(GtkDllPrefix)gdk$(GtkDllSuffix).dll del $(Configuration)\$(Platform)\bin\$(GtkDllPrefix)gdk$(GtkDllSuffix).dll
if exist $(Configuration)\$(Platform)\bin\gdk-$(ApiVersion).lib del $(Configuration)\$(Platform)\bin\gdk-$(ApiVersion).lib
if "$(Configuration)" == "Release" del ..\..\MSVC_Debug
if "$(Configuration)" == "Debug" del ..\..\MSVC_Release
copy ..\..\gdk\gdkconfig.h.win32 ..\..\gdk\gdkconfig.h
copy ..\..\gdk\gdkconfig.h.win32 ..\..\GDK_WIN32ONLY_BUILD
echo $(Configuration) > ..\..\MSVC_$(Configuration)
:DONE_GDKCONFIG_H
if exist ..\..\MSVC_$(Configuration)_Vulkan goto DONE_GDKCONFIG_H
if exist ..\..\gdk\gdkconfig.h del ..\..\gdk\gdkconfig.h
if exist ..\..\GDK_WIN32ONLY_BUILD del ..\..\GDK_WIN32ONLY_BUILD
if exist ..\..\MSVC_Release del ..\..\MSVC_Release
if exist ..\..\MSVC_Debug del ..\..\MSVC_Debug
if "$(Configuration)" == "Release_Vulkan" del ..\..\MSVC_Debug_Vulkan
if "$(Configuration)" == "Debug_Vulkan" del ..\..\MSVC_Release_Vulkan
copy ..\..\gdk\gdkconfig.h.win32_vulkan ..\..\gdk\gdkconfig.h
copy ..\..\gdk\gdkconfig.h.win32_vulkan ..\..\GDK_VULKAN_BUILD
echo $(Configuration) > ..\..\MSVC_$(Configuration)_Vulkan
:DONE_GDKCONFIG_H
$(GlibEtcInstallRoot)\bin\gdbus-codegen --interface-prefix org.Gtk. --c-namespace _Gtk --generate-c-code gtkdbusgenerated ./gtkdbusinterfaces.xml
cd ..\..\gtk & $(PythonPath)\python $(GDbusCodeGenCmd) & cd $(SolutionDir)
cd ..\..\gtk & $(PythonPathX64)\python $(GDbusCodeGenCmd) & cd $(SolutionDir)
copy ..\..\gtk\gtk-win32.rc.body ..\..\gtk\gtk-win32.rc
$(PythonPath)\python ..\replace.py --action=replace-var --input=..\..\gtk\libgtk4.manifest.in --output=..\..\gtk\libgtk4.manifest --var=EXE_MANIFEST_ARCHITECTURE --outstring=*
copy ..\..\demos\gtk-demo\demos.h.win32 ..\..\demos\gtk-demo\demos.h
(cd ..) & (call gen-enums.bat $(GlibEtcInstallRoot)) & (cd $(SolutionDir))
echo ^<?xml version='1.0' encoding='UTF-8'?^> > ..\..\gsk\gsk.gresource.xml
echo ^<gresources^> >> ..\..\gsk\gsk.gresource.xml
echo ^<gresource prefix='/org/gtk/libgsk'^> >> ..\..\gsk\gsk.gresource.xml
for /f %%f in ('dir /b ..\..\gsk\resources\glsl\*') do echo ^<file alias='glsl/%%f'^>resources/glsl/%%f^</file^> >> ..\..\gsk\gsk.gresource.xml
for /f %%f in ('dir /b ..\..\gsk\resources\vulkan\*.spv') do echo ^<file alias='vulkan/%%f'^>resources/vulkan/%%f^</file^> >> ..\..\gsk\gsk.gresource.xml
for /f %%f in ('dir /b ..\..\gsk\resources\vulkan\*.glsl') do echo ^<file alias='vulkan/%%f'^>resources/vulkan/%%f^</file^> >> ..\..\gsk\gsk.gresource.xml
echo ^</gresource^> >> ..\..\gsk\gsk.gresource.xml
echo ^</gresources^> >> ..\..\gsk\gsk.gresource.xml
$(GlibEtcInstallRoot)\bin\glib-compile-resources.exe --sourcedir=..\..\gsk --c-name _gsk --generate-header --manual-register --target=..\..\gsk\gskresources.h ..\..\gsk\gsk.gresource.xml
$(GlibEtcInstallRoot)\bin\glib-compile-resources.exe --sourcedir=..\..\gsk --c-name _gsk --generate-source --manual-register --target=..\..\gsk\gskresources.c ..\..\gsk\gsk.gresource.xml
<_PropertySheetDisplayName>gtk4gensrcsprops
$(GenConfigH)
$(GenGdkConfigHWin32)
$(GenGdkConfigHVulkan)
$(GDbusCodeGenCmd)
$(GenerateGtkDbusBuiltSources)
$(GenerateGtkDbusBuiltSourcesX64)
$(CopyGtkWin32RC)
$(GenerateGtkWin32Manifest)
$(CopyDemosH)
$(GenGSKEnumSrcs)
$(GenGSKRsrcSrcs)