| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # | 2 # |
| 3 # Copyright 2013 The Chromium Authors. All rights reserved. | 3 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import optparse | 7 import optparse |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 | 31 |
| 32 def main(): | 32 def main(): |
| 33 parser = optparse.OptionParser() | 33 parser = optparse.OptionParser() |
| 34 parser.add_option('--include-path', help='Include path for gcc.') | 34 parser.add_option('--include-path', help='Include path for gcc.') |
| 35 parser.add_option('--template', help='Path to template.') | 35 parser.add_option('--template', help='Path to template.') |
| 36 parser.add_option('--output', help='Path for generated file.') | 36 parser.add_option('--output', help='Path for generated file.') |
| 37 parser.add_option('--stamp', help='Path to touch on success.') | 37 parser.add_option('--stamp', help='Path to touch on success.') |
| 38 parser.add_option('--defines', help='Pre-defines macros', action='append') | 38 parser.add_option('--defines', help='Pre-defines macros', action='append') |
| 39 | 39 |
| 40 # TODO(newt): remove this once http://crbug.com/177552 is fixed in ninja. | |
| 41 parser.add_option('--ignore', help='Ignored.') | |
| 42 | |
| 43 options, _ = parser.parse_args() | 40 options, _ = parser.parse_args() |
| 44 | 41 |
| 45 DoGcc(options) | 42 DoGcc(options) |
| 46 | 43 |
| 47 if options.stamp: | 44 if options.stamp: |
| 48 build_utils.Touch(options.stamp) | 45 build_utils.Touch(options.stamp) |
| 49 | 46 |
| 50 | 47 |
| 51 if __name__ == '__main__': | 48 if __name__ == '__main__': |
| 52 sys.exit(main()) | 49 sys.exit(main()) |
| OLD | NEW |