mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
csharp: fix code generation script to list files correctly
This commit is contained in:
parent
4be602a137
commit
49adba12b3
1 changed files with 3 additions and 3 deletions
|
@ -74,7 +74,7 @@ if __name__ == "__main__":
|
|||
for _f in expected_files:
|
||||
dirs.add(os.path.dirname(_f))
|
||||
|
||||
generated = set(glob.glob(os.path.join('*/*.cs')))
|
||||
generated = set(glob.glob(os.path.join('*/*.cs'), root_dir=opts.out))
|
||||
rcode = 0
|
||||
not_listed = generated - expected_files
|
||||
if not_listed:
|
||||
|
@ -87,13 +87,13 @@ if __name__ == "__main__":
|
|||
if not_generated:
|
||||
print("Following files were listed but not generated:\n %s" %
|
||||
'\n '.join(["'%s/%s'," % (m.split(os.path.sep)[-2], m.split(os.path.sep)[-1])
|
||||
for m in not_generated]))
|
||||
for m in sorted(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]))
|
||||
for m in sorted(generated)]))
|
||||
|
||||
exit(rcode)
|
||||
|
|
Loading…
Reference in a new issue