aboutsummaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-11-25 21:46:31 -0500
committerDavid Robillard <d@drobilla.net>2014-11-25 21:46:31 -0500
commitb74cd79a991ca2c86a522f5ebec49d8b154db886 (patch)
treedcf7e46e538878c0425d6453b85822dd79e17d5a /wscript
parentc67355debb9649e55d5a944ff51f8a9c2bd7aa0a (diff)
downloadlv2-b74cd79a991ca2c86a522f5ebec49d8b154db886.tar.xz
Fix building documentation from clean repository.
Diffstat (limited to 'wscript')
-rw-r--r--wscript50
1 files changed, 21 insertions, 29 deletions
diff --git a/wscript b/wscript
index e7fc342..e3fa60a 100644
--- a/wscript
+++ b/wscript
@@ -167,7 +167,7 @@ def specgen(task):
SPECGENDIR = 'lv2specgen'
STYLEPATH = 'build/aux/style.css'
- TAGFILE = 'build/tags'
+ TAGFILE = 'build/doc/tags'
specdoc = lv2specgen.specgen(
spec.abspath(),
@@ -407,33 +407,6 @@ def build(bld):
bld.install_files('${BINDIR}', 'lv2specgen/lv2specgen.py', chmod=Utils.O755)
if bld.env.DOCS or bld.env.ONLINE_DOCS:
- # Copy Doxygen layout file to build directory
- bld(features = 'subst',
- is_copy = True,
- install_path = None,
- name = 'copy',
- source = 'doc/DoxygenLayout.xml',
- target = 'DoxygenLayout.xml')
-
- # Build Doxygen documentation (and tags file)
- autowaf.build_dox(bld, 'LV2', VERSION, top, out, 'lv2plug.in/doc', False)
-
- # Copy stylesheets to build directory
- for i in ['style.css', 'pygments.css']:
- bld(features = 'subst',
- is_copy = True,
- name = 'copy',
- source = 'doc/%s' % i,
- target = 'aux/%s' % i)
-
- bld(features = 'subst',
- is_copy = True,
- name = 'copy',
- source = 'doc/doxy-style.css',
- target = 'doc/html/doxy-style.css')
-
- index_files = []
-
# Prepare spec output directories
specs = exts + [bld.path.find_node('lv2/lv2plug.in/ns/lv2core')]
for i in specs:
@@ -457,6 +430,26 @@ def build(bld):
NAME = name,
BASE = base)
+
+ # Copy stylesheets to build directory
+ for i in ['style.css', 'pygments.css']:
+ bld(features = 'subst',
+ is_copy = True,
+ name = 'copy',
+ source = 'doc/%s' % i,
+ target = 'aux/%s' % i)
+
+ bld(features = 'subst',
+ is_copy = True,
+ name = 'copy',
+ source = 'doc/doxy-style.css',
+ target = 'doc/html/doxy-style.css')
+
+ # Build Doxygen documentation (and tags file)
+ autowaf.build_dox(bld, 'LV2', VERSION, top, out, 'lv2plug.in/doc', False)
+
+ index_files = []
+
# Call lv2specgen for each spec
for i in specs:
name = os.path.basename(i.srcpath())
@@ -479,7 +472,6 @@ def build(bld):
bld.path.get_bld().ant_glob(base + '/*.html'))
index_files.sort()
- bld.add_group() # Barrier (wait for lv2specgen to build index)
# Build extension index
bld(rule = build_index,