diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-08-17 18:34:43 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-08-17 18:34:43 +0200 |
commit | 40d769545feba313ed49ca2792bb9d176a8733cd (patch) | |
tree | 1035058927f7378e610d316dd37b3d6dd0ba0200 | |
parent | 77ac2a47e753705f7d3a444fb0a3aac6896b06f2 (diff) | |
download | sigc++-40d769545feba313ed49ca2792bb9d176a8733cd.tar.gz |
meson.build: Check if Perl is required for building documentation
New versions of mm-common use the Python scripts doc_postprocess.py
and doc_install.py instead of the Perl scripts doc-postprocess.pl and
doc-install.pl when documentation is built.
-rw-r--r-- | meson.build | 12 | ||||
-rw-r--r-- | untracked/README | 8 |
2 files changed, 15 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 1ba9899..c75394a 100644 --- a/meson.build +++ b/meson.build @@ -114,7 +114,6 @@ if maintainer_mode and not mm_common_get.found() mm_common_get = find_program('mm-common-get', required: true) endif m4 = find_program('m4', required: maintainer_mode) # For building C++ code -perl = find_program('perl', required: build_documentation) doxygen = find_program('doxygen', required: build_documentation) dot = find_program('dot', required: build_documentation) # Used by Doxygen xsltproc = find_program('xsltproc', required: build_documentation) @@ -141,6 +140,17 @@ sys.exit(os.path.isfile("@0@")) endif endif +# Check if perl is required and available. +# Done now, when the doc_reference script is available. +doc_perl_prop = run_command( + python3, doc_reference, 'get_script_property', + '', # MMDOCTOOLDIR is not used + 'requires_perl') +if not (doc_perl_prop.returncode() == 0 and doc_perl_prop.stdout() == 'false') + # Perl is required, if documentation shall be built. + perl = find_program('perl', required: build_documentation) +endif + # Set compiler warnings. warning_flags = [] if warning_level == 'min' diff --git a/untracked/README b/untracked/README index 1fd8eca..e7bd7d2 100644 --- a/untracked/README +++ b/untracked/README @@ -15,10 +15,10 @@ or the tarball is created with Meson. 1. Files copied by mm-common-get -------------------------------- -untracked/docs/docs/doc-install.pl - doc-postprocess.pl - doxygen-extra.css - tagfile-to-devhelp2.xsl +untracked/docs/doc_install.py or doc-install.pl + doc_postprocess.py or doc-postprocess.pl + doxygen-extra.css + tagfile-to-devhelp2.xsl untracked/build_scripts/dist-build-scripts.py dist-changelog.py doc-reference.py |