fiv/meson.build

29 lines
888 B
Meson
Raw Normal View History

2021-07-14 07:09:19 +02:00
project('fastiv', 'c', default_options : ['c_std=gnu99'], version : '0.1.0')
2021-09-16 17:34:28 +02:00
# TODO(p): Use libraw_r later, when we start parallelizing/preloading.
2021-09-16 12:35:36 +02:00
libraw = dependency('libraw', required : get_option('libraw'))
dependencies = [
dependency('gtk+-3.0'),
dependency('libturbojpeg'),
libraw,
2021-09-17 20:40:11 +02:00
meson.get_compiler('c').find_library('m', required : false),
2021-09-16 12:35:36 +02:00
]
2021-07-14 07:09:19 +02:00
conf = configuration_data()
conf.set_quoted('PROJECT_NAME', meson.project_name())
conf.set_quoted('PROJECT_VERSION', meson.project_version())
2021-09-16 12:35:36 +02:00
conf.set('HAVE_LIBRAW', libraw.found())
2021-07-14 07:09:19 +02:00
configure_file(
output : 'config.h',
configuration : conf,
)
executable('fastiv', 'fastiv.c', 'fastiv-view.c',
install : true,
dependencies : [dependencies])
2021-09-16 17:34:28 +02:00
install_data('fastiv.desktop',
install_dir : get_option('datadir') + '/applications')
install_data('fastiv.svg',
install_dir : get_option('datadir') + '/icons/hicolor/scalable/apps')