Make custom command sources slightly more useful

pull/4547/head
Daniel Mensinger 6 years ago
parent ca808a0702
commit 9d025f1374
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 8
      mesonbuild/backend/backends.py

@ -1177,9 +1177,15 @@ class Backend:
source_list += [os.path.join(self.environment.get_source_dir(), i)]
source_list = list(map(lambda x: os.path.normpath(x), source_list))
compiler = []
if isinstance(target, build.CustomTarget):
compiler = target.command
if isinstance(compiler, str):
compiler = [compiler]
return [{
'language': 'unknown',
'compiler': [],
'compiler': compiler,
'parameters': [],
'sources': source_list,
'generated_sources': []

Loading…
Cancel
Save