blob: b4751f83a18b290f7f3d6a0052a20f36d67d3fed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#! -*- python -*-
#
# Copyright (c) 2010 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.
"""scons script for building the Doxygen-based documentation for c_salt"""
Import('env')
env.SetDefault(DOXYGEN=ARGUMENTS.get('DOXYGEN', 'doxygen'))
# Gate on host platform rather than target, since all are supported.
if env['PLATFORM'] in ['win32', 'cygwin']:
env['ENV']['NACL_SDK_PLATFORM'] = 'windows'
elif env['PLATFORM'] in ['darwin']:
env['ENV']['NACL_SDK_PLATFORM'] = 'mac'
else:
env['ENV']['NACL_SDK_PLATFORM'] = 'linux'
# The output is generated into scons-out/doc (c.f. Doxyfile).
# Point your browser at scons-out/doc/html/index.html
node = env.Command(
target='doxygen.log',
source='Doxyfile',
action='${DOXYGEN} documentation/Doxyfile 2>&1 > ${TARGET}')
AlwaysBuild(node)
env.AddNodeAliases(node, [], 'docs')
|