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