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



commit 3a167243b95e9425ddb37b6e1afaf1c07c0e7c8a
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 | 10 +++++++++-
 2 files changed, 10 insertions(+), 2 deletions(-)
---
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..23a92a6cf5 100644
--- a/app/tests/meson.build
+++ b/app/tests/meson.build
@@ -3,7 +3,14 @@ apptests_includes = [
   rootInclude, rootAppInclude
 ]
 apptests_deps = [
-  pangocairo, pangoft2, gtk3, gegl, appstream_glib,
+  appstream_glib,
+  dbghelp,
+  drmingw,
+  gegl,
+  gtk3,
+  libbacktrace,
+  pangocairo,
+  pangoft2,
 ]
 apptests_links = [
   libapp,
@@ -14,6 +21,7 @@ apptests_links = [
   libappdialogs,
   libappdisplay,
   libappfile,
+  libappfiledata,
   libappgegl,
   libappgui,
   libappinternalprocs,


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