mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
Add depfiles back to resource generation
The recent change to faster resource generation lost the depfiles to ensure that we regenerate resources when any of the contents change. Bring it back.
This commit is contained in:
parent
f2dbf57104
commit
8079f8ea3c
@ -171,8 +171,11 @@ if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_ad
|
|||||||
gtkdemo_gresource = custom_target('gtkdemo.gresource',
|
gtkdemo_gresource = custom_target('gtkdemo.gresource',
|
||||||
input : 'demo.gresource.xml',
|
input : 'demo.gresource.xml',
|
||||||
output : 'gtkdemo.gresource',
|
output : 'gtkdemo.gresource',
|
||||||
|
depfile : 'gtkdemo.gresource.d',
|
||||||
command : [glib_compile_resources,
|
command : [glib_compile_resources,
|
||||||
|
'--generate',
|
||||||
'--target=@OUTPUT@',
|
'--target=@OUTPUT@',
|
||||||
|
'--dependency-file=@DEPFILE@',
|
||||||
'--sourcedir=' + meson.current_source_dir(),
|
'--sourcedir=' + meson.current_source_dir(),
|
||||||
'--sourcedir=' + meson.current_build_dir(),
|
'--sourcedir=' + meson.current_build_dir(),
|
||||||
'@INPUT@'])
|
'@INPUT@'])
|
||||||
@ -181,11 +184,13 @@ if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_ad
|
|||||||
gtkdemo_resources_c = custom_target('gtkdemo_resources.c',
|
gtkdemo_resources_c = custom_target('gtkdemo_resources.c',
|
||||||
input : 'demo.gresource.xml',
|
input : 'demo.gresource.xml',
|
||||||
output : 'gtkdemo_resources.c',
|
output : 'gtkdemo_resources.c',
|
||||||
|
depfile : 'gtkdemo_resources.c.d',
|
||||||
command : [glib_compile_resources,
|
command : [glib_compile_resources,
|
||||||
|
'--generate-source',
|
||||||
'--target=@OUTPUT@',
|
'--target=@OUTPUT@',
|
||||||
|
'--dependency-file=@DEPFILE@',
|
||||||
'--sourcedir=' + meson.current_source_dir(),
|
'--sourcedir=' + meson.current_source_dir(),
|
||||||
'--sourcedir=' + meson.current_build_dir(),
|
'--sourcedir=' + meson.current_build_dir(),
|
||||||
'--generate-source',
|
|
||||||
'--external-data',
|
'--external-data',
|
||||||
'--c-name', '_g_binary_gtkdemo',
|
'--c-name', '_g_binary_gtkdemo',
|
||||||
'@INPUT@'])
|
'@INPUT@'])
|
||||||
|
@ -15,8 +15,11 @@ if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_ad
|
|||||||
widgetfactory_gresource = custom_target('widgetfactory.gresource',
|
widgetfactory_gresource = custom_target('widgetfactory.gresource',
|
||||||
input : 'widget-factory.gresource.xml',
|
input : 'widget-factory.gresource.xml',
|
||||||
output : 'widgetfactory.gresource',
|
output : 'widgetfactory.gresource',
|
||||||
|
depfile: 'widgetfactory.gresource.d',
|
||||||
command : [glib_compile_resources,
|
command : [glib_compile_resources,
|
||||||
|
'--generate',
|
||||||
'--target=@OUTPUT@',
|
'--target=@OUTPUT@',
|
||||||
|
'--dependency-file=@DEPFILE@',
|
||||||
'--sourcedir=' + meson.current_source_dir(),
|
'--sourcedir=' + meson.current_source_dir(),
|
||||||
'--sourcedir=' + meson.current_build_dir(),
|
'--sourcedir=' + meson.current_build_dir(),
|
||||||
'@INPUT@'])
|
'@INPUT@'])
|
||||||
@ -25,11 +28,13 @@ if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_ad
|
|||||||
widgetfactory_resources_c = custom_target('widgetfactory_resources.c',
|
widgetfactory_resources_c = custom_target('widgetfactory_resources.c',
|
||||||
input : 'widget-factory.gresource.xml',
|
input : 'widget-factory.gresource.xml',
|
||||||
output : 'widgetfactory_resources.c',
|
output : 'widgetfactory_resources.c',
|
||||||
|
depfile: 'widgetfactory_resources.c.d',
|
||||||
command : [glib_compile_resources,
|
command : [glib_compile_resources,
|
||||||
|
'--generate-source',
|
||||||
'--target=@OUTPUT@',
|
'--target=@OUTPUT@',
|
||||||
|
'--dependency-file=@DEPFILE@',
|
||||||
'--sourcedir=' + meson.current_source_dir(),
|
'--sourcedir=' + meson.current_source_dir(),
|
||||||
'--sourcedir=' + meson.current_build_dir(),
|
'--sourcedir=' + meson.current_build_dir(),
|
||||||
'--generate-source',
|
|
||||||
'--external-data',
|
'--external-data',
|
||||||
'--c-name', '_g_binary_widgetfactory',
|
'--c-name', '_g_binary_widgetfactory',
|
||||||
'@INPUT@'])
|
'@INPUT@'])
|
||||||
|
@ -880,8 +880,11 @@ if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_ad
|
|||||||
input : gtk_gresources_xml,
|
input : gtk_gresources_xml,
|
||||||
depends : theme_deps,
|
depends : theme_deps,
|
||||||
output : 'gtk.gresource',
|
output : 'gtk.gresource',
|
||||||
|
depfile : 'gtk.gresource.d',
|
||||||
command : [glib_compile_resources,
|
command : [glib_compile_resources,
|
||||||
|
'--generate',
|
||||||
'--target=@OUTPUT@',
|
'--target=@OUTPUT@',
|
||||||
|
'--dependency-file=@DEPFILE@',
|
||||||
'--sourcedir=' + meson.current_source_dir(),
|
'--sourcedir=' + meson.current_source_dir(),
|
||||||
'--sourcedir=' + meson.current_build_dir(),
|
'--sourcedir=' + meson.current_build_dir(),
|
||||||
'@INPUT@'])
|
'@INPUT@'])
|
||||||
@ -891,11 +894,13 @@ if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_ad
|
|||||||
input : gtk_gresources_xml,
|
input : gtk_gresources_xml,
|
||||||
depends : theme_deps,
|
depends : theme_deps,
|
||||||
output : 'gtkresources.c',
|
output : 'gtkresources.c',
|
||||||
|
depfile : 'gtkresources.c.d',
|
||||||
command : [glib_compile_resources,
|
command : [glib_compile_resources,
|
||||||
|
'--generate-source',
|
||||||
'--target=@OUTPUT@',
|
'--target=@OUTPUT@',
|
||||||
|
'--dependency-file=@DEPFILE@',
|
||||||
'--sourcedir=' + meson.current_source_dir(),
|
'--sourcedir=' + meson.current_source_dir(),
|
||||||
'--sourcedir=' + meson.current_build_dir(),
|
'--sourcedir=' + meson.current_build_dir(),
|
||||||
'--generate-source',
|
|
||||||
'--external-data',
|
'--external-data',
|
||||||
'--c-name', '_gtk',
|
'--c-name', '_gtk',
|
||||||
'--manual-register',
|
'--manual-register',
|
||||||
@ -905,11 +910,13 @@ if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_ad
|
|||||||
input : gtk_gresources_xml,
|
input : gtk_gresources_xml,
|
||||||
depends : theme_deps,
|
depends : theme_deps,
|
||||||
output : 'gtkresources.h',
|
output : 'gtkresources.h',
|
||||||
|
depfile : 'gtkresources.h.d',
|
||||||
command : [glib_compile_resources,
|
command : [glib_compile_resources,
|
||||||
|
'--generate-header',
|
||||||
'--target=@OUTPUT@',
|
'--target=@OUTPUT@',
|
||||||
|
'--dependency-file=@DEPFILE@',
|
||||||
'--sourcedir=' + meson.current_source_dir(),
|
'--sourcedir=' + meson.current_source_dir(),
|
||||||
'--sourcedir=' + meson.current_build_dir(),
|
'--sourcedir=' + meson.current_build_dir(),
|
||||||
'--generate-header',
|
|
||||||
'--external-data',
|
'--external-data',
|
||||||
'--c-name', '_gtk',
|
'--c-name', '_gtk',
|
||||||
'--manual-register',
|
'--manual-register',
|
||||||
|
Loading…
Reference in New Issue
Block a user