build: Generate gdk.gresource.xml in sorted order

The order in which the resources get embedded matters for reproducible
builds. In the Meson build system, gen-gdk-gresources-xml already sorts
the list, but in the Autotools build system they were previously taken
in readdir() order.

Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie 2020-04-02 12:52:16 +01:00
parent cdd4349bfe
commit b35cd705a7

View File

@ -471,7 +471,7 @@ stamp-gc-h: $(top_builddir)/config.status
# Resources
#
glsl_sources := $(wildcard $(srcdir)/resources/glsl/*.glsl)
glsl_sources := $(sort $(wildcard $(srcdir)/resources/glsl/*.glsl))
gdk.gresource.xml: Makefile.am
$(AM_V_GEN) echo "<?xml version='1.0' encoding='UTF-8'?>" > $@; \