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"', { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 # | 50 # |
51 # So we want this action to be re-run when a dart file | 51 # So we want this action to be re-run when a dart file |
52 # changes in this directory, or in the SDK library (we may | 52 # changes in this directory, or in the SDK library (we may |
53 # no longer need to list the files in ../../runtime/lib and | 53 # no longer need to list the files in ../../runtime/lib and |
54 # ../../runtime/bin, as most of them has moved to | 54 # ../../runtime/bin, as most of them has moved to |
55 # ../../sdk/lib). | 55 # ../../sdk/lib). |
56 # | 56 # |
57 'inputs': [ | 57 'inputs': [ |
58 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 58 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
59 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', | 59 '<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot', |
| 60 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)/dart-sdk/bin/docgen<(script_suf
fix)', |
60 '<!@(["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", "\\.(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"])', | 62 '<!@(["python", "../../tools/list_files.py", "\\.dart$", ".", "../..
/sdk/lib", "../../runtime/lib", "../../runtime/bin"])', |
62 '../../sdk/bin/dart', | 63 '../../sdk/bin/dart', |
63 '../../sdk/bin/dart.bat', | 64 '../../sdk/bin/dart.bat', |
64 '../../sdk/bin/dart2js', | 65 '../../sdk/bin/dart2js', |
65 '../../sdk/bin/dart2js.bat', | 66 '../../sdk/bin/dart2js.bat', |
66 '../../tools/only_in_release_mode.py', | 67 '../../tools/only_in_release_mode.py', |
67 # We sit inside the api_docs directory, so make sure it has run | 68 # We sit inside the api_docs directory, so make sure it has run |
68 # before we do. Otherwise it might run later and delete us. | 69 # before we do. Otherwise it might run later and delete us. |
69 '<(PRODUCT_DIR)/api_docs/index.html', | 70 '<(PRODUCT_DIR)/api_docs/index.html', |
70 ], | 71 ], |
71 'outputs': [ | 72 'outputs': [ |
72 '<(PRODUCT_DIR)/api_docs/docgen/index.json', | 73 '<(PRODUCT_DIR)/api_docs/docgen/index.json', |
73 ], | 74 ], |
74 'action': [ | 75 'action': [ |
75 'python', | 76 'python', |
76 '../../tools/only_in_release_mode.py', | 77 '../../tools/only_in_release_mode.py', |
77 '<@(_outputs)', | 78 '<@(_outputs)', |
78 '--', | 79 '--', |
79 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', | 80 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart-sdk/bin/docgen<(script_suff
ix)', |
80 '--old_gen_heap_size=1024', | |
81 '--package-root=<(PRODUCT_DIR)/packages/', | |
82 '../../pkg/docgen/bin/docgen.dart', | |
83 '--out=<(PRODUCT_DIR)/api_docs/docgen', | 81 '--out=<(PRODUCT_DIR)/api_docs/docgen', |
84 '--json', | 82 '--json', |
85 '--include-sdk', | 83 '--include-sdk', |
86 '--package-root=<(PRODUCT_DIR)/packages', | 84 '--package-root=<(PRODUCT_DIR)/packages', |
87 '--exclude-lib=async_helper', | 85 '--exclude-lib=async_helper', |
88 '--exclude-lib=expect', | 86 '--exclude-lib=expect', |
89 '--exclude-lib=docgen', | 87 '--exclude-lib=docgen', |
90 '../../pkg', | 88 '../../pkg', |
91 ], | 89 ], |
92 'message': 'Running docgen: <(_action)', | 90 'message': 'Running docgen: <(_action)', |
93 }, | 91 }, |
94 ], | 92 ], |
95 } | 93 } |
96 ], | 94 ], |
97 } | 95 } |
OLD | NEW |