summaryrefslogtreecommitdiffstats
path: root/wscript_build.py
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2015-12-29 19:57:09 +0000
committerwm4 <wm4@nowhere>2016-01-05 11:24:08 +0100
commitd0cd7fa31b1812c273f938cb4fd5ecf7fc9eec79 (patch)
tree9ff7f8cf13d72fbc7a3255c90a100463064d1c3d /wscript_build.py
parenta655432bbe2ff7e22005220b3897a0a75e14f2ef (diff)
downloadmpv-d0cd7fa31b1812c273f938cb4fd5ecf7fc9eec79.tar.bz2
mpv-d0cd7fa31b1812c273f938cb4fd5ecf7fc9eec79.tar.xz
build: add option of html manual
Diffstat (limited to 'wscript_build.py')
-rw-r--r--wscript_build.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/wscript_build.py b/wscript_build.py
index 46ff204b59..b6f76ae425 100644
--- a/wscript_build.py
+++ b/wscript_build.py
@@ -13,6 +13,16 @@ def _add_rst_manual_dependencies(ctx):
ctx.path.find_node('DOCS/man/mpv.rst'),
ctx.path.find_node(manpage_source))
+def _build_html(ctx):
+ ctx(
+ name = 'rst2html',
+ target = 'DOCS/man/mpv.html',
+ source = 'DOCS/man/mpv.rst',
+ rule = '${RST2HTML} ${SRC} ${TGT}',
+ install_path = ctx.env.DOCDIR)
+
+ _add_rst_manual_dependencies(ctx)
+
def _build_man(ctx):
ctx(
name = 'rst2man',
@@ -530,6 +540,9 @@ def build(ctx):
features = 'c cshlib',
install_path = ctx.env.LIBDIR + '/mpv' )
+ if ctx.dependency_satisfied('html-build'):
+ _build_html(ctx)
+
if ctx.dependency_satisfied('manpage-build'):
_build_man(ctx)