mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
meson: tools: introduce nss directory
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
37423c6892
commit
933332ecd4
@ -23,10 +23,6 @@ STANDALONE_CPPFLAGS = -I$(top_srcdir)
|
|||||||
|
|
||||||
noinst_LTLIBRARIES =
|
noinst_LTLIBRARIES =
|
||||||
|
|
||||||
install-data-local: install-nss
|
|
||||||
|
|
||||||
uninstall-local: uninstall-nss
|
|
||||||
|
|
||||||
if WITH_WIRESHARK_DISSECTOR
|
if WITH_WIRESHARK_DISSECTOR
|
||||||
|
|
||||||
ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
|
ws_plugin_LTLIBRARIES = wireshark/src/libvirt.la
|
||||||
@ -57,35 +53,6 @@ wireshark/src/libvirt/protocol.h: wireshark/util/genxdrstub.pl \
|
|||||||
|
|
||||||
endif WITH_WIRESHARK_DISSECTOR
|
endif WITH_WIRESHARK_DISSECTOR
|
||||||
|
|
||||||
if WITH_BSD_NSS
|
|
||||||
LIBVIRT_NSS_SYMBOL_FILE = \
|
|
||||||
$(srcdir)/nss/libvirt_nss_bsd.syms
|
|
||||||
LIBVIRT_GUEST_NSS_SYMBOL_FILE = \
|
|
||||||
$(LIBVIRT_NSS_SYMBOL_FILE)
|
|
||||||
NSS_SO_VER = 1
|
|
||||||
|
|
||||||
install-nss:
|
|
||||||
( cd $(DESTDIR)$(libdir) && \
|
|
||||||
rm -f nss_libvirt.so.$(NSS_SO_VER) && \
|
|
||||||
$(LN_S) libnss_libvirt.so.$(NSS_SO_VER) nss_libvirt.so.$(NSS_SO_VER) && \
|
|
||||||
rm -f nss_libvirt_guest.so.$(NSS_SO_VER) && \
|
|
||||||
$(LN_S) libnss_libvirt_guest.so.$(NSS_SO_VER) \
|
|
||||||
nss_libvirt_guest.so.$(NSS_SO_VER))
|
|
||||||
|
|
||||||
uninstall-nss:
|
|
||||||
-rm -f $(DESTDIR)$(libdir)/nss_libvirt.so.$(NSS_SO_VER)
|
|
||||||
-rm -f $(DESTDIR)$(libdir)/nss_libvirt_guest.so.$(NSS_SO_VER)
|
|
||||||
else ! WITH_BSD_NSS
|
|
||||||
LIBVIRT_NSS_SYMBOL_FILE = \
|
|
||||||
$(srcdir)/nss/libvirt_nss.syms
|
|
||||||
LIBVIRT_GUEST_NSS_SYMBOL_FILE = \
|
|
||||||
$(srcdir)/nss/libvirt_guest_nss.syms
|
|
||||||
NSS_SO_VER = 2
|
|
||||||
|
|
||||||
install-nss:
|
|
||||||
uninstall-nss:
|
|
||||||
endif ! WITH_BSD_NSS
|
|
||||||
|
|
||||||
LIBVIRT_NSS_SOURCES = \
|
LIBVIRT_NSS_SOURCES = \
|
||||||
nss/libvirt_nss.c \
|
nss/libvirt_nss.c \
|
||||||
nss/libvirt_nss.h \
|
nss/libvirt_nss.h \
|
||||||
|
@ -290,3 +290,7 @@ endif
|
|||||||
if bash_completion_dep.found()
|
if bash_completion_dep.found()
|
||||||
subdir('bash-completion')
|
subdir('bash-completion')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf.has('WITH_NSS')
|
||||||
|
subdir('nss')
|
||||||
|
endif
|
||||||
|
11
tools/nss/meson.build
Normal file
11
tools/nss/meson.build
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
if conf.has('WITH_BSD_NSS')
|
||||||
|
nss_sym_file = 'libvirt_nss_bsd.syms'
|
||||||
|
nss_guest_sym_file = nss_sym_file
|
||||||
|
nss_so_ver = '1'
|
||||||
|
nss_prefix = ''
|
||||||
|
else
|
||||||
|
nss_sym_file = 'libvirt_nss.syms'
|
||||||
|
nss_guest_sym_file = 'libvirt_guest_nss.syms'
|
||||||
|
nss_so_ver = '2'
|
||||||
|
nss_prefix = 'lib'
|
||||||
|
endif
|
Loading…
Reference in New Issue
Block a user