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 'conditions': [ |
| 7 ['OS=="win"', {'variables': { 'exec_suffix': '.exe', }}], |
| 8 ['OS!="win"', {'variables': { 'exec_suffix': '', }}], |
| 9 ], |
6 'targets': [ | 10 'targets': [ |
7 { | 11 { |
8 'target_name': 'dart2js', | 12 'target_name': 'dart2js', |
9 'type': 'none', | 13 'type': 'none', |
10 'dependencies': [ | 14 'dependencies': [ |
11 '../../runtime/dart-runtime.gyp:dart', | 15 '../../runtime/dart-runtime.gyp:dart', |
12 ], | 16 ], |
13 'actions': [ | 17 'actions': [ |
14 { | 18 { |
15 'action_name': 'build_dart2js', | 19 'action_name': 'build_dart2js', |
16 'inputs': [ | 20 'inputs': [ |
17 '<(PRODUCT_DIR)/dart', | 21 '<(PRODUCT_DIR)/dart<(exec_suffix)', |
18 'build_helper.dart', | 22 'build_helper.dart', |
19 ], | 23 ], |
20 'outputs': [ | 24 'outputs': [ |
21 '<(PRODUCT_DIR)/dart2js', | 25 '<(PRODUCT_DIR)/dart2js', |
22 '<(PRODUCT_DIR)/dart2js_developer', | 26 '<(PRODUCT_DIR)/dart2js_developer', |
23 ], | 27 ], |
24 'action': [ | 28 'action': [ |
25 '<(PRODUCT_DIR)/dart', | 29 '<(PRODUCT_DIR)/dart<(exec_suffix)', |
26 'build_helper.dart', | 30 'build_helper.dart', |
27 '<(PRODUCT_DIR)', | 31 '<(PRODUCT_DIR)', |
28 'dart', | 32 'dart', |
29 'dart2js', | 33 'dart2js', |
30 'dart2js_developer', | 34 'dart2js_developer', |
31 ], | 35 ], |
32 }, | 36 }, |
33 ], | 37 ], |
34 }, | 38 }, |
35 ], | 39 ], |
36 } | 40 } |
OLD | NEW |