add everything that is not an object or source file to headers list

pull/441/head
Nicolas Schneider 9 years ago
parent c72cefaac4
commit 1f907e75da
  1. 8
      mesonbuild/backend/vs2010backend.py

@ -222,9 +222,7 @@ class Vs2010Backend(backends.Backend):
objects = [] objects = []
languages = [] languages = []
for i in srclist: for i in srclist:
if self.environment.is_header(i): if self.environment.is_object(i):
headers.append(i)
elif self.environment.is_object(i):
objects.append(i) objects.append(i)
elif self.environment.is_source(i): elif self.environment.is_source(i):
sources.append(i) sources.append(i)
@ -232,8 +230,8 @@ class Vs2010Backend(backends.Backend):
if lang not in languages: if lang not in languages:
languages.append(lang) languages.append(lang)
else: else:
# TODO: what to do with those? E.g. generated header files with custom extension (test case 64) # Everything that is not an object or source file is considered a header.
pass headers.append(i)
return (sources, headers, objects, languages) return (sources, headers, objects, languages)
def target_to_build_root(self, target): def target_to_build_root(self, target):

Loading…
Cancel
Save