aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Noël <corentin@elementary.io>2017-10-10 22:38:22 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-10-18 00:39:39 +0300
commitfd860482e57b94a3a57e10a57f374cb46d516d40 (patch)
tree346f8ce87f91afd2c6d2f9f34ce760e42a74745f
parent36d85db5d41b1f3a8e3f13a1680d1758353b23f7 (diff)
downloadmeson-fd860482e57b94a3a57e10a57f374cb46d516d40.zip
meson-fd860482e57b94a3a57e10a57f374cb46d516d40.tar.gz
meson-fd860482e57b94a3a57e10a57f374cb46d516d40.tar.bz2
Allow to give source files to GtkDoc by respecting the File class
-rw-r--r--mesonbuild/modules/gnome.py2
1 files changed, 1 insertions, 1 deletions
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)