mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
[Doxygen] Add --doxygen-executable
command line option to
`mk_api_doc.py`. This allows a custom path to Doxygen to be specified.
This commit is contained in:
parent
2cdb45605d
commit
8a1df3df62
|
@ -15,9 +15,10 @@ import shutil
|
||||||
|
|
||||||
ML_ENABLED=False
|
ML_ENABLED=False
|
||||||
BUILD_DIR='../build'
|
BUILD_DIR='../build'
|
||||||
|
DOXYGEN_EXE='doxygen'
|
||||||
|
|
||||||
def parse_options():
|
def parse_options():
|
||||||
global ML_ENABLED, BUILD_DIR
|
global ML_ENABLED, BUILD_DIR, DOXYGEN_EXE
|
||||||
parser = argparse.ArgumentParser(description=__doc__)
|
parser = argparse.ArgumentParser(description=__doc__)
|
||||||
parser.add_argument('-b',
|
parser.add_argument('-b',
|
||||||
'--build',
|
'--build',
|
||||||
|
@ -29,9 +30,15 @@ def parse_options():
|
||||||
default=False,
|
default=False,
|
||||||
help='Include ML/OCaml API documentation'
|
help='Include ML/OCaml API documentation'
|
||||||
)
|
)
|
||||||
|
parser.add_argument('--doxygen-executable',
|
||||||
|
dest='doxygen_executable',
|
||||||
|
default=DOXYGEN_EXE,
|
||||||
|
help='Doxygen executable to use (default: %(default)s)',
|
||||||
|
)
|
||||||
pargs = parser.parse_args()
|
pargs = parser.parse_args()
|
||||||
ML_ENABLED = pargs.ml
|
ML_ENABLED = pargs.ml
|
||||||
BUILD_DIR = pargs.build
|
BUILD_DIR = pargs.build
|
||||||
|
DOXYGEN_EXE = pargs.doxygen_executable
|
||||||
return
|
return
|
||||||
|
|
||||||
def mk_dir(d):
|
def mk_dir(d):
|
||||||
|
@ -81,7 +88,7 @@ try:
|
||||||
|
|
||||||
print("Removed annotations from z3_api.h.")
|
print("Removed annotations from z3_api.h.")
|
||||||
try:
|
try:
|
||||||
if subprocess.call(['doxygen', 'z3api.dox']) != 0:
|
if subprocess.call([DOXYGEN_EXE, 'z3api.dox']) != 0:
|
||||||
print("ERROR: doxygen returned nonzero return code")
|
print("ERROR: doxygen returned nonzero return code")
|
||||||
exit(1)
|
exit(1)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue