From ee71fb0dd0cd3e8d1cfdd2eae9b4b4e741e51d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 24 Jan 2022 08:41:05 +0100 Subject: Start a basic user guide Move some information out there from the README. --- meson.build | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 6b92b6f..9ef54de 100644 --- a/meson.build +++ b/meson.build @@ -73,9 +73,13 @@ if not get_option('resvg').disabled() endif endif +# XXX: https://github.com/mesonbuild/meson/issues/825 +docdir = get_option('datadir') / 'doc' / meson.project_name() + conf = configuration_data() conf.set_quoted('PROJECT_NAME', meson.project_name()) conf.set_quoted('PROJECT_VERSION', meson.project_version()) +conf.set_quoted('PROJECT_DOCDIR', get_option('prefix') / docdir) conf.set('HAVE_JPEG_QS', libjpegqs.found()) conf.set('HAVE_LCMS2', lcms2.found()) conf.set('HAVE_LIBRAW', libraw.found()) @@ -111,7 +115,7 @@ endif # XXX: With gdk-pixbuf, this even depends on currently installed modules. if meson.is_cross_build() install_data('fiv.desktop', - install_dir : get_option('datadir') + '/applications') + install_dir : get_option('datadir') / 'applications') else # XXX: The exe path may not contain spaces--quoting is a bitch in Meson. desktop = custom_target('desktop', @@ -122,11 +126,12 @@ else $0 = $0 type ";" } 1' "exe=$1" "$2"''', 'sh', exe, '@INPUT@'], capture : true, install : true, - install_dir : get_option('datadir') + '/applications', + install_dir : get_option('datadir') / 'applications', ) endif install_data('fiv-browse.desktop', - install_dir : get_option('datadir') + '/applications') + install_dir : get_option('datadir') / 'applications') install_data('fiv.svg', - install_dir : get_option('datadir') + '/icons/hicolor/scalable/apps') + install_dir : get_option('datadir') / 'icons/hicolor/scalable/apps') +install_subdir('docs', install_dir : docdir, strip_directory : true) -- cgit v1.2.3