doc: fix build with latest meson
The latest versions of meson don't build targets when build_by_default is false but install is true, unlike older versions. We can fix this by having both build_by_default and install settings come from the build-time option. Bugzilla ID: 303 Fixes:d02a2dab2d
("doc: support building HTML guides with meson") Fixes:720b14db3a
("build: generate API documentation with meson") Cc: stable@dpdk.org Reported-by: Ali Alnubani <alialnu@mellanox.com> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Luca Boccassi <bluca@debian.org>
This commit is contained in:
parent
f9d6cd8bfe
commit
87c95f0445
@ -26,7 +26,7 @@ if doxygen.found()
|
||||
command: [generate_examples, '@INPUT@', '@OUTPUT@'],
|
||||
install: get_option('enable_docs'),
|
||||
install_dir: htmldir,
|
||||
build_by_default: false)
|
||||
build_by_default: get_option('enable_docs'))
|
||||
|
||||
cdata = configuration_data()
|
||||
cdata.set('VERSION', meson.project_version())
|
||||
@ -48,7 +48,7 @@ if doxygen.found()
|
||||
command: [generate_doxygen, '@INPUT@', '@OUTPUT@', generate_css],
|
||||
install: get_option('enable_docs'),
|
||||
install_dir: htmldir,
|
||||
build_by_default: false)
|
||||
build_by_default: get_option('enable_docs'))
|
||||
|
||||
doc_targets += doxy_build
|
||||
doc_target_names += 'Doxygen_API'
|
||||
|
@ -11,7 +11,7 @@ if sphinx.found()
|
||||
command: [sphinx, '-b', 'html',
|
||||
'-d', meson.current_build_dir() + '/.doctrees',
|
||||
'@INPUT@', meson.current_build_dir() + '/guides'],
|
||||
build_by_default: false,
|
||||
build_by_default: get_option('enable_docs'),
|
||||
install: get_option('enable_docs'),
|
||||
install_dir: htmldir)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user