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

Side by Side Diff: tools/build.py

Issue 1679873002: Update tools/build.py --mode=all to include product. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | 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) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, 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 7
8 import optparse 8 import optparse
9 import os 9 import os
10 import re 10 import re
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 def ProcessOsOption(os_name): 83 def ProcessOsOption(os_name):
84 if os_name == 'host': 84 if os_name == 'host':
85 return HOST_OS 85 return HOST_OS
86 return os_name 86 return os_name
87 87
88 88
89 def ProcessOptions(options, args): 89 def ProcessOptions(options, args):
90 if options.arch == 'all': 90 if options.arch == 'all':
91 options.arch = 'ia32,x64,simarm,simmips,simarm64' 91 options.arch = 'ia32,x64,simarm,simmips,simarm64'
92 if options.mode == 'all': 92 if options.mode == 'all':
93 options.mode = 'release,debug' 93 options.mode = 'debug,release,product'
94 if options.os == 'all': 94 if options.os == 'all':
95 options.os = 'host,android' 95 options.os = 'host,android'
96 options.mode = options.mode.split(',') 96 options.mode = options.mode.split(',')
97 options.arch = options.arch.split(',') 97 options.arch = options.arch.split(',')
98 options.os = options.os.split(',') 98 options.os = options.os.split(',')
99 for mode in options.mode: 99 for mode in options.mode:
100 if not mode in ['debug', 'release', 'product']: 100 if not mode in ['debug', 'release', 'product']:
101 print "Unknown mode %s" % mode 101 print "Unknown mode %s" % mode
102 return False 102 return False
103 for arch in options.arch: 103 for arch in options.arch:
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 else: 552 else:
553 if BuildOneConfig(options, target, target_os, 553 if BuildOneConfig(options, target, target_os,
554 mode, arch, cross_build) != 0: 554 mode, arch, cross_build) != 0:
555 return 1 555 return 1
556 556
557 return 0 557 return 0
558 558
559 559
560 if __name__ == '__main__': 560 if __name__ == '__main__':
561 sys.exit(Main()) 561 sys.exit(Main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698