Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(395)

Side by Side Diff: build/landmines.py

Issue 14577007: Gyp changes for ninja iOS build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set generator inside mac_build Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/ios/mac_build.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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())
OLDNEW
« no previous file with comments | « build/ios/mac_build.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698