meson: Sort input file list (#3550)

so that hyprland builds in a reproducible way
in spite of non-deterministic filesystem readdir order.

See https://reproducible-builds.org/ for why this is good.
This patch was done while working on reproducible builds for openSUSE.

Co-authored-by: Bernhard M. Wiedemann <bernhard+gitcommit lsmod.de>
This commit is contained in:
Bernhard M. Wiedemann 2023-10-11 20:49:42 +02:00 committed by GitHub
parent 0cf3d5b39a
commit 5dc7161b1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
globber = run_command('find', '.', '-name', '*.cpp', check: true)
globber = run_command('sh', '-c', 'find . -name "*.cpp" | sort', check: true)
src = globber.stdout().strip().split('\n')
executable('Hyprland', src,