| 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 'script_suffix%': '', | 7 'script_suffix%': '', |
| 8 }, | 8 }, |
| 9 'conditions' : [ | 9 'conditions' : [ |
| 10 ['OS=="win"', { | 10 ['OS=="win"', { |
| 11 'variables' : { | 11 'variables' : { |
| 12 'script_suffix': '.bat', | 12 'script_suffix': '.bat', |
| 13 }, | 13 }, |
| 14 }], | 14 }], |
| 15 ], | 15 ], |
| 16 'targets': [ | 16 'targets': [ |
| 17 { | 17 { |
| 18 'target_name': 'api_docs', | 18 'target_name': 'api_docs', |
| 19 'type': 'none', | 19 'type': 'none', |
| 20 'dependencies': [ | 20 'dependencies': [ |
| 21 '../../utils/compiler/compiler.gyp:dart2js', | 21 '../../utils/compiler/compiler.gyp:dart2js', |
| 22 '../../runtime/dart-runtime.gyp:dart', | 22 '../../runtime/dart-runtime.gyp:dart', |
| 23 '../../pkg/pkg.gyp:pkg_packages', |
| 23 ], | 24 ], |
| 24 'includes': [ | 25 'includes': [ |
| 25 '../../sdk/lib/core/corelib_sources.gypi', | 26 '../../sdk/lib/core/corelib_sources.gypi', |
| 26 ], | 27 ], |
| 27 'actions': [ | 28 'actions': [ |
| 28 { | 29 { |
| 29 'action_name': 'run_apidoc', | 30 'action_name': 'run_apidoc', |
| 30 'inputs': [ | 31 'inputs': [ |
| 31 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 32 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| 32 '<(PRODUCT_DIR)/dart2js.snapshot', | 33 '<(PRODUCT_DIR)/dart2js.snapshot', |
| 33 '<!@(["python", "../../tools/list_files.py", "\\.(css|ico|js|json|pn
g|sh|txt|yaml|py)$", ".", "../../sdk/lib/_internal/dartdoc"])', | 34 '<!@(["python", "../../tools/list_files.py", "\\.(css|ico|js|json|pn
g|sh|txt|yaml|py)$", ".", "../../sdk/lib/_internal/dartdoc"])', |
| 34 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/
lib", "../../runtime/lib", "../../runtime/bin"])', | 35 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../sdk/
lib", "../../runtime/lib", "../../runtime/bin"])', |
| 35 '../../sdk/bin/dart', | 36 '../../sdk/bin/dart', |
| 36 '../../sdk/bin/dart.bat', | 37 '../../sdk/bin/dart.bat', |
| 37 '../../sdk/bin/dart2js', | 38 '../../sdk/bin/dart2js', |
| 38 '../../sdk/bin/dart2js.bat', | 39 '../../sdk/bin/dart2js.bat', |
| 39 ], | 40 ], |
| 40 'outputs': [ | 41 'outputs': [ |
| 41 '<(PRODUCT_DIR)/api_docs/index.html', | 42 '<(PRODUCT_DIR)/api_docs/index.html', |
| 42 '<(PRODUCT_DIR)/api_docs/client-static.js', | 43 '<(PRODUCT_DIR)/api_docs/client-static.js', |
| 43 ], | 44 ], |
| 44 'action': [ | 45 'action': [ |
| 45 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 46 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| 46 'apidoc.dart', | 47 'apidoc.dart', |
| 47 '--out=<(PRODUCT_DIR)/api_docs', | 48 '--out=<(PRODUCT_DIR)/api_docs', |
| 49 '--pkg=<(PRODUCT_DIR)/packages/', |
| 48 '--mode=static', | 50 '--mode=static', |
| 49 '--exclude-lib=dartdoc', | 51 '--exclude-lib=dartdoc', |
| 50 '--exclude-lib=http', | 52 '--exclude-lib=http', |
| 51 '--exclude-lib=oauth2', | 53 '--exclude-lib=oauth2', |
| 52 '--exclude-lib=webdriver', | 54 '--exclude-lib=webdriver', |
| 53 '--include-lib=matcher', | 55 '--include-lib=matcher', |
| 54 '--include-lib=mock', | 56 '--include-lib=mock', |
| 55 ], | 57 ], |
| 56 'message': 'Running apidoc: <(_action)', | 58 'message': 'Running apidoc: <(_action)', |
| 57 }, | 59 }, |
| 58 ], | 60 ], |
| 59 } | 61 } |
| 60 ], | 62 ], |
| 61 } | 63 } |
| OLD | NEW |