Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def configure(conf):
- conf.find_program('doxygen', var='DOXYGEN', mandatory=True)
- def build(bld):
- SOURCES = bld.path.parent.ant_glob('liblg/**/*.h', bld=False) \
- + ' ' + bld.path.parent.ant_glob('liblg/**/*.hpp', bld=False)
- SOURCES = ' '.join(['../' + f for f in SOURCES.split()])
- SOURCES += ' ' + bld.path.ant_glob('**/*.doxygen', bld=False)
- DOXYCONF = dict(
- INPUT = bld.path.abspath() + ' '
- + bld.path.parent.abspath() + '/liblg',
- OUTPUT_DIRECTORY = '${TGT}',
- )
- CONF = ' '.join(['echo %s = %s;' % (k, v) for (k, v) in DOXYCONF.items()])
- bld.new_task_gen(
- name = 'doxygen',
- source = 'Doxyfile ' + SOURCES,
- target = 'reference',
- rule = '(cat ${SRC[0].abspath()}; %s) | ${DOXYGEN} -' % CONF,
- )
- from glob import glob
- bld.install_files('${PREFIX}/share/doc/${APPNAME}/manual',
- glob(bld.path.abspath(env=bld.env) + '/reference/html/*'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement