mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
meson: src: build libvirt_vmware.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:
parent
27b6ff803e
commit
7a25e43ab7
@ -95,3 +95,5 @@ subdir('cpu')
|
||||
subdir('vmx')
|
||||
|
||||
subdir('admin')
|
||||
|
||||
subdir('vmware')
|
||||
|
@ -1,25 +1,5 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
VMWARE_DRIVER_SOURCES = \
|
||||
vmware/vmware_driver.c \
|
||||
vmware/vmware_driver.h \
|
||||
vmware/vmware_conf.c \
|
||||
vmware/vmware_conf.h \
|
||||
$(NULL)
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(VMWARE_DRIVER_SOURCES))
|
||||
|
||||
if WITH_VMWARE
|
||||
noinst_LTLIBRARIES += libvirt_driver_vmware.la
|
||||
libvirt_la_BUILT_LIBADD += libvirt_driver_vmware.la
|
||||
libvirt_driver_vmware_la_CFLAGS = \
|
||||
-I$(srcdir)/conf \
|
||||
-I$(srcdir)/vmx \
|
||||
$(AM_CFLAGS) \
|
||||
$(NULL)
|
||||
libvirt_driver_vmware_la_SOURCES = $(VMWARE_DRIVER_SOURCES)
|
||||
endif WITH_VMWARE
|
||||
|
||||
if WITH_VMWARE
|
||||
USED_SYM_FILES += $(srcdir)/libvirt_vmware.syms
|
||||
else ! WITH_VMWARE
|
||||
|
18
src/vmware/meson.build
Normal file
18
src/vmware/meson.build
Normal file
@ -0,0 +1,18 @@
|
||||
vmware_sources = [
|
||||
'vmware_conf.c',
|
||||
'vmware_driver.c',
|
||||
]
|
||||
|
||||
if conf.has('WITH_VMWARE')
|
||||
vmware_lib = static_library(
|
||||
'virt_vmware',
|
||||
vmware_sources,
|
||||
dependencies: [
|
||||
src_dep,
|
||||
],
|
||||
include_directories: [
|
||||
conf_inc_dir,
|
||||
vmx_inc_dir,
|
||||
],
|
||||
)
|
||||
endif
|
@ -16,3 +16,5 @@ if conf.has('WITH_VMX')
|
||||
],
|
||||
)
|
||||
endif
|
||||
|
||||
vmx_inc_dir = include_directories('.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user