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': 'docgen', | 18 'target_name': 'docgen', |
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 '../../pkg/pkg.gyp:pkg_packages', |
24 'apidoc.gyp:api_docs', | |
25 ], | 24 ], |
26 'includes': [ | 25 'includes': [ |
27 '../../sdk/lib/core/corelib_sources.gypi', | 26 '../../sdk/lib/core/corelib_sources.gypi', |
28 ], | 27 ], |
29 'actions': [ | 28 'actions': [ |
30 { | 29 { |
31 'action_name': 'run_docgen', | 30 'action_name': 'run_docgen', |
32 # The 'inputs' list records the files whose timestamps are | 31 # The 'inputs' list records the files whose timestamps are |
33 # compared to the files listed in 'outputs'. If a file | 32 # compared to the files listed in 'outputs'. If a file |
34 # 'outputs' doesn't exist or if a file in 'inputs' is newer | 33 # 'outputs' doesn't exist or if a file in 'inputs' is newer |
(...skipping 24 matching lines...) Expand all Loading... | |
59 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', | 58 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', |
60 '<!@(["python", "../../tools/list_files.py", "\\.(css|ico|js|json|pn g|sh|txt|yaml|py)$", ".", "../../sdk/lib/_internal/dartdoc"])', | 59 '<!@(["python", "../../tools/list_files.py", "\\.(css|ico|js|json|pn g|sh|txt|yaml|py)$", ".", "../../sdk/lib/_internal/dartdoc"])', |
61 '<!@(["python", "../../tools/list_files.py", "\\.dart$", ".", "../.. /sdk/lib", "../../runtime/lib", "../../runtime/bin"])', | 60 '<!@(["python", "../../tools/list_files.py", "\\.dart$", ".", "../.. /sdk/lib", "../../runtime/lib", "../../runtime/bin"])', |
62 '../../sdk/bin/dart', | 61 '../../sdk/bin/dart', |
63 '../../sdk/bin/dart.bat', | 62 '../../sdk/bin/dart.bat', |
64 '../../sdk/bin/dart2js', | 63 '../../sdk/bin/dart2js', |
65 '../../sdk/bin/dart2js.bat', | 64 '../../sdk/bin/dart2js.bat', |
66 '../../sdk/bin/docgen', | 65 '../../sdk/bin/docgen', |
67 '../../sdk/bin/docgen.bat', | 66 '../../sdk/bin/docgen.bat', |
68 '../../tools/only_in_release_mode.py', | 67 '../../tools/only_in_release_mode.py', |
69 # We sit inside the api_docs directory, so make sure it has run | |
70 # before we do. Otherwise it might run later and delete us. | |
71 '<(PRODUCT_DIR)/api_docs/index.html', | |
72 ], | 68 ], |
73 'outputs': [ | 69 'outputs': [ |
74 '<(PRODUCT_DIR)/api_docs/docgen/index.json', | 70 '<(PRODUCT_DIR)/api_docs/docgen/index.json', |
75 ], | 71 ], |
76 'action': [ | 72 'action': [ |
77 'python', | 73 'python', |
78 '../../tools/only_in_release_mode.py', | 74 '../../tools/only_in_release_mode.py', |
79 '<@(_outputs)', | 75 '<@(_outputs)', |
80 '--', | 76 '--', |
81 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart-sdk/bin/docgen<(script_suff ix)', | 77 '../../sdk/bin/dart', |
78 '--package-root=<(PRODUCT_DIR)/packages', | |
79 '../../pkg/docgen/bin/docgen.dart', | |
Emily Fortuna
2014/02/06 21:50:46
is there any reason why some places we define loca
Alan Knight
2014/02/06 22:21:57
I deliberately had it running from the snapshot as
| |
82 '--out=<(PRODUCT_DIR)/api_docs/docgen', | 80 '--out=<(PRODUCT_DIR)/api_docs/docgen', |
83 '--json', | 81 '--json', |
84 '--include-sdk', | 82 '--include-sdk', |
85 '--package-root=<(PRODUCT_DIR)/packages', | 83 '--package-root=<(PRODUCT_DIR)/packages', |
86 '--exclude-lib=async_helper', | 84 '--exclude-lib=async_helper', |
87 '--exclude-lib=expect', | 85 '--exclude-lib=expect', |
88 '--exclude-lib=docgen', | 86 '--exclude-lib=docgen', |
89 '../../pkg', | 87 '../../pkg', |
90 ], | 88 ], |
91 'message': 'Running docgen: <(_action)', | 89 'message': 'Running docgen: <(_action)', |
92 }, | 90 }, |
93 ], | 91 ], |
94 } | 92 } |
95 ], | 93 ], |
96 } | 94 } |
OLD | NEW |