summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 11 insertions, 0 deletions
diff --git a/wscript b/wscript
index 665943a..b5b0c9c 100644
--- a/wscript
+++ b/wscript
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+import os
import sys
import waflib.Options as Options
@@ -277,6 +278,16 @@ def build(bld):
bld.add_post_fun(autowaf.run_ldconfig)
+def fixdocs(ctx):
+ try:
+ os.system("sed -i 's/SLV2_API //' build/doc/html/group__slv2.html")
+ os.system("sed -i 's/SLV2_DEPRECATED //' build/doc/html/group__slv2.html")
+ os.remove('build/doc/html/index.html')
+ os.symlink('build/doc/html/group__slv2.html',
+ 'build/doc/html/index.html')
+ except:
+ Logs.error("Failed to fix up Doxygen documentation\n")
+
def test(ctx):
autowaf.pre_test(ctx, APPNAME)
autowaf.run_tests(ctx, APPNAME, ['test/slv2_test'], dirs=['./src','./test'])