project( 'meld', version: '3.21.2', meson_version: '>= 0.49.0', ) python = import('python') i18n = import('i18n') gnome = import('gnome') python3 = python.find_installation('python3') if not python3.found() error('Python 3 is required to build and use Meld') endif # These requirements are kept in both `bin/meld` and `meson.build`. If you # update one, update the other. dependency('python3', version : '>= 3.6') dependency('gtk+-3.0', version: '>= 3.20') dependency('glib-2.0', version: '>= 2.48') dependency('gtksourceview-4', version: '>= 4.0.0') dependency('pygobject-3.0', version: '>= 3.30') dependency('py3cairo', version: '>= 1.15.0') profile = get_option('profile') name_suffix = (profile == 'Devel' ? ' (Development Snapshot)' : '') resource_base_id = 'org.gnome.meld' application_id_no_profile = 'org.gnome.Meld' application_id = 'org.gnome.Meld@0@'.format(profile) prefix = get_option('prefix') bindir = get_option('bindir') datadir = get_option('datadir') localedir = get_option('localedir') mandir = get_option('mandir') icondir = datadir / 'icons' pkgdatadir = datadir / meson.project_name() itsdir = meson.current_source_dir() / 'gettext' podir = meson.current_source_dir() / 'po' gio_schemasdir = dependency('gio-2.0').get_pkgconfig_variable( 'schemasdir', define_variable: ['datadir', datadir], default: datadir / 'glib-2.0/schemas', ) subdir('meld') subdir('data') subdir('help') subdir('po') install_data('bin/meld', install_dir: bindir) meson.add_install_script('meson_post_install.py', get_option('byte-compile') ? python3.get_install_dir() : '')