only include known source file extensions into sources list

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

@ -226,11 +226,14 @@ class Vs2010Backend(backends.Backend):
headers.append(i) headers.append(i)
elif self.environment.is_object(i): elif self.environment.is_object(i):
objects.append(i) objects.append(i)
else: elif self.environment.is_source(i):
sources.append(i) sources.append(i)
lang = self.lang_from_source_file(i) lang = self.lang_from_source_file(i)
if lang not in languages: if lang not in languages:
languages.append(lang) languages.append(lang)
else:
# TODO: what to do with those? E.g. generated header files with custom extension (test case 64)
pass
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