-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
55 lines (46 loc) · 1.07 KB
/
meson.build
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
project('tweaks-lite',
version: '1.0.0',
meson_version: '>= 1.0.0',
default_options: [ 'warning_level=2', 'werror=false', ],
)
i18n = import('i18n')
gnome = import('gnome')
# Python setup
python = import('python')
python_installation = python.find_installation('python3',
required: true,
modules: ['gi']
)
# Dependencies
dependency('gtk4')
dependency('libadwaita-1')
# Installation directories
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
python_dir = python_installation.get_install_dir()
# Install main executable
install_data(
'src/main.py',
install_dir: bindir,
install_mode: 'rwxr-xr-x',
rename: ['tweaks-lite']
)
# Install Python package
install_subdir(
'src/tweakslite',
install_dir: python_dir,
exclude_files: ['__pycache__']
)
# Install py.typed marker
install_data(
'src/tweakslite/py.typed',
install_dir: join_paths(python_dir, 'tweakslite')
)
# Process subdirectories
subdir('data')
subdir('po')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true,
)