meson: minor simplification
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 20 Oct 2020 08:12:56 +0000 (12:12 +0400)
committerMichael Roth <michael.roth@amd.com>
Tue, 3 Nov 2020 02:02:21 +0000 (20:02 -0600)
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
qga/meson.build

index 635de9af4131b04fffa0ec605ed9894880d9e6bc..4cb3b3f259e5816a36edd4a4bdf79d6b16b3fb11 100644 (file)
@@ -22,12 +22,7 @@ qga_qapi_files = custom_target('QGA QAPI files',
                                depend_files: qapi_gen_depends)
 
 qga_ss = ss.source_set()
-i = 0
-foreach output: qga_qapi_outputs
-  qga_ss.add(qga_qapi_files[i])
-  i = i + 1
-endforeach
-
+qga_ss.add(qga_qapi_files.to_list())
 qga_ss.add(files(
   'commands.c',
   'guest-agent-command-state.c',