summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wscript27
-rw-r--r--zix/common.h2
2 files changed, 24 insertions, 5 deletions
diff --git a/wscript b/wscript
index 2dc56b3..754fa2d 100644
--- a/wscript
+++ b/wscript
@@ -113,16 +113,21 @@ def build(bld):
obj.install_path = ''
# Documentation
- #autowaf.build_dox(bld, 'ZIX', ZIX_VERSION, top, out)
-
- # Man page
- #bld.install_files('${MANDIR}/man1', 'doc/zixi.1')
+ autowaf.build_dox(bld, 'ZIX', ZIX_VERSION, top, out)
bld.add_post_fun(autowaf.run_ldconfig)
+ if bld.env['DOCS']:
+ bld.add_post_fun(fix_docs)
def lint(ctx):
subprocess.call('cpplint.py --filter=-whitespace/tab,-whitespace/braces,-build/header_guard,-readability/casting,-readability/todo src/* zix/*', shell=True)
+def build_dir(ctx, subdir):
+ if autowaf.is_child():
+ return os.path.join('build', APPNAME, subdir)
+ else:
+ return os.path.join('build', subdir)
+
def fix_docs(ctx):
try:
os.chdir('build/doc/html')
@@ -131,8 +136,20 @@ def fix_docs(ctx):
os.remove('index.html')
os.symlink('group__zix.html',
'index.html')
+ except:
+ Logs.error("Failed to fix up %s documentation" % APPNAME)
+
+def fix_docs(ctx):
+ try:
+ top = os.getcwd()
+ os.chdir(build_dir(ctx, 'doc/html'))
+ os.system("sed -i 's/ZIX_API //' group__zix.html")
+ os.remove('index.html')
+ os.symlink('group__zix.html',
+ 'index.html')
+ os.chdir(top)
except Exception as e:
- Logs.error("Failed to fix up Doxygen documentation (%s)\n" % e)
+ Logs.error("Failed to fix up %s documentation (%s)" % (APPNAME, e))
def upload_docs(ctx):
os.system("rsync -avz --delete -e ssh build/doc/html/* drobilla@drobilla.net:~/drobilla.net/docs/zix")
diff --git a/zix/common.h b/zix/common.h
index ee18664..2107df5 100644
--- a/zix/common.h
+++ b/zix/common.h
@@ -22,6 +22,7 @@
@{
*/
+/** @cond */
#ifdef ZIX_SHARED
# ifdef __WIN32__
# define ZIX_LIB_IMPORT __declspec(dllimport)
@@ -38,6 +39,7 @@
#else
# define ZIX_API
#endif
+/** @endcond */
typedef enum {
ZIX_STATUS_SUCCESS,