-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmeson.build
41 lines (33 loc) · 1.34 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
project ('microflash', 'c',
meson_version: '>= 0.41.0')
gnome = import ('gnome')
i18n = import ('i18n')
datadir = join_paths (get_option ('prefix'), get_option ('datadir'))
localedir = join_paths (get_option ('prefix'), get_option ('localedir'))
glib_dep = dependency ('glib-2.0')
gio_dep = dependency ('gio-2.0')
gudev_dep = dependency ('gudev-1.0')
json_glib_dep = dependency ('json-glib-1.0')
gtk_dep = dependency ('gtk+-3.0')
i18n.merge_file (input: 'microflash.appdata.xml',
output: 'microflash.appdata.xml',
install: true,
install_dir: join_paths (datadir, 'metainfo'),
po_dir: 'po')
i18n.merge_file (input: 'microflash.desktop',
output: 'microflash.desktop',
install: true,
install_dir: join_paths (datadir, 'applications'),
po_dir: 'po',
type: 'desktop')
i18n.merge_file (input: 'microflash.mime.xml',
output: 'microflash.xml',
install: true,
install_dir: join_paths (datadir, 'mime', 'packages'),
po_dir: 'po',
data_dirs: '.',
type: 'xml')
install_data ('microflash.png',
install_dir: join_paths (datadir, 'icons', 'hicolor', '256x256', 'apps'))
subdir ('po')
subdir ('src')