generate-msvc.mak: Support generating libgtk/gailutil projects
This adds rules to allow (re-)generating the libgtk and libgail-util Visual Studio projects, which needed some tinkering since we don't want to fall into the nasty U1095 error.
This commit is contained in:
@ -130,6 +130,9 @@ NULL=
|
||||
!include ..\gtk\deprecated\Makefile.inc
|
||||
!include ..\gtk\inspector\Makefile.inc
|
||||
|
||||
# For the libgail-util public headers
|
||||
!include ..\libgail-util\libgail-util-sources.inc
|
||||
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GTK_PUBLIC_ENUM_HEADERS]
|
||||
!endif
|
||||
|
||||
@ -160,32 +163,68 @@ NULL=
|
||||
!if [call create-lists.bat footer gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GTK_C_SRCS]
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GTK_MISC_C_SRCS]
|
||||
!endif
|
||||
|
||||
!if [for %f in ($(a11y_c_sources) $(gtk_deprecated_c_sources) $(inspector_c_sources)) do @call create-lists.bat file gtk_sources_msvc$(VSVER)_$(PLAT).mak ../gtk/%f]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GTK_C_SRCS_A_H]
|
||||
!endif
|
||||
|
||||
!if [for %f in ($(gtk_base_c_sources_base_gtka_gtkh:.c=)) do @call create-lists.bat file gtk_sources_msvc$(VSVER)_$(PLAT).mak ../gtk/%f.c]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GTK_C_SRCS_I_W]
|
||||
!endif
|
||||
|
||||
!if [for %f in ($(gtk_base_c_sources_base_gtki_gtkw:.c=)) do @call create-lists.bat file gtk_sources_msvc$(VSVER)_$(PLAT).mak ../gtk/%f.c]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GTK_OS_WIN32_C_SRCS]
|
||||
!endif
|
||||
|
||||
!if [for %f in ($(gtk_os_win32_c_sources)) do @call create-lists.bat file gtk_sources_msvc$(VSVER)_$(PLAT).mak ../gtk/%f]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [echo GTK_C_SRCS = ^$(GTK_MISC_C_SRCS) ^$(GTK_C_SRCS_A_H) ^$(GTK_C_SRCS_I_W) ^$(GTK_OS_WIN32_C_SRCS)>>gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GTK_MORE_C_SRCS]
|
||||
!endif
|
||||
|
||||
!if [for %f in ($(gtk_use_win32_c_sources) $(gtk_clipboard_dnd_c_sources_generic)) do @call create-lists.bat file gtk_sources_msvc$(VSVER)_$(PLAT).mak ..\gtk\%f]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat header gtk_sources_msvc$(VSVER)_$(PLAT).mak GAILUTIL_C_SRCS]
|
||||
!endif
|
||||
|
||||
!if [for %f in ($(util_c_sources)) do @call create-lists.bat file gtk_sources_msvc$(VSVER)_$(PLAT).mak ..\libgail-util\%f]
|
||||
!endif
|
||||
|
||||
!if [call create-lists.bat footer gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
!include gtk_sources_msvc$(VSVER)_$(PLAT).mak
|
||||
|
||||
!if [del /f /q gtk_sources_msvc$(VSVER)_$(PLAT).mak]
|
||||
!endif
|
||||
|
||||
# For the libgail-util public headers
|
||||
!include ..\libgail-util\libgail-util-sources.inc
|
||||
|
||||
# For GTK resources
|
||||
|
||||
!if [for %f in ($(adwaita_theme_css_sources:/=\)) do @call create-lists.bat file resource_sources_msvc$(VSVER)_$(PLAT).mak ..\gtk\%f]
|
||||
|
||||
Reference in New Issue
Block a user