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': { | |
7 'dart_dir': '../..', | |
8 }, | |
6 'targets': [ | 9 'targets': [ |
7 { | 10 { |
8 'target_name': 'dart2js', | 11 'target_name': 'dart2js', |
9 'type': 'none', | 12 'type': 'none', |
10 'dependencies': [ | 13 'dependencies': [ |
11 '../../runtime/dart-runtime.gyp:dart', | 14 '../../runtime/dart-runtime.gyp:dart', |
12 ], | 15 ], |
13 'actions': [ | 16 'actions': [ |
14 { | 17 { |
15 'action_name': 'build_dart2js', | 18 'action_name': 'build_dart2js', |
16 'inputs': [ | 19 'inputs': [ |
17 '<(PRODUCT_DIR)/dart', | 20 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
18 'build_helper.dart', | 21 'build_helper.dart', |
19 ], | 22 ], |
20 'outputs': [ | 23 'outputs': [ |
21 '<(PRODUCT_DIR)/dart2js', | 24 '<(PRODUCT_DIR)/dart2js', |
22 '<(PRODUCT_DIR)/dart2js_developer', | 25 '<(PRODUCT_DIR)/dart2js_developer', |
23 ], | 26 ], |
24 'action': [ | 27 'action': [ |
25 '<(PRODUCT_DIR)/dart', | 28 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
29 '--enable-checked-mode', | |
26 'build_helper.dart', | 30 'build_helper.dart', |
31 # Note: it would seem more straight-forward to pass in | |
32 # '<(PRODUCT_DIR)<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)'. | |
ngeoffray
2012/04/24 14:29:46
Should there be a '/' after PRODUCT_DIR?
ahe
2012/04/24 14:55:34
Done.
| |
33 # Unfortunately, there is some strange interaction with | |
34 # GYP so it doesn't work. | |
ngeoffray
2012/04/24 14:29:46
GYP and paths on windows?
ahe
2012/04/24 14:55:34
Nope. The argument simply disappears, at least on
| |
27 '<(PRODUCT_DIR)', | 35 '<(PRODUCT_DIR)', |
28 'dart', | 36 '<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
29 'dart2js', | 37 'dart2js', |
30 'dart2js_developer', | 38 'dart2js_developer', |
39 '<(dart_dir)', | |
31 ], | 40 ], |
32 }, | 41 }, |
33 ], | 42 ], |
34 }, | 43 }, |
35 ], | 44 ], |
36 } | 45 } |
OLD | NEW |