6 def generate(output
, *input_paths
):
8 This file generates a ThirdPartyPaths.cpp file from the ThirdPartyPaths.txt
9 file in /tools/rewriting, which is used by the Clang Plugin to help identify
10 sources which should be ignored.
15 for path
in input_paths
:
17 lines
.update(f
.readlines())
21 if line
.endswith("/"):
24 tpp_strings
= ",\n ".join([json
.dumps(tpp
) for tpp
in sorted(tpp_list
)])
28 /* THIS FILE IS GENERATED BY ThirdPartyPaths.py - DO NOT EDIT */
32 const char* MOZ_THIRD_PARTY_PATHS[] = {
36 extern const uint32_t MOZ_THIRD_PARTY_PATHS_COUNT = %d;
39 % (tpp_strings
, len(tpp_list
))