## License along with this library. If not, see
## <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 \
-rpath /evil/libtool/hack/to/force/shared/lib/creation \
$(MINGW_EXTRA_LDFLAGS)
--- /dev/null
+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,
+)