1project('viewnior', 'c', 'cpp', 2 version: '1.7', 3 license: 'GPL3+', 4 meson_version: '>= 0.43.0' 5) 6 7add_global_arguments('-Wno-deprecated-declarations', language: 'c') 8 9# Directory variables 10datadir = get_option('datadir') 11# 12 13# Compiler variables 14cc = meson.get_compiler('c') 15# 16 17# Imports 18gnome = import('gnome') 19i18n = import('i18n') 20# 21 22# Dependencies 23glib_ver = '>= 2.32' 24 25viewnior_deps = [ 26 dependency('gtk+-2.0', version: '>= 2.20'), 27 dependency('glib-2.0', version: glib_ver), 28 dependency('gio-2.0', version: glib_ver), 29 dependency('shared-mime-info', version: '>= 0.20'), 30 dependency('gdk-pixbuf-2.0', version: '>= 0.21'), 31 dependency('exiv2', version: '>= 0.21'), 32] 33# 34 35# Configuration 36conf = configuration_data() 37 38conf.set_quoted('VERSION', meson.project_version()) 39conf.set_quoted('PACKAGE', 'viewnior') 40conf.set_quoted('PACKAGE_VERSION', meson.project_version()) 41conf.set_quoted('PACKAGE_STRING', 'viewnior ' + meson.project_version()) 42conf.set_quoted('GETTEXT_PACKAGE', 'viewnior') 43conf.set_quoted('PACKAGE_DATA_DIR', join_paths(get_option('prefix'), get_option('datadir'))) 44conf.set_quoted('PACKAGE_LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale')) 45 46configure_file(output: 'config.h', configuration: conf) 47# 48 49viewnior_include_dirs = include_directories('.') 50 51subdir('po') 52subdir('data') 53subdir('man') 54subdir('src') 55 56meson.add_install_script('meson_post_install.py')