Allow to give source files to GtkDoc by respecting the File class

pull/2505/head
Corentin Noël 7 years ago committed by Jussi Pakkanen
parent 36d85db5d4
commit fd860482e5
  1. 2
      mesonbuild/modules/gnome.py

@ -832,7 +832,7 @@ This will become a hard error in the future.''')
args = [] args = []
for i in new_args: for i in new_args:
if expend_file_state and isinstance(i, mesonlib.File): 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): elif not isinstance(i, str):
raise MesonException(kwarg_name + ' values must be strings.') raise MesonException(kwarg_name + ' values must be strings.')
args.append(i) args.append(i)

Loading…
Cancel
Save