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 # These variables are used in the creation of the .vcproj file on |
| 8 # Windows. |
| 9 'cygwin_dir': '../../third_party/cygwin', |
| 10 }, |
6 'targets': [ | 11 'targets': [ |
7 { | 12 { |
8 'target_name': 'api_docs', | 13 'target_name': 'api_docs', |
9 'type': 'none', | 14 'type': 'none', |
10 'dependencies': [ | 15 'dependencies': [ |
11 '../../frog/dart-frog.gyp:frog', | 16 '../../frog/dart-frog.gyp:frog', |
12 '../../runtime/dart-runtime.gyp:dart', | 17 '../../runtime/dart-runtime.gyp:dart', |
13 ], | 18 ], |
| 19 'conditions': [ |
| 20 ['OS=="win"', { |
| 21 'msvs_cygwin_dirs': ['<(cygwin_dir)'], |
| 22 }], |
| 23 ], |
14 'actions': [ | 24 'actions': [ |
15 { | 25 { |
16 'action_name': 'run_apidoc', | 26 'action_name': 'run_apidoc', |
17 'inputs': [ | 27 'inputs': [ |
18 '<(PRODUCT_DIR)/dart', | 28 '<(PRODUCT_DIR)/dart', |
19 '<!@(["python", "scripts/list_files.py"])', | 29 '<!@(["python", "scripts/list_files.py"])', |
20 ], | 30 ], |
21 'outputs': [ | 31 'outputs': [ |
22 '<(PRODUCT_DIR)/api_docs', | 32 '<(PRODUCT_DIR)/api_docs', |
23 ], | 33 ], |
24 'action': [ | 34 'action': [ |
25 '<(PRODUCT_DIR)/dart', | 35 '<(PRODUCT_DIR)/dart', |
26 'apidoc.dart', | 36 'apidoc.dart', |
27 '--out=<(PRODUCT_DIR)/api_docs', | 37 '--out=<(PRODUCT_DIR)/api_docs', |
28 '--mode=live-nav' | 38 '--mode=live-nav' |
29 ], | 39 ], |
30 }, | 40 }, |
31 ], | 41 ], |
32 } | 42 } |
33 ], | 43 ], |
34 } | 44 } |
OLD | NEW |