| 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 28 matching lines...) Expand all Loading... |
| 39 parser.add_option('--template', help='Path to template.') | 39 parser.add_option('--template', help='Path to template.') |
| 40 parser.add_option('--output', help='Path for generated file.') | 40 parser.add_option('--output', help='Path for generated file.') |
| 41 parser.add_option('--stamp', help='Path to touch on success.') | 41 parser.add_option('--stamp', help='Path to touch on success.') |
| 42 parser.add_option('--defines', help='Pre-defines macros', action='append') | 42 parser.add_option('--defines', help='Pre-defines macros', action='append') |
| 43 | 43 |
| 44 options, _ = parser.parse_args(args) | 44 options, _ = parser.parse_args(args) |
| 45 | 45 |
| 46 DoGcc(options) | 46 DoGcc(options) |
| 47 | 47 |
| 48 if options.depfile: | 48 if options.depfile: |
| 49 build_utils.WriteDepfile( | 49 build_utils.WriteDepfile(options.depfile, options.output) |
| 50 options.depfile, | |
| 51 build_utils.GetPythonDependencies()) | |
| 52 | 50 |
| 53 if options.stamp: | 51 if options.stamp: |
| 54 build_utils.Touch(options.stamp) | 52 build_utils.Touch(options.stamp) |
| 55 | 53 |
| 56 | 54 |
| 57 if __name__ == '__main__': | 55 if __name__ == '__main__': |
| 58 sys.exit(main(sys.argv[1:])) | 56 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |