[gobject-introspection] meson.build: disable tests when cross-compiling



commit f2dca4e6a796560944b2ef8c158f6cc247f2ae5d
Author: Alexander Kanavin <alex kanavin gmail com>
Date:   Mon Mar 25 13:28:48 2019 +0100

    meson.build: disable tests when cross-compiling
    
    Signed-off-by: Alexander Kanavin <alex kanavin gmail com>

 meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
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'))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]