Fix custom target sources

pull/2017/head
Jussi Pakkanen 8 years ago
parent c11a4cb952
commit ecde592b86
  1. 8
      mesonbuild/build.py
  2. 6
      mesonbuild/modules/gnome.py

@ -1490,8 +1490,12 @@ class CustomTarget(Target):
def process_kwargs(self, kwargs):
super().process_kwargs(kwargs)
self.sources = kwargs.get('input', [])
self.sources = flatten(self.sources)
sources = flatten(kwargs.get('input', []))
self.sources = []
for s in sources:
if hasattr(s, 'held_object'):
s = s.held_object
self.sources.append(s)
if 'output' not in kwargs:
raise InvalidArguments('Missing keyword argument "output".')
self.outputs = kwargs['output']

@ -328,8 +328,10 @@ class GnomeModule(ExtensionModule):
if isinstance(dep, InternalDependency):
cflags.update(get_include_args(dep.include_directories))
for lib in dep.libraries:
ldflags.update(self._get_link_args(state, lib.held_object, depends, include_rpath))
libdepflags = self._get_dependencies_flags(lib.held_object.get_external_deps(), state, depends, include_rpath,
if hasattr(lib, 'held_object'):
lib = lib.held_object
ldflags.update(self._get_link_args(state, lib, depends, include_rpath))
libdepflags = self._get_dependencies_flags(lib.get_external_deps(), state, depends, include_rpath,
use_gir_args)
cflags.update(libdepflags[0])
ldflags.update(libdepflags[1])

Loading…
Cancel
Save