build: Generate the list of files to use in meson.build

Making it simpler to update it
This commit is contained in:
Thibault Saunier 2019-02-25 12:28:53 -03:00
parent ba65377f06
commit dd3e1854ef

View file

@ -90,4 +90,10 @@ if __name__ == "__main__":
for m in not_generated]))
rcode = 1
if rcode == 1:
generated = sorted(list(generated))
print("List of files to use in `meson.build`:\n %s" %
'\n '.join(["'%s/%s'," % (m.split(os.path.sep)[-2], m.split(os.path.sep)[-1])
for m in generated]))
exit(rcode)