1project('lollypop', 2 version: '1.4.16', 3 meson_version: '>= 0.46.0' 4) 5revision = run_command('bin/revision.sh').stdout().strip() 6if revision == '' 7 revision=meson.project_version() 8endif 9 10if get_option('devel').enabled() 11 appid='None' 12else 13 appid='org.gnome.Lollypop' 14endif 15 16i18n = import('i18n') 17py_mod = import('python') 18project_id = 'org.gnome.Lollypop' 19 20message('Looking for dependencies') 21py_installation = py_mod.find_installation('python3') 22if not py_installation.found() 23 error('No valid python3 binary found') 24else 25 message('Found python3 binary') 26endif 27 28# Dependencies 29dependency('gobject-introspection-1.0', version: '>= 1.35.0') 30dependency('gtk+-3.0', version: '>= 3.22') 31dependency('libsoup-2.4') 32dependency('glib-2.0') 33dependency('pygobject-3.0', version: '>= 3.29.1') 34 35python_dir = join_paths(get_option('prefix'), py_installation.get_install_dir()) 36LIBEXEC_DIR = join_paths(get_option('prefix'), get_option('libexecdir')) 37DATA_DIR = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name()) 38bindir = join_paths(get_option('prefix'), get_option('bindir')) 39 40conf = configuration_data() 41conf.set('PACKAGE_URL', 'https://wiki.gnome.org/Apps/Lollypop') 42conf.set('DATA_DIR', DATA_DIR) 43conf.set('LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale')) 44conf.set('PYTHON_DIR', python_dir) 45#conf.set('PYTHON_EXEC_DIR', join_paths(get_option('prefix'), py_installation.get_path('stdlib'))) 46conf.set('libexecdir', LIBEXEC_DIR) 47conf.set('VERSION', meson.project_version()) 48conf.set('REVISION', revision) 49conf.set('APPID', appid) 50 51subdir('data') 52subproject('po') 53subdir('search-provider') 54 55install_subdir( 56 'lollypop', 57 install_dir: python_dir 58) 59 60#install_subdir( 61# 'thirdparty', 62# install_dir: join_paths(python_dir, 'lollypop') 63#) 64 65message('Preparing init file') 66configure_file( 67 input: 'lollypop.in', 68 output: 'lollypop', 69 configuration: conf, 70 install_dir: bindir 71) 72 73meson.add_install_script('meson_post_install.py') 74