| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 holds a list of reasons why a particular build needs to be clobbered | 7 This file holds a 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 This script runs every build as a hook. If it detects that the build should | 10 This script runs every build as a hook. If it detects that the build should |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 '/b/build/slave/ios_rel_device/build/src/xcodebuild/Release-iphoneos' | 160 '/b/build/slave/ios_rel_device/build/src/xcodebuild/Release-iphoneos' |
| 161 | 161 |
| 162 Keep this function in sync with tools/build/scripts/slave/compile.py | 162 Keep this function in sync with tools/build/scripts/slave/compile.py |
| 163 """ | 163 """ |
| 164 ret = None | 164 ret = None |
| 165 if build_tool == 'xcode': | 165 if build_tool == 'xcode': |
| 166 ret = os.path.join(SRC_DIR, 'xcodebuild', | 166 ret = os.path.join(SRC_DIR, 'xcodebuild', |
| 167 target + ('-iphoneos' if is_iphone else '')) | 167 target + ('-iphoneos' if is_iphone else '')) |
| 168 elif build_tool == 'make': | 168 elif build_tool == 'make': |
| 169 ret = os.path.join(SRC_DIR, 'out', target) | 169 ret = os.path.join(SRC_DIR, 'out', target) |
| 170 elif build_tool == 'ninja': | 170 elif build_tool in ['ninja', 'ninja-ios']: |
| 171 ret = os.path.join(SRC_DIR, 'out', target) | 171 ret = os.path.join(SRC_DIR, 'out', target) |
| 172 elif build_tool in ['msvs', 'vs', 'ib']: | 172 elif build_tool in ['msvs', 'vs', 'ib']: |
| 173 ret = os.path.join(SRC_DIR, 'build', target) | 173 ret = os.path.join(SRC_DIR, 'build', target) |
| 174 elif build_tool == 'scons': | 174 elif build_tool == 'scons': |
| 175 ret = os.path.join(SRC_DIR, 'sconsbuild', target) | 175 ret = os.path.join(SRC_DIR, 'sconsbuild', target) |
| 176 else: | 176 else: |
| 177 raise NotImplementedError('Unexpected GYP_GENERATORS (%s)' % build_tool) | 177 raise NotImplementedError('Unexpected GYP_GENERATORS (%s)' % build_tool) |
| 178 return os.path.abspath(ret) | 178 return os.path.abspath(ret) |
| 179 | 179 |
| 180 | 180 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 gyp_helper.apply_chromium_gyp_env() | 226 gyp_helper.apply_chromium_gyp_env() |
| 227 | 227 |
| 228 for target in ('Debug', 'Release', 'Debug_x64', 'Release_x64'): | 228 for target in ('Debug', 'Release', 'Debug_x64', 'Release_x64'): |
| 229 set_up_landmines(target) | 229 set_up_landmines(target) |
| 230 | 230 |
| 231 return 0 | 231 return 0 |
| 232 | 232 |
| 233 | 233 |
| 234 if __name__ == '__main__': | 234 if __name__ == '__main__': |
| 235 sys.exit(main()) | 235 sys.exit(main()) |
| OLD | NEW |