meson: tools: build libnss_libvirt_impl.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-05-20 21:19:50 +02:00
parent 933332ecd4
commit 6d6e271721
2 changed files with 19 additions and 22 deletions

View File

@ -53,29 +53,7 @@ wireshark/src/libvirt/protocol.h: wireshark/util/genxdrstub.pl \
endif WITH_WIRESHARK_DISSECTOR
LIBVIRT_NSS_SOURCES = \
nss/libvirt_nss.c \
nss/libvirt_nss.h \
nss/libvirt_nss_leases.c \
nss/libvirt_nss_leases.h \
$(NULL)
if WITH_NSS
noinst_LTLIBRARIES += nss/libnss_libvirt_impl.la
nss_libnss_libvirt_impl_la_SOURCES = \
$(LIBVIRT_NSS_SOURCES)
nss_libnss_libvirt_impl_la_CPPFLAGS = $(STANDALONE_CPPFLAGS)
nss_libnss_libvirt_impl_la_CFLAGS = \
-DLIBVIRT_NSS \
$(YAJL_CFLAGS) \
$(AM_CFLAGS) \
$(NULL)
nss_libnss_libvirt_impl_la_LIBADD = \
$(YAJL_LIBS) \
$(NULL)
nss_libnss_libvirt_la_SOURCES =
nss_libnss_libvirt_la_LDFLAGS = \
$(VERSION_SCRIPT_FLAGS)$(LIBVIRT_NSS_SYMBOL_FILE) \

View File

@ -9,3 +9,22 @@ else
nss_so_ver = '2'
nss_prefix = 'lib'
endif
nss_sources = [
'libvirt_nss.c',
'libvirt_nss_leases.c',
]
nss_libvirt_impl = static_library(
'nss_libvirt_impl',
[
nss_sources,
],
c_args: [
'-DLIBVIRT_NSS'
],
dependencies: [
tools_dep,
yajl_dep,
],
)