sernatur/docs/meson.build

51 lines
1.5 KiB
Meson
Raw Normal View History

2018-10-25 16:55:22 -03:00
docs_enabled = get_option('valadocs')
valadoc = find_program('valadoc', required: docs_enabled)
2018-10-18 16:31:50 -03:00
if docs_enabled
2018-10-25 16:55:22 -03:00
docs_deps = get_option('valadocs_deps')
2018-10-18 16:31:50 -03:00
if docs_deps
custom_target('valadoc',
input: vala_sources,
output: 'valadoc',
command: [ valadoc,
'--deps',
'--use-svg-images',
'--doclet=html',
'--force',
'--package-name=@0@'.format(meson.project_name()),
'--package-version=@0@'.format(meson.project_version()),
'--pkg=gtk+-3.0',
'--pkg=libpq',
'--vapidir=@0@'.format(join_paths(meson.source_root(), 'src/vapi')),
'--directory=@OUTDIR@/valadoc',
vala_sources,
],
build_by_default: true,
install: true,
install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name())
)
else
custom_target('valadoc',
input: vala_sources,
output: 'valadoc',
command: [ valadoc,
'--use-svg-images',
'--doclet=html',
'--force',
'--package-name=@0@'.format(meson.project_name()),
'--package-version=@0@'.format(meson.project_version()),
'--pkg=gtk+-3.0',
'--pkg=libpq',
'--vapidir=@0@'.format(join_paths(meson.source_root(), 'src/vapi')),
'--directory=@OUTDIR@/valadoc',
vala_sources,
],
build_by_default: true,
install: true,
install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name())
)
endif
endif
install_data('trabajoSemestral(E1).pdf', install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()))
install_data('MER.dia', install_dir: join_paths(get_option('datadir'), 'doc', meson.project_name()))