mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
meson: src: build libvirt_test.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
a2413a2461
commit
fbb1edeeb9
@ -76,7 +76,6 @@ include access/Makefile.inc.am
|
||||
include logging/Makefile.inc.am
|
||||
include locking/Makefile.inc.am
|
||||
include admin/Makefile.inc.am
|
||||
include test/Makefile.inc.am
|
||||
include esx/Makefile.inc.am
|
||||
include vmx/Makefile.inc.am
|
||||
include vmware/Makefile.inc.am
|
||||
|
@ -100,4 +100,5 @@ subdir('admin')
|
||||
subdir('esx')
|
||||
subdir('hyperv')
|
||||
subdir('openvz')
|
||||
subdir('test')
|
||||
subdir('vmware')
|
||||
|
@ -1,23 +0,0 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
TEST_DRIVER_SOURCES = \
|
||||
test/test_driver.c \
|
||||
test/test_driver.h \
|
||||
$(NULL)
|
||||
TEST_DRIVER_ASSETS = test/test-screenshot.png
|
||||
|
||||
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(TEST_DRIVER_SOURCES))
|
||||
|
||||
if WITH_TEST
|
||||
|
||||
driver_test_asset_DATA = $(TEST_DRIVER_ASSETS)
|
||||
driver_test_assetdir = $(pkgdatadir)
|
||||
|
||||
noinst_LTLIBRARIES += libvirt_driver_test.la
|
||||
libvirt_la_BUILT_LIBADD += libvirt_driver_test.la
|
||||
libvirt_driver_test_la_CFLAGS = \
|
||||
-I$(srcdir)/conf \
|
||||
$(AM_CFLAGS) \
|
||||
$(NULL)
|
||||
libvirt_driver_test_la_SOURCES = $(TEST_DRIVER_SOURCES)
|
||||
endif WITH_TEST
|
24
src/test/meson.build
Normal file
24
src/test/meson.build
Normal file
@ -0,0 +1,24 @@
|
||||
test_driver_sources = [
|
||||
'test_driver.c',
|
||||
]
|
||||
|
||||
test_driver_assets = [
|
||||
'test-screenshot.png',
|
||||
]
|
||||
|
||||
if conf.has('WITH_TEST')
|
||||
test_lib = static_library(
|
||||
'virt_test',
|
||||
[
|
||||
test_driver_sources,
|
||||
],
|
||||
dependencies: [
|
||||
src_dep,
|
||||
],
|
||||
include_directories: [
|
||||
conf_inc_dir,
|
||||
],
|
||||
)
|
||||
|
||||
install_data(test_driver_assets, install_dir: pkgdatadir)
|
||||
endif
|
Loading…
Reference in New Issue
Block a user