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.
7 """scons script for building the Doxygen-based documentation for c_salt"""
11 env.SetDefault(DOXYGEN=ARGUMENTS.get('DOXYGEN', 'doxygen'))
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'
19 env['ENV']['NACL_SDK_PLATFORM'] = 'linux'
21 # The output is generated into scons-out/doc (c.f. Doxyfile).
22 # Point your browser at scons-out/doc/html/index.html
26 action='${DOXYGEN} documentation/Doxyfile 2>&1 > ${TARGET}')
28 env.AddNodeAliases(node, [], 'docs')