mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-04-20 01:00:37 +00:00
41 lines
906 B
Meson
41 lines
906 B
Meson
pkgdatadir = get_option('prefix') / get_option('datadir') / meson.project_name()
|
|
moduledir = pkgdatadir / 'yafi'
|
|
gnome = import('gnome')
|
|
|
|
gnome.compile_resources('yafi',
|
|
'yafi.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: 'yafi.in',
|
|
output: 'yafi',
|
|
configuration: conf,
|
|
install: true,
|
|
install_dir: get_option('bindir'),
|
|
install_mode: 'r-xr-xr-x'
|
|
)
|
|
|
|
yafi_sources = [
|
|
'__init__.py',
|
|
'main.py',
|
|
'window.py',
|
|
'thermals.py',
|
|
'leds.py',
|
|
'battery.py',
|
|
'battery_limiter.py',
|
|
'hardware.py',
|
|
]
|
|
|
|
install_data(yafi_sources, install_dir: moduledir)
|