mtklein | 1211e0c | 2016-07-26 13:55:45 -0700 | [diff] [blame] | 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 |
mtklein | 1211e0c | 2016-07-26 13:55:45 -0700 | [diff] [blame] | 9 | |
mtklein | 1211e0c | 2016-07-26 13:55:45 -0700 | [diff] [blame] | 10 | with open(sys.argv[1], "w") as f: |
| 11 | f.write('// skia.h generated by GN.\n') |
| 12 | f.write('#ifndef skia_h_DEFINED\n') |
| 13 | f.write('#define skia_h_DEFINED\n') |
mtklein | ada5a44 | 2016-08-02 14:28:26 -0700 | [diff] [blame] | 14 | for h in sys.argv[2:]: |
| 15 | f.write('#include "' + h + '"\n') |
mtklein | 1211e0c | 2016-07-26 13:55:45 -0700 | [diff] [blame] | 16 | f.write('#endif//skia_h_DEFINED\n') |