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': 'dartdocgen', | 18 'target_name': 'docgen', |
19 'type': 'none', | 19 'type': 'none', |
20 'dependencies': [ | 20 'dependencies': [ |
21 '../../create_sdk.gyp:create_sdk_internal', | 21 '../../create_sdk.gyp:create_sdk_internal', |
22 '../../pkg/pkg.gyp:pkg_packages', | 22 '../../pkg/pkg.gyp:pkg_packages', |
23 '../../pkg/pkg_files.gyp:pkg_files_stamp', | 23 '../../pkg/pkg_files.gyp:pkg_files_stamp', |
24 ], | 24 ], |
25 'includes': [ | 25 'includes': [ |
26 '../../sdk/lib/core/core_sources.gypi', | 26 '../../sdk/lib/core/core_sources.gypi', |
27 ], | 27 ], |
28 'actions': [ | 28 'actions': [ |
(...skipping 27 matching lines...) Expand all Loading... |
56 'inputs': [ | 56 'inputs': [ |
57 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 57 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
58 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', | 58 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', |
59 '<!@(["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"])', |
60 # We implicitly depend on the sdk/lib and vm runtime files by depend
ing on the dart binary above. | 60 # We implicitly depend on the sdk/lib and vm runtime files by depend
ing on the dart binary above. |
61 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "."])', | 61 '<!@(["python", "../../tools/list_files.py", "\\.dart$", "."])', |
62 '../../sdk/bin/dart', | 62 '../../sdk/bin/dart', |
63 '../../sdk/bin/dart.bat', | 63 '../../sdk/bin/dart.bat', |
64 '../../sdk/bin/dart2js', | 64 '../../sdk/bin/dart2js', |
65 '../../sdk/bin/dart2js.bat', | 65 '../../sdk/bin/dart2js.bat', |
66 # TODO(alanknight): The docgen name is deprecated in favour of | |
67 # dartdocgen, and should be removed eventually. | |
68 '../../sdk/bin/docgen', | 66 '../../sdk/bin/docgen', |
69 '../../sdk/bin/dartdocgen', | |
70 '../../sdk/bin/docgen.bat', | 67 '../../sdk/bin/docgen.bat', |
71 '../../sdk/bin/dartdocgen.bat', | |
72 '../../tools/only_in_release_mode.py', | 68 '../../tools/only_in_release_mode.py', |
73 '<(PRODUCT_DIR)/dart-sdk/README', | 69 '<(PRODUCT_DIR)/dart-sdk/README', |
74 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', | 70 '<(SHARED_INTERMEDIATE_DIR)/pkg_files.stamp', |
75 ], | 71 ], |
76 'outputs': [ | 72 'outputs': [ |
77 '<(PRODUCT_DIR)/api_docs/docgen/index.json', | 73 '<(PRODUCT_DIR)/api_docs/docgen/index.json', |
78 ], | 74 ], |
79 'action': [ | 75 'action': [ |
80 'python', | 76 'python', |
81 '../../tools/only_in_release_mode.py', | 77 '../../tools/only_in_release_mode.py', |
82 '<@(_outputs)', | 78 '<@(_outputs)', |
83 '--', | 79 '--', |
84 '<(PRODUCT_DIR)/dart-sdk/bin/dartdocgen<(script_suffix)', | 80 '<(PRODUCT_DIR)/dart-sdk/bin/docgen<(script_suffix)', |
85 '--out=<(PRODUCT_DIR)/api_docs/docgen', | 81 '--out=<(PRODUCT_DIR)/api_docs/docgen', |
86 '--include-sdk', | 82 '--include-sdk', |
87 '--no-include-dependent-packages', | 83 '--no-include-dependent-packages', |
88 '--package-root=<(PRODUCT_DIR)/packages', | 84 '--package-root=<(PRODUCT_DIR)/packages', |
89 '--exclude-lib=async_helper', | 85 '--exclude-lib=async_helper', |
90 '--exclude-lib=compiler', | 86 '--exclude-lib=compiler', |
91 '--exclude-lib=dart2js_incremental', | 87 '--exclude-lib=dart2js_incremental', |
92 '--exclude-lib=docgen', | 88 '--exclude-lib=docgen', |
93 '--exclude-lib=expect', | 89 '--exclude-lib=expect', |
94 '--exclude-lib=try', | 90 '--exclude-lib=try', |
95 '../../pkg' | 91 '../../pkg' |
96 ], | 92 ], |
97 'message': 'Running dartdocgen: <(_action)', | 93 'message': 'Running docgen: <(_action)', |
98 }, | 94 }, |
99 ], | 95 ], |
100 } | 96 } |
101 ], | 97 ], |
102 } | 98 } |
OLD | NEW |