pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name() moduledir = pkgdatadir / 'ximper_unified_theme_switcher_gui_gtk4' gnome = import('gnome') gnome.compile_resources('ximper-unified-theme-switcher-gui', 'ximper-unified-theme-switcher-gui.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: 'ximper-unified-theme-switcher-gui.in', output: 'ximper-unified-theme-switcher-gui', configuration: conf, install: true, install_dir: get_option('bindir'), install_mode: 'r-xr-xr-x' ) ximper_unified_theme_switcher_gui_gtk4_sources = [ '__init__.py', 'main.py', 'window.py', 'utils.py', ] install_data(ximper_unified_theme_switcher_gui_gtk4_sources, install_dir: moduledir)