[mutter/wip/run-tests-install] cogl/tests: Only install run-tests.sh when building installed tests



commit 4d383250aed81a42977e489b6c0eda215b13a197
Author: Iain Lane <iainl gnome org>
Date:   Mon Jul 22 21:58:21 2019 +0100

    cogl/tests: Only install run-tests.sh when building installed tests
    
    This is a script for installed tests; leave it out otherwise.

 cogl/tests/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/cogl/tests/meson.build b/cogl/tests/meson.build
index 4bb186424..0d76c8bc9 100644
--- a/cogl/tests/meson.build
+++ b/cogl/tests/meson.build
@@ -6,7 +6,9 @@ cdata.set('HAVE_GLES2', have_gles2.to_int())
 
 cogl_installed_tests_libexecdir = join_paths(
   mutter_installed_tests_libexecdir, 'cogl', 'conform')
-install_data('run-tests.sh', install_dir: cogl_installed_tests_libexecdir)
+if have_installed_tests
+  install_data('run-tests.sh', install_dir: cogl_installed_tests_libexecdir)
+endif
 
 cogl_config_env = configure_file(
   input: 'config.env.in',


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