-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
51 lines (44 loc) · 1.28 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
project('bluedia',
version: '1.1.0',
meson_version: '>= 0.50.0'
)
# Python installation
python = import('python')
py_installation = python.find_installation('python3')
if not py_installation.found()
error('No valid python3 installation found')
endif
# Dependencies
dependency('gtk+-3.0', version: '>= 3.0')
# Installation paths
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
icondir = join_paths(datadir, 'icons', 'hicolor')
applicationsdir = join_paths(datadir, 'applications')
# Install Python script
install_data('src/bluedia.py',
install_dir: bindir,
rename: 'bluedia',
install_mode: 'rwxr-xr-x'
)
configure_file(
input: 'src/bluedia.py',
output: 'bluedia',
copy: true,
install: true,
install_dir: bindir,
install_mode: 'rwxr-xr-x'
)
# Install desktop file
install_data('data/io.codes.by.chetan.bluedia.desktop',
install_dir: applicationsdir
)
# Install icons
install_data('data/icons/io.codes.by.chetan.bluedia.png',
install_dir: join_paths(icondir, '256x256', 'apps')
)
# Install app metadata
install_data('data/io.codes.by.chetan.bluedia.xml',
install_dir: join_paths(datadir, 'metainfo')
)