[gtksourceview] build: install gtksourceview5-test



commit 5e9876d3400c2ab506c929926d14db1192e2e79e
Author: Christian Hergert <chergert redhat com>
Date:   Wed Sep 30 10:21:31 2020 -0700

    build: install gtksourceview5-test
    
    If -Dinstall_tests=true then we will now install the test-widget
    application as gtksourceview5-test. This can be useful primarily
    in developer situations like using Flatpak as a build
    environment for testing but also for conformance testing on
    something like GNOME OS images.

 tests/meson.build | 11 +++++++++++
 1 file changed, 11 insertions(+)
---
diff --git a/tests/meson.build b/tests/meson.build
index 4dddf302..222dbc83 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -32,6 +32,17 @@ foreach test_name, test_sources: tests_sources
     )
   endif
 
+  # Special case for installed tests
+  if get_option('install_tests')
+    if test_name == 'widget'
+      executable('gtksourceview@0@-widget'.format(api_version), test_sources,
+              c_args: tests_c_args,
+        dependencies: tests_deps,
+             install: true,
+      )
+    endif
+  endif
+
   # MSVC builds: We need items from the main GtkSourceView .lib as
   # well as the static core lib
   executable('test-@0@'.format(test_name), test_sources,


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