wscript (1034B)
1 #! /usr/bin/env python 2 # encoding: utf-8 3 # Thomas Nagy, 2008-2012 (ita) 4 5 from waflib import Build, TaskGen 6 7 VERSION='0.0.1' 8 APPNAME='cc_test' 9 10 top = '.' 11 out = 'build' 12 13 def options(opt): 14 opt.load('compiler_cxx') 15 16 def configure(conf): 17 conf.load('compiler_cxx doxygen') 18 if not conf.env.DOXYGEN: 19 conf.fatal('doxygen is required, install it') 20 21 # NOTES: 22 # 23 # 1. The test.conf file has "OUTPUT_DIRECTORY" commented 24 # 25 # 2. Doxygen parameters may be passed using pars attribute 26 # e.g. pars={'EXCLUDE_PATTERNS': '*.foo'} 27 # 28 # 3. if you want to build the docs in another command, use something like: 29 # if bld.cmd == 'doxy': in the build 30 # 31 32 def build(bld): 33 # if the documentation is to packed, simply set doxy_tar to the filename 34 bld( 35 features='doxygen', 36 doxyfile='test.conf', 37 install_path='${PREFIX}/doc') 38 39 # and additional targets 40 bld(features='cxx cxxshlib', source='subdir/c.cpp', target='somelib') 41 42 # example for the NOTES point #3 43 from waflib import Build 44 class doxy(Build.BuildContext): 45 fun = 'build' 46 cmd = 'doxy' 47