| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """ | 6 """ |
| 7 This file emits the list of reasons why a particular build needs to be clobbered | 7 This file emits the list of reasons why a particular build needs to be clobbered |
| 8 (or a list of 'landmines'). | 8 (or a list of 'landmines'). |
| 9 """ | 9 """ |
| 10 | 10 |
| 11 import optparse | 11 import optparse |
| 12 import sys | 12 import sys |
| 13 | 13 |
| 14 import landmine_utils | 14 import landmine_utils |
| 15 | 15 |
| 16 | 16 |
| 17 builder = landmine_utils.platform | 17 builder = landmine_utils.builder |
| 18 distributor = landmine_utils.distributor | 18 distributor = landmine_utils.distributor |
| 19 gyp_defines = landmine_utils.gyp_defines | 19 gyp_defines = landmine_utils.gyp_defines |
| 20 gyp_msvs_version = landmine_utils.gyp_msvs_version | 20 gyp_msvs_version = landmine_utils.gyp_msvs_version |
| 21 platform = landmine_utils.platform | 21 platform = landmine_utils.platform |
| 22 | 22 |
| 23 | 23 |
| 24 def print_landmines(target): | 24 def print_landmines(target): |
| 25 """ | 25 """ |
| 26 ALL LANDMINES ARE EMITTED FROM HERE. | 26 ALL LANDMINES ARE EMITTED FROM HERE. |
| 27 target can be one of {'Release', 'Debug', 'Debug_x64', 'Release_x64'}. | 27 target can be one of {'Release', 'Debug', 'Debug_x64', 'Release_x64'}. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 57 | 57 |
| 58 if args: | 58 if args: |
| 59 parser.error('Unknown arguments %s' % args) | 59 parser.error('Unknown arguments %s' % args) |
| 60 | 60 |
| 61 print_landmines(options.target) | 61 print_landmines(options.target) |
| 62 return 0 | 62 return 0 |
| 63 | 63 |
| 64 | 64 |
| 65 if __name__ == '__main__': | 65 if __name__ == '__main__': |
| 66 sys.exit(main()) | 66 sys.exit(main()) |
| OLD | NEW |