OLD | NEW |
| (Empty) |
1 #! -*- python -*- | |
2 # | |
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 """scons script for building the Doxygen-based documentation for c_salt""" | |
8 | |
9 Import('env') | |
10 | |
11 env.SetDefault(DOXYGEN=ARGUMENTS.get('DOXYGEN', 'doxygen')) | |
12 | |
13 # Gate on host platform rather than target, since all are supported. | |
14 if env['PLATFORM'] in ['win32', 'cygwin']: | |
15 env['ENV']['NACL_SDK_PLATFORM'] = 'windows' | |
16 elif env['PLATFORM'] in ['darwin']: | |
17 env['ENV']['NACL_SDK_PLATFORM'] = 'mac' | |
18 else: | |
19 env['ENV']['NACL_SDK_PLATFORM'] = 'linux' | |
20 | |
21 # The output is generated into scons-out/doc (c.f. Doxyfile). | |
22 # Point your browser at scons-out/doc/html/index.html | |
23 node = env.Command( | |
24 target='doxygen.log', | |
25 source='Doxyfile', | |
26 action='${DOXYGEN} documentation/Doxyfile 2>&1 > ${TARGET}') | |
27 AlwaysBuild(node) | |
28 env.AddNodeAliases(node, [], 'docs') | |
OLD | NEW |