2011-09-10 11:13:51 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
# encoding: utf-8
|
|
|
|
# Thomas Nagy, 2008-2010 (ita)
|
|
|
|
|
|
|
|
VERSION='0.0.1'
|
|
|
|
APPNAME='cc_test'
|
|
|
|
|
|
|
|
top = '.'
|
|
|
|
out = 'build'
|
|
|
|
|
|
|
|
def options(opt):
|
|
|
|
opt.load('compiler_cxx')
|
|
|
|
|
|
|
|
def configure(conf):
|
|
|
|
conf.load('compiler_cxx doxygen')
|
|
|
|
|
|
|
|
def build(bld):
|
|
|
|
# Note: Doxgen parameters may be passed using pars attribute
|
|
|
|
# e.g. pars={'EXCLUDE_PATTERNS':'*.babu'}
|
2011-11-23 08:32:24 +01:00
|
|
|
|
|
|
|
if bld.cmd == 'doxy':
|
|
|
|
bld(
|
|
|
|
features='doxygen',
|
|
|
|
doxyfile='test.conf',
|
|
|
|
doxy_tar='docs.tar.bz2')
|
|
|
|
else:
|
2011-12-25 11:11:44 +01:00
|
|
|
print('Call "waf doxy" for building the documentation')
|
2011-11-23 08:32:24 +01:00
|
|
|
|
|
|
|
from waflib import Build
|
|
|
|
class doxy(Build.BuildContext):
|
|
|
|
fun = 'build'
|
|
|
|
cmd = 'doxy'
|
2011-09-10 11:13:51 +02:00
|
|
|
|