From fd860482e57b94a3a57e10a57f374cb46d516d40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Tue, 10 Oct 2017 22:38:22 +0200 Subject: Allow to give source files to GtkDoc by respecting the File class --- mesonbuild/modules/gnome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index a754b32..31b24c8 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -832,7 +832,7 @@ This will become a hard error in the future.''') args = [] for i in new_args: if expend_file_state and isinstance(i, mesonlib.File): - i = os.path.join(expend_file_state.environment.get_build_dir(), i.subdir, i.fname) + i = i.absolute_path(expend_file_state.environment.get_source_dir(), expend_file_state.environment.get_build_dir()) elif not isinstance(i, str): raise MesonException(kwarg_name + ' values must be strings.') args.append(i) -- cgit v1.1