diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2022-04-21 16:48:16 +0100 |
---|---|---|
committer | John Levon <levon@movementarian.org> | 2022-05-09 23:28:10 +0100 |
commit | 5b69b60c197695579fd48abaa81c39b9984f1cab (patch) | |
tree | cd4717b8a875b2810af93d72e21b34248c62e761 /include | |
parent | 18fb66bcec7b88301f949e586dbd773b8e3ee067 (diff) | |
download | libvfio-user-5b69b60c197695579fd48abaa81c39b9984f1cab.zip libvfio-user-5b69b60c197695579fd48abaa81c39b9984f1cab.tar.gz libvfio-user-5b69b60c197695579fd48abaa81c39b9984f1cab.tar.bz2 |
build: introduce Meson build file rules
The Meson build system used by many other virt projects (QEMU, libvirt
and others) is easier to understand & maintain rules for than cmake,
guiding towards best practice.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/meson.build | 15 | ||||
-rw-r--r-- | include/pci_caps/meson.build | 14 |
2 files changed, 29 insertions, 0 deletions
diff --git a/include/meson.build b/include/meson.build new file mode 100644 index 0000000..07e1482 --- /dev/null +++ b/include/meson.build @@ -0,0 +1,15 @@ + +public_include_dir = [include_directories('.')] + +libvfio_user_includes = files( + 'libvfio-user.h', + 'pci_defs.h', + 'vfio-user.h' +) + +install_headers( + libvfio_user_includes, + subdir: 'vfio-user' +) + +subdir('pci_caps') diff --git a/include/pci_caps/meson.build b/include/pci_caps/meson.build new file mode 100644 index 0000000..e21194e --- /dev/null +++ b/include/pci_caps/meson.build @@ -0,0 +1,14 @@ + +libvfio_user_pci_caps_includes = files( + 'common.h', + 'dsn.h', + 'msi.h', + 'msix.h', + 'pm.h', + 'px.h', +) + +install_headers( + libvfio_user_pci_caps_includes, + subdir: 'vfio-user' / 'pci_caps' +) |