diff options
author | gspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-04 02:28:49 +0000 |
---|---|---|
committer | gspencer@google.com <gspencer@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-04 02:28:49 +0000 |
commit | 5cd1f8f498abd2ed8d0bd545b224b95918cbec72 (patch) | |
tree | 6e2e67055ddbdff760709b4aeabcecf4f4ab84f2 /o3d/documentation | |
parent | a68a9839cea7ab81e46bba223e0a52e9e234eb9d (diff) | |
download | chromium_src-5cd1f8f498abd2ed8d0bd545b224b95918cbec72.zip chromium_src-5cd1f8f498abd2ed8d0bd545b224b95918cbec72.tar.gz chromium_src-5cd1f8f498abd2ed8d0bd545b224b95918cbec72.tar.bz2 |
Adding missing gyp file
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/documentation')
-rw-r--r-- | o3d/documentation/documentation.gyp | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/o3d/documentation/documentation.gyp b/o3d/documentation/documentation.gyp new file mode 100644 index 0000000..f7f92a1 --- /dev/null +++ b/o3d/documentation/documentation.gyp @@ -0,0 +1,77 @@ +# Copyright (c) 2009 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +{ + 'variables': { + 'chromium_code': 1, + 'jscomp_exists': '<!(python ../build/file_exists.py ' + '../../o3d-internal/jscomp/JSCompiler_deploy.jar)', + }, + 'includes': [ + '../build/common.gypi', + ], + 'targets': [ + ], + 'conditions': [ + # We only want the documentation targets to be defined if the JS + # Compiler is available, so we use python to find out if it's + # available. + [ '"<(jscomp_exists)"=="True"', + { + 'variables': { + 'input_js_files': '<!@(python get_docs_files.py --js)', + 'input_idl_files': '<!@(python get_docs_files.py --idl)', + }, + 'targets': [ + { + 'target_name': 'documentation', + 'type': 'none', + 'actions': [ + { + 'action_name': 'build_docs', + 'inputs': [ + '<@(input_js_files)', + '<@(input_idl_files)', + 'jsdoc-toolkit-templates/annotated.tmpl', + 'jsdoc-toolkit-templates/class.tmpl', + 'jsdoc-toolkit-templates/classtree.tmpl', + 'jsdoc-toolkit-templates/filelist.tmpl', + 'jsdoc-toolkit-templates/members.tmpl', + 'jsdoc-toolkit-templates/namespaces.tmpl', + 'jsdoc-toolkit-templates/publish.js', + 'jsdoc-toolkit-templates/static/header.html', + 'jsdoc-toolkit-templates/static/footer.html', + 'jsdoc-toolkit-templates/static/stylesheet.css', + 'jsdoc-toolkit-templates/static/tabs.css', + 'jsdoc-toolkit-templates/static/tab_l.gif', + 'jsdoc-toolkit-templates/static/tab_r.gif', + 'jsdoc-toolkit-templates/static/tab_b.gif', + 'externs/externs.js', + 'externs/o3d-extra-externs.js', + 'build_docs.py' + ], + 'outputs': [ + # There are really a whole lot more outputs than + # this, but to determine what they are would require + # having the entire docs script run every time, so + # we just depend on the ultimate compiled base.js + # file, which is rebuilt every time the docs build + # happens. + '<(PRODUCT_DIR)/docs/documentation/base.js', + ], + 'action': [ + 'python', + 'build_docs.py', + 'java', + '../../third_party', + '<(PRODUCT_DIR)/docs', + ], + }, + ], + }, + ], + }, + ], + ], +} |