This repository was archived by the owner on Mar 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
47 lines (39 loc) · 1.31 KB
/
meson.build
File metadata and controls
47 lines (39 loc) · 1.31 KB
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
project('dailydriver',
version: '0.1.0',
meson_version: '>= 0.62.0',
default_options: ['warning_level=2', 'werror=false'],
)
i18n = import('i18n')
gnome = import('gnome')
python = import('python')
py_installation = python.find_installation('python3')
dependency('glib-2.0')
dependency('gtk4', version: '>= 4.10')
dependency('libadwaita-1', version: '>= 1.4')
APPLICATION_ID = 'io.github.gregfelice.DailyDriver'
PKGDATA_DIR = get_option('prefix') / get_option('datadir') / meson.project_name()
# Use Python's purelib for module installation (mesonpy compatible)
MODULE_DIR = py_installation.get_install_dir() / 'dailydriver'
conf = configuration_data()
conf.set('APPLICATION_ID', APPLICATION_ID)
conf.set('VERSION', meson.project_version())
conf.set('PKGDATA_DIR', PKGDATA_DIR)
conf.set('localedir', get_option('prefix') / get_option('localedir'))
conf.set('pythondir', py_installation.get_install_dir())
# Launcher script - configured at root to avoid build dir conflicts with src/dailydriver/
configure_file(
input: 'src/dailydriver.in',
output: 'dailydriver',
configuration: conf,
install: true,
install_dir: get_option('bindir'),
install_mode: 'rwxr-xr-x'
)
subdir('data')
subdir('src')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)