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 '../../third_party/v8/src/d8.gyp:d8', | |
16 ], | 15 ], |
| 16 'conditions': [ |
| 17 ['dart_want_separate_host_toolset!=1', { |
| 18 'dependencies': [ |
| 19 '../../third_party/v8/src/d8.gyp:d8', |
| 20 ] |
| 21 } |
| 22 ] |
| 23 ], |
| 24 |
17 'actions': [ | 25 'actions': [ |
18 { | 26 { |
19 'action_name': 'build_dart2js', | 27 'action_name': 'build_dart2js', |
20 'inputs': [ | 28 'inputs': [ |
21 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 29 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
22 'build_helper.dart', | 30 'build_helper.dart', |
23 ], | 31 ], |
24 'outputs': [ | 32 'outputs': [ |
25 '<(PRODUCT_DIR)/dart2js', | 33 '<(PRODUCT_DIR)/dart2js', |
26 '<(PRODUCT_DIR)/dart2js.bat', | 34 '<(PRODUCT_DIR)/dart2js.bat', |
(...skipping 12 matching lines...) Expand all Loading... |
39 # GYP so it doesn't work. | 47 # GYP so it doesn't work. |
40 '<(PRODUCT_DIR)', | 48 '<(PRODUCT_DIR)', |
41 '<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 49 '<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
42 'dart2js', | 50 'dart2js', |
43 'dart2js_developer', | 51 'dart2js_developer', |
44 'dartdoc', | 52 'dartdoc', |
45 '<(dart_dir)', | 53 '<(dart_dir)', |
46 ], | 54 ], |
47 }, | 55 }, |
48 ], | 56 ], |
| 57 'conditions': [ |
| 58 ['dart_want_separate_host_toolset==1', { |
| 59 'toolsets': ['host'], |
| 60 }, { |
| 61 'toolsets': ['target'], |
| 62 }] |
| 63 ], |
49 }, | 64 }, |
50 ], | 65 ], |
51 } | 66 } |
OLD | NEW |