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



commit 6d3277b16028b2aada2204af831083cda1685d1d
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
    libappfiledata library.
    
    Note that some tests still need fixing, but at least they can be
    built/run now.

 app/meson.build       | 2 +-
 app/tests/meson.build | 1 +
 2 files changed, 2 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..02c51c21ae 100644
--- a/app/tests/meson.build
+++ b/app/tests/meson.build
@@ -14,6 +14,7 @@ apptests_links = [
   libappdialogs,
   libappdisplay,
   libappfile,
+  libappfiledata,
   libappgegl,
   libappgui,
   libappinternalprocs,


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