summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-03-25 13:28:48 +0100
committerAlexander Kanavin <alex.kanavin@gmail.com>2019-12-13 17:07:51 +0100
commitf2dca4e6a796560944b2ef8c158f6cc247f2ae5d (patch)
tree22cf51932970d36d2c811c203a6a0d742586f0db
parent1707d9b215aa85fd3aca56555ad14f02b3bd0afe (diff)
downloadgobject-introspection-f2dca4e6a796560944b2ef8c158f6cc247f2ae5d.tar.gz
meson.build: disable tests when cross-compiling
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
-rw-r--r--meson.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index f8f52d14..03ab4176 100644
--- a/meson.build
+++ b/meson.build
@@ -200,7 +200,9 @@ if get_option('enable-introspection-data') == true
subdir('gir')
endif
subdir('docs')
-subdir('tests')
+if not meson.is_cross_build()
+ subdir('tests')
+endif
install_data('Makefile.introspection', install_dir: join_paths(get_option('datadir'), 'gobject-introspection-1.0'))
install_data('m4/introspection.m4', install_dir: join_paths(get_option('datadir'), 'aclocal'))