[gnome-software/abderrahim/flatpak-tests: 2/3] flatpak: only build test data when the tests option is true



commit 4aa619676421e7d386340e1f05d64474cbad86b8
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Thu Oct 3 17:57:50 2019 +0100

    flatpak: only build test data when the tests option is true

 plugins/flatpak/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/flatpak/meson.build b/plugins/flatpak/meson.build
index 07f82959..23178b7d 100644
--- a/plugins/flatpak/meson.build
+++ b/plugins/flatpak/meson.build
@@ -1,5 +1,3 @@
-subdir('tests')
-
 cargs = ['-DG_LOG_DOMAIN="GsPluginFlatpak"']
 deps = [
   plugin_libs,
@@ -45,6 +43,8 @@ i18n.merge_file(
 )
 
 if get_option('tests')
+  subdir('tests')
+
   cargs += ['-DLOCALPLUGINDIR="' + meson.current_build_dir() + '"']
   cargs += ['-DLOCALPLUGINDIR_CORE="' + meson.current_build_dir() + '/../core"']
   cargs += ['-DTESTDATADIR="' + join_paths(meson.current_build_dir(), 'tests') + '"']


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