gnome: Consistently include current source dir

This is a common pattern so avoid the duplication
pull/817/merge
Patrick Griffis 8 years ago committed by Jussi Pakkanen
parent c69c15ee16
commit 084b854ce0
  1. 4
      mesonbuild/modules/gnome.py

@ -45,6 +45,9 @@ class GnomeModule:
if not isinstance(source_dirs, list):
source_dirs = [source_dirs]
# Always include current directory, but after paths set by user
source_dirs.append(os.path.join(state.environment.get_source_dir(), state.subdir))
if len(args) < 2:
raise MesonException('Not enough arguments; The name of the resource and the path to the XML file are required')
@ -220,6 +223,7 @@ class GnomeModule:
extra_args = mesonlib.stringlistify(kwargs.pop('extra_args', []))
scan_command += extra_args
scan_command += ['-I' + os.path.join(state.environment.get_source_dir(), state.subdir)]
scan_command += self.get_include_args(state, girtarget.get_include_dirs())
if 'link_with' in kwargs:

Loading…
Cancel
Save