mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-23 02:16:01 +01:00
36 lines
959 B
Python
36 lines
959 B
Python
#!/usr/bin/env python
|
|
# encoding: utf-8
|
|
# Jérôme Carretero, 2010 (zougloub)
|
|
|
|
import sys, os
|
|
from waflib.Utils import subprocess
|
|
|
|
"""
|
|
"""
|
|
|
|
top = '.'
|
|
out = 'build'
|
|
|
|
def options(opt):
|
|
opt.load('daemon', tooldir=['../../playground/daemon/'])
|
|
|
|
def configure(cfg):
|
|
cfg.find_program('dot', var='DOT')
|
|
cfg.find_program('convert', var='CONVERT')
|
|
cfg.load('daemon', tooldir=['../../playground/daemon/'])
|
|
cfg.find_program("sphinx-build", var="SPHINX_BUILD")
|
|
cfg.env.SPHINX_ARGS = ['-W']
|
|
|
|
def build(bld):
|
|
bld.path.make_node('_static').mkdir()
|
|
bld(
|
|
rule = "${SPHINX_BUILD} ${SPHINX_ARGS} -b html -d %s . %s" % (os.path.join(out, "doctrees"), os.path.join(out, "html")),
|
|
cwd = bld.path.abspath(),
|
|
source = bld.path.parent.parent.find_dir('waflib').ant_glob('**/*.py')
|
|
+ bld.path.ant_glob('**/*.rst')
|
|
+ bld.path.ant_glob('_templates/indexcontent.html')
|
|
+ bld.path.ant_glob('conf.py'),
|
|
target = bld.path.find_or_declare('html/index.html')
|
|
)
|
|
|