1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-13 17:18:01 +03:00

meson: src: build libvirt_openvz.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 01:00:10 +02:00
parent 2f0aff27c8
commit a2413a2461
3 changed files with 21 additions and 21 deletions

View File

@ -99,4 +99,5 @@ subdir('admin')
subdir('esx')
subdir('hyperv')
subdir('openvz')
subdir('vmware')

View File

@ -1,26 +1,5 @@
# vim: filetype=automake
OPENVZ_DRIVER_SOURCES = \
openvz/openvz_conf.c \
openvz/openvz_conf.h \
openvz/openvz_driver.c \
openvz/openvz_driver.h \
openvz/openvz_util.c \
openvz/openvz_util.h \
$(NULL)
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(OPENVZ_DRIVER_SOURCES))
if WITH_OPENVZ
noinst_LTLIBRARIES += libvirt_driver_openvz.la
libvirt_la_BUILT_LIBADD += libvirt_driver_openvz.la
libvirt_driver_openvz_la_CFLAGS = \
-I$(srcdir)/conf \
$(AM_CFLAGS) \
$(NULL)
libvirt_driver_openvz_la_SOURCES = $(OPENVZ_DRIVER_SOURCES)
endif WITH_OPENVZ
if WITH_OPENVZ
USED_SYM_FILES += $(srcdir)/libvirt_openvz.syms
else ! WITH_OPENVZ

20
src/openvz/meson.build Normal file
View File

@ -0,0 +1,20 @@
openvz_sources = [
'openvz_conf.c',
'openvz_driver.c',
'openvz_util.c',
]
if conf.has('WITH_OPENVZ')
openvz_lib = static_library(
'virt_openvz',
[
openvz_sources,
],
dependencies: [
src_dep,
],
include_directories: [
conf_inc_dir,
],
)
endif