From f1ad627caf936920d7de54e5f0ac47196d37af51 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Fri, 13 Dec 2019 19:32:59 +0000
Subject: [PATCH] tests: Use common include directories

All of these need to include _steam-runtime-tools-config.h, which means
they need the equivalent of Autotools -I${top_builddir}. This is done
automatically when building steam-runtime-tools on its own, but not
when building it as a subproject.

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/meson.build | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/meson.build b/tests/meson.build
index 55737f34f..403e0cc8d 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -180,6 +180,7 @@ executable(
 executable(
   'mock-software-check-gl',
   join_paths('..', 'helpers', 'true.c'),
+  include_directories : project_include_dirs,
   install: true,
   install_dir: tests_dir
 )
@@ -235,6 +236,7 @@ executable(
 executable(
   'mock-good-check-gl',
   join_paths('..', 'helpers', 'true.c'),
+  include_directories : project_include_dirs,
   install: true,
   install_dir: tests_dir
 )
@@ -242,6 +244,7 @@ executable(
 executable(
   'mock-bad-check-gl',
   'mock-bad-check-vulkan.c',
+  include_directories : project_include_dirs,
   install: true,
   install_dir: tests_dir
 )
@@ -249,6 +252,7 @@ executable(
 executable(
   'mock-mixed-wflinfo',
   'mock-good-wflinfo.c',
+  include_directories : project_include_dirs,
   install: true,
   install_dir: tests_dir
 )
@@ -256,6 +260,7 @@ executable(
 executable(
   'mock-mixed-check-gl',
   'mock-bad-check-vulkan.c',
+  include_directories : project_include_dirs,
   install: true,
   install_dir: tests_dir
 )
@@ -263,6 +268,7 @@ executable(
 executable(
   'mock-sigusr-wflinfo',
   'mock-sigusr-wflinfo.c',
+  include_directories : project_include_dirs,
   install: true,
   install_dir: tests_dir
 )
-- 
GitLab