]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
access: ensure ACL files are rebuilt when protocol changes
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 16 Sep 2020 09:42:02 +0000 (10:42 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 16 Sep 2020 14:53:27 +0000 (15:53 +0100)
Meson is not told that the .x protocol files are an input for the
generator, so it doesn't know to setup a rebuild dependancy.

Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/access/meson.build

index b23838a77623bbe924842812d2f29aaa92b7b048..1cffdae21a6e4215c612caad3fdeb0d3e274f622 100644 (file)
@@ -34,38 +34,42 @@ foreach name : [ 'remote', 'qemu', 'lxc' ]
 
   access_gen_headers += custom_target(
     header_file,
+    input: protocol_file,
     output: header_file,
     command: [
-      gendispatch_prog, '--mode=aclheader', name, name.to_upper(), protocol_file,
+      gendispatch_prog, '--mode=aclheader', name, name.to_upper(), '@INPUT@',
     ],
     capture: true,
   )
 
   access_gen_sources += custom_target(
     source_file,
+    input: protocol_file,
     output: source_file,
     command: [
       gendispatch_prog, '--mode=aclbody', name, name.to_upper(),
-      protocol_file, header_file,
+       '@INPUT@', header_file,
     ],
     capture: true,
   )
 
   access_gen_sym += custom_target(
     syms_file,
+    input: protocol_file,
     output: syms_file,
     capture: true,
     command: [
-      gendispatch_prog, '--mode=aclsym', name, name.to_upper(), protocol_file,
+      gendispatch_prog, '--mode=aclsym', name, name.to_upper(), '@INPUT@',
     ]
   )
 
   access_gen_xml += custom_target(
     xml_file,
+    input: protocol_file,
     output: xml_file,
     capture: true,
     command: [
-      gendispatch_prog, '--mode=aclapi', name, name.to_upper(), protocol_file,
+      gendispatch_prog, '--mode=aclapi', name, name.to_upper(), '@INPUT@',
     ],
   )
 endforeach