meson: src: build libvirt_vmx.a static library

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Pavel Hrdina 2020-06-18 00:58:52 +02:00
parent 33d8c0e9a0
commit 27b6ff803e
3 changed files with 20 additions and 15 deletions

View File

@ -92,4 +92,6 @@ subdir('rpc')
subdir('access')
subdir('cpu')
subdir('vmx')
subdir('admin')

View File

@ -1,20 +1,5 @@
# vim: filetype=automake
VMX_SOURCES = \
vmx/vmx.c \
vmx/vmx.h \
$(NULL)
if WITH_VMX
noinst_LTLIBRARIES += libvirt_vmx.la
libvirt_la_BUILT_LIBADD += libvirt_vmx.la
libvirt_vmx_la_CFLAGS = \
-I$(srcdir)/conf \
$(AM_CFLAGS) \
$(NULL)
libvirt_vmx_la_SOURCES = $(VMX_SOURCES)
endif WITH_VMX
if WITH_VMX
USED_SYM_FILES += $(srcdir)/libvirt_vmx.syms
else ! WITH_VMX

18
src/vmx/meson.build Normal file
View File

@ -0,0 +1,18 @@
vmx_sources = [
'vmx.c',
]
if conf.has('WITH_VMX')
vmx_lib = static_library(
'virt_vmx',
[
vmx_sources,
],
dependencies: [
src_dep,
],
include_directories: [
conf_inc_dir,
],
)
endif