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 ], | 23 ], |
24 'includes': [ | 24 'includes': [ |
25 '../../lib/core/corelib_sources.gypi', | 25 '../../sdk/lib/core/corelib_sources.gypi', |
26 ], | 26 ], |
27 'actions': [ | 27 'actions': [ |
28 { | 28 { |
29 'action_name': 'run_apidoc', | 29 'action_name': 'run_apidoc', |
30 'inputs': [ | 30 'inputs': [ |
31 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 31 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
32 '<(PRODUCT_DIR)/dart2js', | 32 '<(PRODUCT_DIR)/dart2js', |
33 '<(PRODUCT_DIR)/dart2js.bat', | 33 '<(PRODUCT_DIR)/dart2js.bat', |
34 '<!@(["python", "../../tools/list_files.py", "\\.(css|ico|js|json|pn
g|sh|txt|yaml|py)$", ".", "../../pkg/dartdoc"])', | 34 '<!@(["python", "../../tools/list_files.py", "\\.(css|ico|js|json|pn
g|sh|txt|yaml|py)$", ".", "../../sdk/lib/_internal/dartdoc"])', |
35 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../lib"
, "../../runtime/lib", "../../runtime/bin", "../../pkg/dartdoc"])', | 35 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "../../lib"
, "../../runtime/lib", "../../runtime/bin", "../../sdk/lib/_internal/dartdoc"])'
, |
36 ], | 36 ], |
37 'outputs': [ | 37 'outputs': [ |
38 '<(PRODUCT_DIR)/api_docs/index.html', | 38 '<(PRODUCT_DIR)/api_docs/index.html', |
39 '<(PRODUCT_DIR)/api_docs/client-static.js', | 39 '<(PRODUCT_DIR)/api_docs/client-static.js', |
40 ], | 40 ], |
41 'action': [ | 41 'action': [ |
42 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 42 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
43 'apidoc.dart', | 43 'apidoc.dart', |
44 '--out=<(PRODUCT_DIR)/api_docs', | 44 '--out=<(PRODUCT_DIR)/api_docs', |
45 '--mode=static', | 45 '--mode=static', |
46 '--exclude-lib=webdriver', | 46 '--exclude-lib=webdriver', |
47 '--exclude-lib=dartdoc', | 47 '--exclude-lib=dartdoc', |
48 ], | 48 ], |
49 'message': 'Running apidoc: <(_action)', | 49 'message': 'Running apidoc: <(_action)', |
50 }, | 50 }, |
51 ], | 51 ], |
52 } | 52 } |
53 ], | 53 ], |
54 } | 54 } |
OLD | NEW |