From 18c38df875ed99324c74dea2c6d9765f25c10ff8 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 20 Dec 2016 03:56:46 -0500 Subject: Add Generator.process_files to reduce code duplication. --- mesonbuild/modules/windows.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'mesonbuild/modules/windows.py') diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index ad882cb59..012f4d073 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -40,12 +40,10 @@ class WindowsModule: suffix = 'o' if not rescomp.found(): raise MesonException('Could not find Windows resource compiler %s.' % ' '.join(rescomp.get_command())) - res_files = mesonlib.stringlistify(args) res_kwargs = {'output' : '@BASENAME@.' + suffix, 'arguments': res_args} res_gen = build.Generator([rescomp], res_kwargs) - res_output = build.GeneratedList(res_gen) - [res_output.add_file(os.path.join(state.subdir, a)) for a in res_files] + res_output = res_gen.process_files('Windows resource', args, state) return res_output def initialize(): -- cgit v1.3