-
Notifications
You must be signed in to change notification settings - Fork 4
/
meson.build
53 lines (40 loc) · 995 Bytes
/
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
project('ianny', 'rust',
version : '1.0.0',
license : 'GPL3',
default_options : ['warning_level=2'])
application_id = 'io.github.zefr0x.ianny'
# Get options
buildtype = get_option('buildtype')
prefix = get_option('prefix')
bindir = prefix / get_option('bindir')
rustc_target = get_option('rustc_target')
# Check for deps
dbus_dep = dependency('dbus-1', version : '>=1.6.0')
desktop_utils = find_program('desktop-file-validate', required: false)
cargo = find_program('cargo', required: true)
# Desktop file
desktop_file ='@0@.desktop'.format(application_id)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [desktop_file]
)
endif
# Build summaries
summary(
{
'Build Type': buildtype,
},
section: 'Build Summary',
)
# Other meson.build files
subdir('src/')
subdir('po/')
# Install .desktop files
install_data(
desktop_file,
install_dir: 'share/applications'
)
install_data(
desktop_file,
install_dir: '/etc/xdg/autostart/'
)