project( 'fungus-launcher', version: '1.15.5', meson_version: '>=1.2.0', license: 'MIT', license_files: 'LICENSE', ) # init developer environment dev_env = environment() dev_env.prepend('PYTHONPATH', meson.current_source_dir()) meson.add_devenv(dev_env) prefix = get_option('prefix') is_rpm = (prefix == '/usr' or prefix == '/usr/local') ? 'true' : 'false' pkg_version = get_option('pkg_version') release = get_option('release') py = import('python').find_installation() python_site_packages = py.get_install_dir() fs = import('fs') gnome = import('gnome') subdir('assets') subdir('data') subdir('fungus') conf_data = configuration_data() conf_data.set('IS_RPM_BUILD', is_rpm) conf_data.set('PYTHON_SITE_PACKAGES', python_site_packages) conf_data.set('VERSION', pkg_version) conf_data.set('RELEASE', release) python_executables = { 'fungus-launcher.py': 'fungus-launcher', 'fungus-run.py': 'fungus-run', 'fungus-proton-manager.py': 'fungus-proton-manager', } foreach input_file, output_name : python_executables configure_file( input: input_file, output: output_name, configuration: conf_data, install: true, install_dir: get_option('bindir'), install_mode: 'rwxr-xr-x' ) endforeach install_data( 'LICENSE', install_dir: get_option('datadir') / 'licenses' / meson.project_name(), ) gnome.post_install( gtk_update_icon_cache: true, )