summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-02-19 14:46:20 +0000
committerSimon McVittie <smcv@collabora.com>2022-02-19 14:46:20 +0000
commitb07adc68f961526378a641a2998c6c1f7c8bad89 (patch)
tree035e64414ba6bb6108dd9b69d033e0d6fcebb229
parente5d0810c284867b0744da055d36761d69b76fa16 (diff)
downloadbubblewrap-b07adc68f961526378a641a2998c6c1f7c8bad89.tar.gz
meson: Build tests with equivalent of -I$(top_srcdir) -I$(top_builddir)
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--meson.build1
-rw-r--r--tests/meson.build1
2 files changed, 2 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 06564e5..01fcc19 100644
--- a/meson.build
+++ b/meson.build
@@ -10,6 +10,7 @@ project(
cc = meson.get_compiler('c')
add_project_arguments('-D_GNU_SOURCE', language : 'c')
+common_include_directories = include_directories('.')
# Keep this in sync with ostree, except remove -Wall (part of Meson
# warning_level 2) and -Werror=declaration-after-statement
diff --git a/tests/meson.build b/tests/meson.build
index 389658f..b409a0c 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -5,6 +5,7 @@ test_programs = [
'../utils.c',
'../utils.h',
dependencies : [selinux_dep],
+ include_directories : common_include_directories,
)],
]