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:
Daniel P. Berrangé 2020-09-16 10:42:02 +01:00
parent 5756a7bf2a
commit 80fcfab9ce

View 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