forked from Lainports/opnsense-ports
37 lines
1.6 KiB
Text
37 lines
1.6 KiB
Text
--- wscript.orig 2017-01-08 15:44:05 UTC
|
|
+++ wscript
|
|
@@ -103,6 +103,9 @@ def options(ctx):
|
|
help_str = 'build documentation (auto)',
|
|
help_disable_str = 'do not build documentation')
|
|
|
|
+ ctx.add_option('--disable-doxygen', action = 'store_true',
|
|
+ dest = 'disable_doxygen',
|
|
+ help = 'disable doxygen even if found')
|
|
ctx.add_option('--with-target-platform', type='string',
|
|
help='set target platform for cross-compilation', dest='target_platform')
|
|
|
|
@@ -376,6 +379,9 @@ def configure(ctx):
|
|
# check if doxygen is installed, optional
|
|
try:
|
|
ctx.find_program('doxygen', var='DOXYGEN')
|
|
+ if ctx.options.disable_doxygen:
|
|
+ from sys import stderr
|
|
+ print >> stderr, 'doxygen found, but disabled with --disable-doxygen'
|
|
except ctx.errors.ConfigurationError:
|
|
ctx.to_log('doxygen was not found (ignoring)')
|
|
|
|
@@ -428,12 +434,12 @@ def txt2man(bld):
|
|
|
|
def doxygen(bld):
|
|
# build documentation from source files using doxygen
|
|
- if bld.env['DOXYGEN']:
|
|
+ if bld.env['DOXYGEN'] and not bld.options.disable_doxygen:
|
|
bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null',
|
|
source = 'doc/web.cfg',
|
|
target = '../doc/web/html/index.html',
|
|
cwd = 'doc')
|
|
- bld.install_files( '${DATAROOTDIR}' + '/doc/libaubio-doc',
|
|
+ bld.install_files( '${DATAROOTDIR}' + '/doc/aubio',
|
|
bld.path.ant_glob('doc/web/html/**'),
|
|
cwd = bld.path.find_dir ('doc/web'),
|
|
relative_trick = True)
|