From c72cefaac47eebbf1587e1cc56c65f20950c3340 Mon Sep 17 00:00:00 2001 From: Nicolas Schneider Date: Sun, 13 Mar 2016 19:07:44 +0100 Subject: [PATCH] only include known source file extensions into sources list --- mesonbuild/backend/vs2010backend.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index a6ee9dd99..41fd7cc2a 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -226,11 +226,14 @@ class Vs2010Backend(backends.Backend): headers.append(i) elif self.environment.is_object(i): objects.append(i) - else: + elif self.environment.is_source(i): sources.append(i) lang = self.lang_from_source_file(i) if lang not in languages: 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) def target_to_build_root(self, target):