Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1031)

Unified Diff: utils/apidoc/docgen.gyp

Issue 73113002: Generate docgen output along with api_docs as part of the build (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a file dependency in upload_sdk Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« dart.gyp ('K') | « pkg/docgen/lib/docgen.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/docgen.gyp
diff --git a/utils/apidoc/apidoc.gyp b/utils/apidoc/docgen.gyp
similarity index 75%
copy from utils/apidoc/apidoc.gyp
copy to utils/apidoc/docgen.gyp
index 7707557509d983010227613e831824b93930f278..1057eae598103264fe41ba84ebef84e7ea3a4e2b 100644
--- a/utils/apidoc/apidoc.gyp
+++ b/utils/apidoc/docgen.gyp
@@ -15,7 +15,7 @@
],
'targets': [
{
- 'target_name': 'api_docs',
+ 'target_name': 'docgen',
'type': 'none',
'dependencies': [
'../../utils/compiler/compiler.gyp:dart2js',
@@ -27,7 +27,7 @@
],
'actions': [
{
- 'action_name': 'run_apidoc',
+ 'action_name': 'run_docgen',
# The 'inputs' list records the files whose timestamps are
# compared to the files listed in 'outputs'. If a file
# 'outputs' doesn't exist or if a file in 'inputs' is newer
@@ -53,10 +53,6 @@
# ../../runtime/bin, as most of them has moved to
# ../../sdk/lib).
#
- # In addition, we want to make sure the documentation is
- # regenerated when a resource file (CSS, PNG, etc) is
- # updated. This is because these files are also copied to
- # the output directory.
'inputs': [
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
'<(SHARED_INTERMEDIATE_DIR)/utils_wrapper.dart.snapshot',
@@ -67,10 +63,10 @@
'../../sdk/bin/dart2js',
'../../sdk/bin/dart2js.bat',
'../../tools/only_in_release_mode.py',
+ '<(PRODUCT_DIR)/api_docs/index.html',
kustermann 2013/11/19 16:40:37 Add a short comment, that this is used for ensurin
Alan Knight 2013/11/19 19:14:47 Done.
],
'outputs': [
- '<(PRODUCT_DIR)/api_docs/index.html',
- '<(PRODUCT_DIR)/api_docs/client-static.js',
+ '<(PRODUCT_DIR)/api_docs/docgen/index.json',
],
'action': [
'python',
@@ -78,30 +74,19 @@
'<@(_outputs)',
'--',
'<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)',
+ '--old_gen_heap_size=1024',
'--package-root=<(PRODUCT_DIR)/packages/',
- 'apidoc.dart',
- '--out=<(PRODUCT_DIR)/api_docs',
- '--version=<!@(["python", "../../tools/print_version.py"])',
+ '../../pkg/docgen/bin/docgen.dart',
+ '--out=<(PRODUCT_DIR)/api_docs/docgen',
+ '--json',
+ '--include-sdk',
'--package-root=<(PRODUCT_DIR)/packages',
- '--mode=static',
- '--exclude-lib=analyzer',
'--exclude-lib=async_helper',
- '--exclude-lib=barback',
- '--exclude-lib=browser',
- '--exclude-lib=dartdoc',
- '--exclude-lib=docgen',
'--exclude-lib=expect',
- '--exclude-lib=http',
- '--exclude-lib=oauth2',
- '--exclude-lib=scheduled_test',
- '--exclude-lib=stack_trace',
- '--exclude-lib=watcher',
- '--exclude-lib=webdriver',
- '--exclude-lib=yaml',
- '--include-lib=matcher',
- '--extra-lib=pkg/unittest/lib/mock.dart',
+ '--exclude-lib=docgen',
kustermann 2013/11/19 16:40:37 I'm wondering why you removed so many '--exclude-l
Alan Knight 2013/11/19 19:14:47 From what I could tell there were two rationales f
+ '../../pkg',
],
- 'message': 'Running apidoc: <(_action)',
+ 'message': 'Running docgen: <(_action)',
},
],
}
« dart.gyp ('K') | « pkg/docgen/lib/docgen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698