51 lines
1.5 KiB
Meson
51 lines
1.5 KiB
Meson
docs_enabled = get_option('valadocs')
|
|
valadoc = find_program('valadoc', required: docs_enabled)
|
|
if docs_enabled
|
|
docs_deps = get_option('valadocs_deps')
|
|
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()))
|