aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/echo_headers.py
blob: 059838a6ff2b636b04cda3d4d725a2ad18a782a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
#
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import sys

with open(sys.argv[1], "w") as f:
  f.write('// skia.h generated by GN.\n')
  f.write('#ifndef skia_h_DEFINED\n')
  f.write('#define skia_h_DEFINED\n')
  for h in sys.argv[2:]:
    f.write('#include "' + h + '"\n')
  f.write('#endif//skia_h_DEFINED\n')