mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-04-19 16:50:36 +00:00
Major refactor with GNOME Builder & Flatpak support
This commit is contained in:
39
yafi/meson.build
Normal file
39
yafi/meson.build
Normal 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)
|
||||
Reference in New Issue
Block a user