| 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': 'build_dart2js', | |
| 19 'inputs': [ | |
| 20 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | |
| 21 'build_helper.dart', | |
| 22 ], | |
| 23 'outputs': [ | |
| 24 '<(PRODUCT_DIR)/dart2js', | |
| 25 '<(PRODUCT_DIR)/dart2js.bat', | |
| 26 '<(PRODUCT_DIR)/dart2js_developer', | |
| 27 '<(PRODUCT_DIR)/dart2js_developer.bat', | |
| 28 '<(PRODUCT_DIR)/dartdoc', | |
| 29 '<(PRODUCT_DIR)/dartdoc.bat', | |
| 30 ], | |
| 31 'action': [ | |
| 32 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | |
| 33 '--enable-checked-mode', | |
| 34 'build_helper.dart', | |
| 35 # Note: it would seem more straight-forward to pass in | |
| 36 # '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)'. | |
| 37 # Unfortunately, there is some strange interaction with | |
| 38 # GYP so it doesn't work. | |
| 39 '<(PRODUCT_DIR)', | |
| 40 '<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | |
| 41 'dart2js', | |
| 42 'dart2js_developer', | |
| 43 'dartdoc', | |
| 44 '<(dart_dir)', | |
| 45 ], | |
| 46 }, | |
| 47 { | |
| 48 'action_name': 'generate_dart2js_snapshot', | 18 'action_name': 'generate_dart2js_snapshot', |
| 49 'inputs': [ | 19 'inputs': [ |
| 50 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX)
', | 20 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX)
', |
| 51 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 21 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| 52 '../../sdk/lib/_internal/libraries.dart', | 22 '../../sdk/lib/_internal/libraries.dart', |
| 53 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/
lib/_internal/compiler", "../../runtime/lib"])', | 23 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/
lib/_internal/compiler", "../../runtime/lib"])', |
| 54 ], | 24 ], |
| 55 'outputs': [ | 25 'outputs': [ |
| 56 '<(PRODUCT_DIR)/dart2js.snapshot', | 26 '<(PRODUCT_DIR)/dart2js.snapshot', |
| 57 ], | 27 ], |
| 58 'action': [ | 28 'action': [ |
| 59 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX)
', | 29 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen_snapshot<(EXECUTABLE_SUFFIX)
', |
| 60 # Note: we don't store the snapshot in the location where | 30 # Note: we don't store the snapshot in the location where |
| 61 # the dart2js script is looking for it. The motivation | 31 # the dart2js script is looking for it. The motivation |
| 62 # for that is to support an incremental development model | 32 # for that is to support an incremental development model |
| 63 # for dart2js compiler engineers. However, we install the | 33 # for dart2js compiler engineers. However, we install the |
| 64 # snapshot in the proper location when building the SDK. | 34 # snapshot in the proper location when building the SDK. |
| 65 '--script_snapshot=<(PRODUCT_DIR)/dart2js.snapshot', | 35 '--script_snapshot=<(PRODUCT_DIR)/dart2js.snapshot', |
| 66 '../../sdk/lib/_internal/compiler/implementation/dart2js.dart', | 36 '../../sdk/lib/_internal/compiler/implementation/dart2js.dart', |
| 67 ], | 37 ], |
| 68 }, | 38 }, |
| 69 ], | 39 ], |
| 70 }, | 40 }, |
| 71 ], | 41 ], |
| 72 } | 42 } |
| OLD | NEW |