OLD | NEW |
---|---|
(Empty) | |
1 #!/usr/bin/env python | |
2 # | |
3 # Copyright 2016 Google Inc. | |
4 # | |
5 # Use of this source code is governed by a BSD-style license that can be | |
6 # found in the LICENSE file. | |
7 | |
8 import sys | |
9 import os | |
10 import os.path | |
11 | |
12 blacklist = [ | |
13 'SkJSONCPP.h', | |
14 'GrGLConfig_chrome.h', | |
15 ] | |
16 | |
17 headers = [] | |
18 for d in sys.argv[2:]: | |
19 headers.extend([f for f in os.listdir(d) | |
20 if os.path.isfile(os.path.join(d,f))]) | |
21 with open(sys.argv[1], "w") as f: | |
22 f.write('// skia.h generated by GN.\n') | |
23 f.write('#ifndef skia_h_DEFINED\n') | |
24 f.write('#define skia_h_DEFINED\n') | |
25 for h in headers: | |
26 skip = False | |
hal.canary
2016/07/26 18:54:09
for h in headers:
if h in blacklist:
continu
mtklein
2016/07/26 18:55:41
Done.
| |
27 for term in blacklist: | |
28 if term in h: | |
29 skip = True | |
30 if not skip: | |
31 f.write('#include "' + h + '"\n') | |
32 f.write('#endif//skia_h_DEFINED\n') | |
OLD | NEW |