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

Side by Side Diff: documentation/build.scons

Issue 354011: This change kills the SCons build, since we have switched completely... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/o3d/
Patch Set: Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « core/build.scons ('k') | event/build.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2009, Google Inc.
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30
31 import os.path
32 import subprocess
33 Import('env')
34 env.SConscript('$SCONSTRUCT_DIR/plugin/idl_list.scons')
35 env.SConscript('$SCONSTRUCT_DIR/samples/o3djs/js_list.scons')
36 Import('O3D_IDL_SOURCES')
37 Import('O3D_JS_SOURCES')
38
39 env.Replace(
40 JSDOC_DIR = '$SCONSTRUCT_DIR/documentation',
41 JSDOC_EZT_TEMPLATE_DIR = '$JSDOC_DIR/jsdoc-toolkit-templates/',
42 JSDOC_EXTERNS_DIR = '$JSDOC_DIR/externs/',
43 PYTHONPATH = ['$NIXYSA_DIR',
44 '$GFLAGS_DIR/python',
45 '$PLY_DIR']
46 )
47
48 # Build documentation
49 IDL_DIR = "$SCONSTRUCT_DIR/plugin/"
50 LOCAL_IDL_SOURCES = [IDL_DIR + i for i in O3D_IDL_SOURCES]
51 JS_DIR = '$SCONSTRUCT_DIR/samples/o3djs/'
52 LOCAL_JS_SOURCES = [JS_DIR + i for i in O3D_JS_SOURCES]
53
54 DOCSGEN_ARGS = ['$JSDOC_DIR/build_docs.py $JAVA_EXE '
55 '$THIRD_PARTY $TARGET_ROOT/obj']
56
57 env["BUILDERS"]["JSDocs"] = Builder(action=env.Python(DOCSGEN_ARGS))
58
59 JSCOMP_PATH = "$SCONSTRUCT_DIR/../o3d-internal/jscomp/JSCompiler_deploy.jar"
60 if os.path.exists(env.subst(JSCOMP_PATH)):
61 env.JSDocs('base.js', LOCAL_JS_SOURCES + LOCAL_IDL_SOURCES +
62 ['$JSDOC_EZT_TEMPLATE_DIR/annotated.tmpl',
63 '$JSDOC_EZT_TEMPLATE_DIR/class.tmpl',
64 '$JSDOC_EZT_TEMPLATE_DIR/classtree.tmpl',
65 '$JSDOC_EZT_TEMPLATE_DIR/dot.tmpl',
66 '$JSDOC_EZT_TEMPLATE_DIR/filelist.tmpl',
67 '$JSDOC_EZT_TEMPLATE_DIR/members.tmpl',
68 '$JSDOC_EZT_TEMPLATE_DIR/namespaces.tmpl',
69 '$JSDOC_EZT_TEMPLATE_DIR/publish.js',
70 '$JSDOC_EZT_TEMPLATE_DIR/static/header.html',
71 '$JSDOC_EZT_TEMPLATE_DIR/static/footer.html',
72 '$JSDOC_EZT_TEMPLATE_DIR/static/stylesheet.css',
73 '$JSDOC_EZT_TEMPLATE_DIR/static/tabs.css',
74 '$JSDOC_EZT_TEMPLATE_DIR/static/tab_l.gif',
75 '$JSDOC_EZT_TEMPLATE_DIR/static/tab_r.gif',
76 '$JSDOC_EZT_TEMPLATE_DIR/static/tab_b.gif',
77 '$JSDOC_EXTERNS_DIR/externs.js',
78 '$JSDOC_EXTERNS_DIR/o3d-extra-externs.js',
79 '$JSDOC_DIR/build_docs.py'])
OLDNEW
« no previous file with comments | « core/build.scons ('k') | event/build.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698