Error if run_command() fails, remove meson warning

This commit is contained in:
Emmanuel Engelhart 2022-12-08 13:03:33 +01:00
parent b404241d0b
commit cd3d2110d9
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
1 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
resource_files = run_command(res_manager,
'--list-all',
files('resources_list.txt')
files('resources_list.txt'),
check: true
).stdout().strip().split('\n')
preprocessed_resources = custom_target('preprocessed_resource_files',
@ -33,7 +34,8 @@ lib_resources = custom_target('resources',
i18n_resource_files = run_command(find_program('python3'),
'-c',
'import sys; f=open(sys.argv[1]); print(f.read())',
files('i18n_resources_list.txt')
files('i18n_resources_list.txt'),
check: true
).stdout().strip().split('\n')
i18n_resources = custom_target('i18n_resources',