[gimp/wip/nielsdg/meson-fix-test-build: 2/3] meson: Fix building of tests



commit a982d2b28348da7eea4e59e86cea23640220ca6e
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Sun May 10 15:51:07 2020 +0200

    meson: Fix building of tests
    
    The tests weren't building because they weren't linked to the static
    libraries.
    
    Note that some tests still need fixing, but at least they can be
    built/run now.

 app/meson.build       | 2 +-
 app/tests/meson.build | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/app/meson.build b/app/meson.build
index b1edca0ae3..8637baaeed 100644
--- a/app/meson.build
+++ b/app/meson.build
@@ -75,7 +75,7 @@ libapp = static_library('app',
 
 # Those subdirs need to link against the first ones
 subdir('config')
-# subdir('tests')
+subdir('tests')
 
 
 
diff --git a/app/tests/meson.build b/app/tests/meson.build
index 1a9a12c9e7..b20e122c63 100644
--- a/app/tests/meson.build
+++ b/app/tests/meson.build
@@ -4,6 +4,7 @@ apptests_includes = [
 ]
 apptests_deps = [
   pangocairo, pangoft2, gtk3, gegl, appstream_glib,
+  libbacktrace,
 ]
 apptests_links = [
   libapp,
@@ -14,6 +15,7 @@ apptests_links = [
   libappdialogs,
   libappdisplay,
   libappfile,
+  libappfiledata,
   libappgegl,
   libappgui,
   libappinternalprocs,


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