blob: 325124fc22c7a45ad3c82f72d4fee51034459361 [file] [log] [blame]
mtklein1211e0c2016-07-26 13:55:45 -07001#!/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
8import sys
9import os
10import os.path
11
12blacklist = [
13 'GrGLConfig_chrome.h',
14]
15
16headers = []
17for d in sys.argv[2:]:
18 headers.extend([f for f in os.listdir(d)
19 if os.path.isfile(os.path.join(d,f))])
20with open(sys.argv[1], "w") as f:
21 f.write('// skia.h generated by GN.\n')
22 f.write('#ifndef skia_h_DEFINED\n')
23 f.write('#define skia_h_DEFINED\n')
24 for h in headers:
25 if h not in blacklist:
26 f.write('#include "' + h + '"\n')
27 f.write('#endif//skia_h_DEFINED\n')