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

Side by Side Diff: tools/ninja.py

Issue 2899803002: Adds deprecation messages for MIPS cross-builds (Closed)
Patch Set: Created 3 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 | « tools/gn.py ('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 # 2 #
3 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 import multiprocessing 7 import multiprocessing
8 import optparse 8 import optparse
9 import os 9 import os
10 import subprocess 10 import subprocess
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 56
57 def ProcessOsOption(os_name): 57 def ProcessOsOption(os_name):
58 if os_name == 'host': 58 if os_name == 'host':
59 return HOST_OS 59 return HOST_OS
60 return os_name 60 return os_name
61 61
62 62
63 def ProcessOptions(options, args): 63 def ProcessOptions(options, args):
64 if options.arch == 'all': 64 if options.arch == 'all':
65 options.arch = 'ia32,x64,simarm,simarm64,simmips,simdbc64' 65 options.arch = 'ia32,x64,simarm,simarm64,simdbc64'
66 if options.mode == 'all': 66 if options.mode == 'all':
67 options.mode = 'debug,release,product' 67 options.mode = 'debug,release,product'
68 if options.os == 'all': 68 if options.os == 'all':
69 options.os = 'host,android' 69 options.os = 'host,android'
70 options.mode = options.mode.split(',') 70 options.mode = options.mode.split(',')
71 options.arch = options.arch.split(',') 71 options.arch = options.arch.split(',')
72 options.os = options.os.split(',') 72 options.os = options.os.split(',')
73 for mode in options.mode: 73 for mode in options.mode:
74 if not mode in ['debug', 'release', 'product']: 74 if not mode in ['debug', 'release', 'product']:
75 print "Unknown mode %s" % mode 75 print "Unknown mode %s" % mode
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 if process.returncode != 0: 218 if process.returncode != 0:
219 print ("Tried to run goma_ctl.py, but it failed. Try running it manually: " 219 print ("Tried to run goma_ctl.py, but it failed. Try running it manually: "
220 + "\n\t" + ' '.join(goma_ctl_command)) 220 + "\n\t" + ' '.join(goma_ctl_command))
221 return False 221 return False
222 goma_started = True 222 goma_started = True
223 return True 223 return True
224 224
225 225
226 # Returns a tuple (build_config, command to run, whether goma is used) 226 # Returns a tuple (build_config, command to run, whether goma is used)
227 def BuildOneConfig(options, targets, target_os, mode, arch): 227 def BuildOneConfig(options, targets, target_os, mode, arch):
228 if arch.startswith('mips'):
229 bold = '\033[1m'
230 reset = '\033[0m'
231 print(bold + "Warning: MIPS architectures are unlikely to be supported in "
232 "upcoming releases. Please consider using another architecture "
233 "and/or file an issue explaining your specific use of and need for "
234 "MIPS support." + reset)
228 build_config = utils.GetBuildConf(mode, arch, target_os) 235 build_config = utils.GetBuildConf(mode, arch, target_os)
229 out_dir = utils.GetBuildRoot(HOST_OS, mode, arch, target_os) 236 out_dir = utils.GetBuildRoot(HOST_OS, mode, arch, target_os)
230 using_goma = False 237 using_goma = False
231 if ShouldRunGN(out_dir): 238 if ShouldRunGN(out_dir):
232 RunGN(target_os, mode, arch) 239 RunGN(target_os, mode, arch)
233 command = ['ninja', '-C', out_dir] 240 command = ['ninja', '-C', out_dir]
234 if options.verbose: 241 if options.verbose:
235 command += ['-v'] 242 command += ['-v']
236 if UseGoma(out_dir): 243 if UseGoma(out_dir):
237 if EnsureGomaStarted(out_dir): 244 if EnsureGomaStarted(out_dir):
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 if r != 0: 315 if r != 0:
309 return 1 316 return 1
310 317
311 endtime = time.time() 318 endtime = time.time()
312 print ("The build took %.3f seconds" % (endtime - starttime)) 319 print ("The build took %.3f seconds" % (endtime - starttime))
313 return 0 320 return 0
314 321
315 322
316 if __name__ == '__main__': 323 if __name__ == '__main__':
317 sys.exit(Main()) 324 sys.exit(Main())
OLDNEW
« no previous file with comments | « tools/gn.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698