mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
access: ensure ACL files are rebuilt when protocol changes
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>
This commit is contained in:
parent
5756a7bf2a
commit
80fcfab9ce
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user