Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install-docs meson build option. #172

Merged
merged 2 commits into from Jun 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -66,6 +66,7 @@ Possible AppStream-specific flags are:
-Dqt=true -- Build the Qt interface library (default: false)
-Dvapi=true -- Build Vala API to use the library with the Vala programming language (default: false)
-Ddocs=true -- Build specification and other documentation, requires Publican (default: false)
-Dinstall-docs=true -- Install documentation (default: true)
-Dmaintainer=true -- Enable strict compiler options - use this if you write a patch for AppStream (default: false)
-Dstemming=true -- Enable support for stemming in fulltext searches (default: true)
-Dapt-support=true -- Enable integration with the APT package manager on Debian (default: false)
@@ -99,8 +99,10 @@ if get_option('docs')
# helper if you only and always want to rebuild the docs
run_target('documentation', command: build_docs_cmd)

install_subdir('html', install_dir: as_doc_target_dir)
else
if get_option('install-docs')
install_subdir('html', install_dir: as_doc_target_dir)
endif
elif get_option('install-docs')
if run_command('[', '-d', join_paths(meson.current_source_dir(), 'html'), ']').returncode() == 0
# install documentation, if it exists
install_subdir('html', install_dir: as_doc_target_dir)
@@ -23,6 +23,11 @@ option('apidocs',
value : true,
description : 'Build API documentation (automatically enabled when "-Ddocs=true" is passed)'
)
option('install-docs',
type : 'boolean',
value : true,
description : 'Install documentation for API and specification'
)
option('apt-support',
type : 'boolean',
value : false,