OLD | NEW |
1 #!/usr/bin/env dart | 1 #!/usr/bin/env dart |
2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 /// A straightforward script that builds the SDK. | 6 /// A straightforward script that builds the SDK. |
7 /// | 7 /// |
8 /// This would be easy enough to do in a shell script, as we go through the | 8 /// This would be easy enough to do in a shell script, as we go through the |
9 /// command line interface. But being able to build from a Dart library means | 9 /// command line interface. But being able to build from a Dart library means |
10 /// we can call this during code coverage to get more realistic numbers. | 10 /// we can call this during code coverage to get more realistic numbers. |
11 | 11 |
12 import 'dart:io'; | 12 import 'dart:io'; |
13 | 13 |
14 import 'package:dev_compiler/src/compiler/command.dart'; | 14 import 'package:dev_compiler/src/compiler/command.dart'; |
15 | 15 |
16 main(List<String> arguments) { | 16 main(List<String> arguments) async { |
17 var args = ['--no-source-map', '--no-emit-metadata']; | 17 var args = ['--no-source-map', '--no-emit-metadata']; |
18 args.addAll(arguments); | 18 args.addAll(arguments); |
19 args.addAll([ | 19 args.addAll([ |
20 'dart:_runtime', | 20 'dart:_runtime', |
21 'dart:_debugger', | 21 'dart:_debugger', |
22 'dart:_foreign_helper', | 22 'dart:_foreign_helper', |
23 'dart:_interceptors', | 23 'dart:_interceptors', |
24 'dart:_internal', | 24 'dart:_internal', |
25 'dart:_isolate_helper', | 25 'dart:_isolate_helper', |
26 'dart:_js_embedded_names', | 26 'dart:_js_embedded_names', |
(...skipping 16 matching lines...) Expand all Loading... |
43 'dart:typed_data', | 43 'dart:typed_data', |
44 'dart:indexed_db', | 44 'dart:indexed_db', |
45 'dart:html', | 45 'dart:html', |
46 'dart:html_common', | 46 'dart:html_common', |
47 'dart:svg', | 47 'dart:svg', |
48 'dart:web_audio', | 48 'dart:web_audio', |
49 'dart:web_gl', | 49 'dart:web_gl', |
50 'dart:web_sql' | 50 'dart:web_sql' |
51 ]); | 51 ]); |
52 | 52 |
53 var result = compile(args); | 53 var result = await compile(args); |
54 exit(result); | 54 exit(result); |
55 } | 55 } |
OLD | NEW |