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

meson: add option to disable building manpages #118

Merged
merged 2 commits into from
May 8, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push, pull_request]

jobs:
linux:
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
continue-on-error: ${{ ! matrix.stable }}
strategy:
matrix:
Expand Down
7 changes: 4 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ project('jose', 'c', license: 'APL2',
'prefix=/usr',
'warning_level=2',
'werror=true'
]
],
meson_version: '>=0.47.0',
)

licensedir = join_paths(get_option('prefix'), 'share', 'licenses', meson.project_name())
Expand Down Expand Up @@ -37,7 +38,7 @@ zlib = dependency('zlib')
threads = dependency('threads')
jansson = dependency('jansson', version: '>=2.10')
libcrypto = dependency('libcrypto', version: '>=1.0.2')
a2x = find_program('a2x', required: false)
a2x = find_program('a2x', required: get_option('docs'))
jq = find_program('jq', required: false)

mans = []
Expand Down Expand Up @@ -72,7 +73,7 @@ if a2x.found()
install: true
)
endforeach
else
elif get_option('docs').auto()
warning('Will not build man pages due to missing dependencies!')
endif

Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
option('docs', type: 'feature', description: 'Whether to build asciidoc manpages')