-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
81 lines (69 loc) · 2.36 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
project('com.github.sapoturge.froggum', 'vala', 'c')
gnome = import('gnome')
i18n = import('i18n')
gresource_froggum = gnome.compile_resources(
'gresource_froggum',
join_paths('data', meson.project_name() + '.gresource.xml'),
source_dir: 'data'
)
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language:'c')
cc = meson.get_compiler('c')
executable(
meson.project_name(),
'src/Application.vala',
'src/widgets/EditorView.vala',
'src/widgets/PathRow.vala',
'src/widgets/Viewport.vala',
'src/widgets/PatternButton.vala',
'src/widgets/PatternChooserDialog.vala',
'src/widgets/GradientEditor.vala',
'src/widgets/Tutorial.vala',
'src/data/Image.vala',
'src/data/Path.vala',
'src/data/Segment.vala',
'src/data/Point.vala',
'src/data/Pattern.vala',
'src/data/Command.vala',
'src/data/CommandStack.vala',
'src/data/Undoable.vala',
gresource_froggum,
dependencies: [
dependency('gtk+-3.0'),
dependency('granite'),
dependency('libxml-2.0'),
cc.find_library('m', required: false)
],
install: true
)
i18n.merge_file(
input: join_paths('data', meson.project_name() + '.desktop.in'),
output: meson.project_name() + '.desktop',
po_dir: join_paths(meson.source_root(), 'po'),
type: 'desktop',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
i18n.merge_file(
input: join_paths('data', meson.project_name() + '.appdata.xml.in'),
output: meson.project_name() + '.appdata.xml',
po_dir: join_paths(meson.source_root(), 'po'),
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo')
)
subdir('po')
icon_sizes = ['16', '24', '32', '48', '64', '128']
foreach i : icon_sizes
install_data(
join_paths('data', 'icons', i, meson.project_name() + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i, 'apps')
)
install_data(
join_paths('data', 'icons', i, meson.project_name() + '.svg'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', i + 'x' + i + '@2', 'apps')
)
endforeach
install_data(
join_paths ('data', meson.project_name() + '.gschema.xml'),
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
)
meson.add_install_script('meson/post_install.py')