Skip to content

Commit

Permalink
Merge pull request #146 from 01micko/install-docs
Browse files Browse the repository at this point in the history
meson: add docs to install; default is false
  • Loading branch information
01micko authored Mar 29, 2022
2 parents b886c0f + 6d6ea06 commit 4e068eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
install_subdir(
'reference', install_dir : join_paths(get_option('datadir'), 'doc')
)
7 changes: 7 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,12 @@ else
vte = dependency('vte', required: false)
endif

if get_option('docs')
subdir('doc')
install_subdir(
'examples', install_dir : join_paths(get_option('datadir'), 'doc')
)
endif

subdir('src')
subdir('data')
3 changes: 2 additions & 1 deletion meson_options.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
option('gtkver', type: 'integer', value: 3, description: 'GTK+ version')
option('gtkver', type: 'integer', value: 3, description: 'GTK+ version')
option('docs', type: 'boolean', value: false, description: 'add html documentation and examples')

0 comments on commit 4e068eb

Please sign in to comment.