libvirt/examples/c/domain/meson.build
Pavel Hrdina f31209fc6c meson: examples: build and install example files
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
2020-08-03 09:27:06 +02:00

25 lines
403 B
Meson

example_domain_files = [
'dommigrate',
'domtop',
'info1',
'rename',
'suspend',
]
foreach name : example_domain_files
source_file = '@0@.c'.format(name)
executable(
name,
[
source_file,
],
include_directories: [
libvirt_inc,
],
link_with: [
libvirt_lib,
],
)
install_data(source_file, install_dir: example_dir / 'c' / 'domain')
endforeach