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

Side by Side Diff: tools/gn.py

Issue 2519133005: Enable SecureSocket on Fuchsia using BoringSSL (Closed)
Patch Set: . Created 4 years 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
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 subprocess 9 import subprocess
10 import sys 10 import sys
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 gn_args['dart_target_arch'] = arch 71 gn_args['dart_target_arch'] = arch
72 gn_args['target_cpu'] = target_cpu_for_arch(arch, target_os) 72 gn_args['target_cpu'] = target_cpu_for_arch(arch, target_os)
73 gn_args['host_cpu'] = host_cpu_for_arch(arch) 73 gn_args['host_cpu'] = host_cpu_for_arch(arch)
74 74
75 # See: runtime/observatory/BUILD.gn. 75 # See: runtime/observatory/BUILD.gn.
76 # This allows the standalone build of the observatory to fall back on 76 # This allows the standalone build of the observatory to fall back on
77 # dart_bootstrap if the prebuilt SDK doesn't work. 77 # dart_bootstrap if the prebuilt SDK doesn't work.
78 gn_args['dart_host_pub_exe'] = "" 78 gn_args['dart_host_pub_exe'] = ""
79 79
80 # For Fuchsia support, the default is to not compile in the root
81 # certificates.
82 gn_args['dart_use_fallback_root_certificates'] = True
83
84 gn_args['dart_zlib_path'] = "//runtime/bin/zlib" 80 gn_args['dart_zlib_path'] = "//runtime/bin/zlib"
85 81
86 # Use tcmalloc only when targeting Linux and when not using ASAN. 82 # Use tcmalloc only when targeting Linux and when not using ASAN.
87 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux' 83 gn_args['dart_use_tcmalloc'] = (gn_args['target_os'] == 'linux'
88 and not args.asan) 84 and not args.asan)
89 85
90 # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying 86 # Force -mfloat-abi=hard and -mfpu=neon on Linux as we're specifying
91 # a gnueabihf compiler in //build/toolchain/linux BUILD.gn. 87 # a gnueabihf compiler in //build/toolchain/linux BUILD.gn.
92 # TODO(zra): This will likely need some adjustment to build for armv6 etc. 88 # TODO(zra): This will likely need some adjustment to build for armv6 etc.
93 hard_float = (gn_args['target_cpu'].startswith('arm') and 89 hard_float = (gn_args['target_cpu'].startswith('arm') and
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 return 1 343 return 1
348 344
349 endtime = time.time() 345 endtime = time.time()
350 if args.verbose: 346 if args.verbose:
351 print ("GN Time: %.3f seconds" % (endtime - starttime)) 347 print ("GN Time: %.3f seconds" % (endtime - starttime))
352 return 0 348 return 0
353 349
354 350
355 if __name__ == '__main__': 351 if __name__ == '__main__':
356 sys.exit(main(sys.argv)) 352 sys.exit(main(sys.argv))
OLDNEW
« runtime/tests/vm/dart/hello_fuchsia_test.dart ('K') | « runtime/vm/os_fuchsia.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698