sernatur/docs/meson.build
2018-10-18 16:31:50 -03:00

49 lines
1.4 KiB
Meson

docs_deps = get_option('valadocs_deps')
if docs_enabled
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()))