pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name() moduledir = pkgdatadir / 'weegtk' gnome = import('gnome') gnome.compile_resources('weegtk', 'weegtk.gresource.xml', gresource_bundle: true, install: true, install_dir: pkgdatadir, ) python = import('python') conf = configuration_data() conf.set('PYTHON', python.find_installation('python3').full_path()) conf.set('VERSION', meson.project_version()) conf.set('localedir', get_option('prefix') / get_option('localedir')) conf.set('pkgdatadir', pkgdatadir) configure_file( input: 'weegtk.in', output: 'weegtk', configuration: conf, install: true, install_dir: get_option('bindir'), install_mode: 'r-xr-xr-x' ) weegtk_sources = [ '__init__.py', 'main.py', 'window.py', 'config.py', 'chat.py', 'message.py', 'preferences.py', 'relay/network.py', 'relay/protocol.py', 'relay/color.py', 'relay/netfile.py' ] install_data(weegtk_sources, install_dir: moduledir)