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

Side by Side Diff: tools/gn.py

Issue 2964133002: Exclude Observatory assets from PRODUCT build dart, dart_precompiled_runtime (Closed)
Patch Set: Addressed comments Created 3 years, 5 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 | « third_party/tcmalloc/BUILD.gn ('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 2016 The Dart project authors. All rights reserved. 2 # Copyright 2016 The Dart project 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 import argparse 6 import argparse
7 import multiprocessing 7 import multiprocessing
8 import os 8 import os
9 import shutil 9 import shutil
10 import subprocess 10 import subprocess
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 raise Exception("GN support for armv5te unimplemented") 182 raise Exception("GN support for armv5te unimplemented")
183 183
184 gn_args['is_debug'] = mode == 'debug' 184 gn_args['is_debug'] = mode == 'debug'
185 gn_args['is_release'] = mode == 'release' 185 gn_args['is_release'] = mode == 'release'
186 gn_args['is_product'] = mode == 'product' 186 gn_args['is_product'] = mode == 'product'
187 gn_args['dart_debug'] = mode == 'debug' 187 gn_args['dart_debug'] = mode == 'debug'
188 188
189 # This setting is only meaningful for Flutter. Standalone builds of the VM 189 # This setting is only meaningful for Flutter. Standalone builds of the VM
190 # should leave this set to 'develop', which causes the build to defer to 190 # should leave this set to 'develop', which causes the build to defer to
191 # 'is_debug', 'is_release' and 'is_product'. 191 # 'is_debug', 'is_release' and 'is_product'.
192 gn_args['dart_runtime_mode'] = 'develop' 192 if mode == 'product':
193 gn_args['dart_runtime_mode'] = 'release'
194 else:
195 gn_args['dart_runtime_mode'] = 'develop'
193 196
194 dont_use_clang = DontUseClang(args, gn_args['target_os'], 197 dont_use_clang = DontUseClang(args, gn_args['target_os'],
195 gn_args['host_cpu'], 198 gn_args['host_cpu'],
196 gn_args['target_cpu']) 199 gn_args['target_cpu'])
197 gn_args['is_clang'] = args.clang and not dont_use_clang 200 gn_args['is_clang'] = args.clang and not dont_use_clang
198 201
199 gn_args['is_asan'] = args.asan and gn_args['is_clang'] 202 gn_args['is_asan'] = args.asan and gn_args['is_clang']
200 gn_args['is_msan'] = args.msan and gn_args['is_clang'] 203 gn_args['is_msan'] = args.msan and gn_args['is_clang']
201 gn_args['is_tsan'] = args.tsan and gn_args['is_clang'] 204 gn_args['is_tsan'] = args.tsan and gn_args['is_clang']
202 205
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 return 1 465 return 1
463 466
464 endtime = time.time() 467 endtime = time.time()
465 if args.verbose: 468 if args.verbose:
466 print ("GN Time: %.3f seconds" % (endtime - starttime)) 469 print ("GN Time: %.3f seconds" % (endtime - starttime))
467 return 0 470 return 0
468 471
469 472
470 if __name__ == '__main__': 473 if __name__ == '__main__':
471 sys.exit(Main(sys.argv)) 474 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « third_party/tcmalloc/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698