[gjs: 1/2] build: Only install installed-tests modules if option activated




commit 3d5e0bda89e1c7de4739b45ca83669d0c0808d20
Author: Philip Chimento <philip chimento gmail com>
Date:   Thu Mar 18 20:21:16 2021 -0700

    build: Only install installed-tests modules if option activated
    
    Regression from !581; the ES modules belonging to the installed tests
    should not be installed unless the Meson installed_tests option is active.
    
    Closes: #388

 installed-tests/js/meson.build | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/installed-tests/js/meson.build b/installed-tests/js/meson.build
index dc4777db..8026f903 100644
--- a/installed-tests/js/meson.build
+++ b/installed-tests/js/meson.build
@@ -170,7 +170,9 @@ foreach test : jasmine_tests
     endif
 endforeach
 
-install_subdir('modules', install_dir: installed_js_tests_dir)
+if get_option('installed_tests')
+    install_subdir('modules', install_dir: installed_js_tests_dir)
+endif
 
 # testGDBus.js is separate, because it can be skipped, and during build should
 # be run using dbus-run-session


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