summaryrefslogtreecommitdiffstats
path: root/chrome/chrome.gyp
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 19:27:50 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-03 19:27:50 +0000
commitbed947625415eb87879a48202a84b8b4bd2f92f1 (patch)
tree9f80119962a8dbb6d0bb3d4cc09af22b555c3a1e /chrome/chrome.gyp
parent563d8417b7c35cdbf197c0c079af61b874d32dea (diff)
downloadchromium_src-bed947625415eb87879a48202a84b8b4bd2f92f1.zip
chromium_src-bed947625415eb87879a48202a84b8b4bd2f92f1.tar.gz
chromium_src-bed947625415eb87879a48202a84b8b4bd2f92f1.tar.bz2
Extension docs build script, gyp target and PRESUBMIT.PY check
This addeds a mechanism for extension docs to "render" from the api/extension_api.json api "idl", the docs/static file content and the template/ html templates into the static extension docs. It retains the property that extension docs loaded in chrome with file:/// scheme will regenerate if dependent data has changed, but otherwise is static. The build.py script runs test_shell to render the static files. A extension_docs gyp target is defined with appropriate inputs & outputs that will run the build.py A PRESUBMIT.PY check will warn on upload and commit if any files have changed that would require a docs rebuild. Note that the PRESUBMIT.PY checks are not currently being run for git cl upload or git cl dcommit. Review URL: http://codereview.chromium.org/159607 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome.gyp')
-rw-r--r--chrome/chrome.gyp19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/chrome.gyp b/chrome/chrome.gyp
index 07dcaab..8b20e82 100644
--- a/chrome/chrome.gyp
+++ b/chrome/chrome.gyp
@@ -4413,6 +4413,25 @@
],
},
{
+ # TODO(rafaelw): Reenable build extension_docs on Mac.
+ 'target_name': 'extension_docs',
+ 'type': 'none',
+ 'dependencies': [
+ '../webkit/tools/test_shell/test_shell.gyp:test_shell',
+ ],
+ 'actions': [
+ {
+ 'inputs': [ '<!@(python common/extensions/docs/build/build.py --list-inputs)'],
+ 'outputs': ['<!@(python common/extensions/docs/build/build.py --list-outputs)'],
+ 'action_name': 'build_extension_docs',
+ 'action': [ 'python',
+ 'common/extensions/docs/build/build.py',
+ '--product-dir',
+ '<(PRODUCT_DIR)'],
+ },
+ ],
+ },
+ {
'target_name': 'perf_tests',
'type': 'executable',
'msvs_guid': '9055E088-25C6-47FD-87D5-D9DD9FD75C9F',