@@ -61,13 +61,13 @@ def git_out(args):
61
61
gn_files = git_out (["ls-files" , "*BUILD.gn" ]).splitlines ()
62
62
63
63
# Matches e.g. | "foo.cpp",|, captures |foo| in group 1.
64
- gn_cpp_re = re .compile (r'^\s*"([^$"]+\.(?:cpp|c|h|mm| S))",$' , re .MULTILINE )
64
+ gn_cpp_re = re .compile (r'^\s*"([^$"]+\.(?:cpp|c|h|S))",$' , re .MULTILINE )
65
65
# Matches e.g. | bar_sources = [ "foo.cpp" ]|, captures |foo| in group 1.
66
66
gn_cpp_re2 = re .compile (
67
- r'^\s*(?:.*_)?sources \+?= \[ "([^$"]+\.(?:cpp|c|h|mm| S))" ]$' , re .MULTILINE
67
+ r'^\s*(?:.*_)?sources \+?= \[ "([^$"]+\.(?:cpp|c|h|S))" ]$' , re .MULTILINE
68
68
)
69
69
# Matches e.g. | foo.cpp|, captures |foo| in group 1.
70
- cmake_cpp_re = re .compile (r"^\s*([A-Za-z_0-9./-]+\.(?:cpp|c|h|mm| S))$" , re .MULTILINE )
70
+ cmake_cpp_re = re .compile (r"^\s*([A-Za-z_0-9./-]+\.(?:cpp|c|h|S))$" , re .MULTILINE )
71
71
72
72
changes_by_rev = defaultdict (lambda : defaultdict (lambda : defaultdict (list )))
73
73
@@ -108,12 +108,6 @@ def get_sources(source_re, text):
108
108
109
109
gn_cpp = get_sources (gn_cpp_re , open (gn_file ).read ())
110
110
gn_cpp |= get_sources (gn_cpp_re2 , open (gn_file ).read ())
111
-
112
- sources_file = os .path .join (os .path .dirname (gn_file ), "sources.gni" )
113
- if os .path .exists (sources_file ):
114
- gn_cpp |= get_sources (gn_cpp_re , open (sources_file ).read ())
115
- gn_cpp |= get_sources (gn_cpp_re2 , open (sources_file ).read ())
116
-
117
111
cmake_cpp = get_sources (cmake_cpp_re , open (cmake_file ).read ())
118
112
119
113
if gn_cpp == cmake_cpp :
0 commit comments