if WITH_DTRACE_PROBES
tapset_DATA =
endif WITH_DTRACE_PROBES
-libexec_PROGRAMS =
RPC_PROBE_FILES =
LOGROTATE_FILES_IN =
SYSTEMD_UNIT_FILES =
-e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
$(NULL)
-include util/Makefile.inc.am
include security/Makefile.inc.am
include access/Makefile.inc.am
include logging/Makefile.inc.am
endif WITH_LIBVIRTD
-if WITH_LIBVIRTD
-libexec_PROGRAMS += libvirt_iohelper
-libvirt_iohelper_SOURCES = $(UTIL_IO_HELPER_SOURCES)
-libvirt_iohelper_LDFLAGS = \
- $(AM_LDFLAGS) \
- $(NULL)
-libvirt_iohelper_LDADD = \
- libvirt.la \
- $(GLIB_LIBS) \
- $(NULL)
-if WITH_DTRACE_PROBES
-libvirt_iohelper_LDADD += libvirt_probes.lo
-endif WITH_DTRACE_PROBES
-
-libvirt_iohelper_CFLAGS = \
- $(AM_CFLAGS) \
- $(NULL)
-
-
-endif WITH_LIBVIRTD
-
-
generated-sources: $(BUILT_SOURCES)
)
endforeach
+io_helper_sources = [
+ 'iohelper.c',
+]
+
virt_util_lib = static_library(
'virt_util',
[
libvirt_libs += virt_util_lib
+if conf.has('WITH_LIBVIRTD')
+ virt_helpers += {
+ 'name': 'libvirt_iohelper',
+ 'sources': [
+ files(io_helper_sources),
+ dtrace_gen_headers,
+ ],
+ }
+endif
+
util_inc_dir = include_directories('.')