Major refactor with GNOME Builder & Flatpak support

This commit is contained in:
Stephen Horvath
2025-03-20 15:02:18 +10:00
parent ac015ab469
commit 35e325b133
40 changed files with 1432 additions and 851 deletions

39
yafi/meson.build Normal file
View File

@@ -0,0 +1,39 @@
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',
'hardware.py',
]
install_data(yafi_sources, install_dir: moduledir)