OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'dart_dir': '../..', | 7 'dart_dir': '../..', |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'dart2js', | 11 'target_name': 'dart2js', |
12 'type': 'none', | 12 'type': 'none', |
13 'dependencies': [ | 13 'dependencies': [ |
14 '../../runtime/dart-runtime.gyp:dart', | 14 '../../runtime/dart-runtime.gyp:dart', |
15 ], | 15 ], |
16 'actions': [ | 16 'actions': [ |
17 { | 17 { |
18 'action_name': 'generate_dart2js_snapshot', | 18 'action_name': 'generate_dart2js_snapshot', |
19 'inputs': [ | 19 'inputs': [ |
20 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 20 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
21 '../../sdk/lib/_internal/libraries.dart', | 21 '../../sdk/lib/_internal/libraries.dart', |
22 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/
lib/_internal/compiler", "../../runtime/lib"])', | 22 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/
lib/_internal/compiler", "../../runtime/lib"])', |
23 ], | 23 ], |
24 'outputs': [ | 24 'outputs': [ |
25 '<(PRODUCT_DIR)/dart2js.snapshot', | 25 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', |
26 ], | 26 ], |
27 'action': [ | 27 'action': [ |
28 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 28 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
29 # Note: we don't store the snapshot in the location where | 29 'create_snapshot.dart', |
30 # the dart2js script is looking for it. The motivation | 30 '--output_dir=<(SHARED_INTERMEDIATE_DIR)', |
31 # for that is to support an incremental development model | 31 '--dart2js_main=sdk/lib/_internal/compiler/implementation/dart2js.da
rt', |
32 # for dart2js compiler engineers. However, we install the | |
33 # snapshot in the proper location when building the SDK. | |
34 '--generate-script-snapshot=<(PRODUCT_DIR)/dart2js.snapshot', | |
35 '../../sdk/lib/_internal/compiler/implementation/dart2js.dart', | |
36 ], | 32 ], |
37 }, | 33 }, |
38 ], | 34 ], |
39 }, | 35 }, |
40 ], | 36 ], |
41 } | 37 } |
OLD | NEW |