-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
63 lines (52 loc) · 1.3 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
56
57
58
59
60
61
62
63
project(
'mmarchitect', 'vala', 'c',
version: '0.6.0dev0',
license: 'BSD',
# license_files: ['COPYING']
)
gnome = import('gnome')
i18n = import('i18n')
version = meson.project_version()
project_name = meson.project_name()
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
localedir = join_paths(prefix, get_option('localedir'))
pkgdatadir = join_paths(datadir, project_name)
dependencies = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gmodule-2.0'),
dependency('gtk+-3.0'),
dependency('cairo'),
dependency('libxml-2.0'),
dependency('gee-0.8'),
dependency('librsvg-2.0'),
]
subdir('ui')
subdir('icons')
subdir('misc')
subdir('po')
subdir('src')
install_data(
install_dir: pkgdatadir,
sources: ['COPYING', 'AUTHORS', 'README.md', 'ChangeLog'])
install_data(
'misc' / project_name + '.desktop',
install_dir: datadir / 'applications'
)
install_data(
'misc' / project_name + '.xml',
install_dir: datadir / 'mime' / 'packages'
)
summary = [
'',
'------',
'@0@ @1@'.format(project_name, version),
'',
'Directories:',
' prefix: @0@'.format(prefix),
' datadir: @0@'.format(datadir),
'------',
]
message('\n'.join(summary))