mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
meson: introduce tests 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
faf8dfc2d4
commit
76dbda15f1
@ -2225,6 +2225,8 @@ subdir('src')
|
|||||||
|
|
||||||
subdir('tools')
|
subdir('tools')
|
||||||
|
|
||||||
|
subdir('tests')
|
||||||
|
|
||||||
|
|
||||||
# generate meson-config.h file
|
# generate meson-config.h file
|
||||||
configure_file(output: 'meson-config.h', configuration: conf)
|
configure_file(output: 'meson-config.h', configuration: conf)
|
||||||
|
@ -16,38 +16,6 @@
|
|||||||
## License along with this library. If not, see
|
## License along with this library. If not, see
|
||||||
## <http://www.gnu.org/licenses/>.
|
## <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
AM_CPPFLAGS = \
|
|
||||||
-I$(top_builddir) -I$(top_srcdir) \
|
|
||||||
-I$(top_builddir)/include -I$(top_srcdir)/include \
|
|
||||||
-I$(top_builddir)/src -I$(top_srcdir)/src \
|
|
||||||
-I$(top_srcdir)/src/util \
|
|
||||||
-I$(top_srcdir)/src/conf \
|
|
||||||
-I$(top_srcdir)/src/hypervisor \
|
|
||||||
-I$(top_builddir)/src/rpc \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
WARN_CFLAGS += $(RELAXED_FRAME_LIMIT_CFLAGS)
|
|
||||||
|
|
||||||
AM_CFLAGS = \
|
|
||||||
-Dabs_builddir="\"$(abs_builddir)\"" \
|
|
||||||
-Dabs_top_builddir="\"$(abs_top_builddir)\"" \
|
|
||||||
-Dabs_srcdir="\"$(abs_srcdir)\"" \
|
|
||||||
-Dabs_top_srcdir="\"$(abs_top_srcdir)\"" \
|
|
||||||
$(LIBXML_CFLAGS) \
|
|
||||||
$(GLIB_CFLAGS) \
|
|
||||||
$(LIBNL_CFLAGS) \
|
|
||||||
$(GNUTLS_CFLAGS) \
|
|
||||||
$(SASL_CFLAGS) \
|
|
||||||
$(SELINUX_CFLAGS) \
|
|
||||||
$(APPARMOR_CFLAGS) \
|
|
||||||
$(YAJL_CFLAGS) \
|
|
||||||
$(COVERAGE_CFLAGS) \
|
|
||||||
$(XDR_CFLAGS) \
|
|
||||||
$(WARN_CFLAGS)
|
|
||||||
|
|
||||||
AM_LDFLAGS = \
|
|
||||||
-export-dynamic
|
|
||||||
|
|
||||||
MOCKLIBS_LDFLAGS = -avoid-version \
|
MOCKLIBS_LDFLAGS = -avoid-version \
|
||||||
-rpath /evil/libtool/hack/to/force/shared/lib/creation \
|
-rpath /evil/libtool/hack/to/force/shared/lib/creation \
|
||||||
$(MINGW_EXTRA_LDFLAGS)
|
$(MINGW_EXTRA_LDFLAGS)
|
||||||
|
30
tests/meson.build
Normal file
30
tests/meson.build
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
tests_dep = declare_dependency(
|
||||||
|
compile_args: [
|
||||||
|
'-Dabs_builddir="@0@"'.format(meson.current_build_dir()),
|
||||||
|
'-Dabs_top_builddir="@0@"'.format(meson.build_root()),
|
||||||
|
'-Dabs_srcdir="@0@"'.format(meson.current_source_dir()),
|
||||||
|
'-Dabs_top_srcdir="@0@"'.format(meson.source_root()),
|
||||||
|
] + coverage_flags + cc_flags_relaxed_frame_limit,
|
||||||
|
dependencies: [
|
||||||
|
apparmor_dep,
|
||||||
|
dlopen_dep,
|
||||||
|
glib_dep,
|
||||||
|
gnutls_dep,
|
||||||
|
libnl_dep,
|
||||||
|
libxml_dep,
|
||||||
|
rpc_dep,
|
||||||
|
sasl_dep,
|
||||||
|
selinux_dep,
|
||||||
|
xdr_dep,
|
||||||
|
yajl_dep,
|
||||||
|
],
|
||||||
|
include_directories: [
|
||||||
|
conf_inc_dir,
|
||||||
|
hypervisor_inc_dir,
|
||||||
|
libvirt_inc,
|
||||||
|
src_inc_dir,
|
||||||
|
top_inc_dir,
|
||||||
|
util_inc_dir,
|
||||||
|
],
|
||||||
|
link_args: libvirt_export_dynamic,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user