1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
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,
)
|