-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathmeson.build
More file actions
40 lines (34 loc) · 880 Bytes
/
meson.build
File metadata and controls
40 lines (34 loc) · 880 Bytes
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
module_name = 'snippets'
module_files = [
'plugin.vala'
]
json_dep = dependency('json-glib-1.0')
module_deps = [
codecore_dep,
json_dep
]
shared_module(
module_name,
module_files,
dependencies: module_deps,
install: true,
install_dir: join_paths(pluginsdir, module_name),
)
install_data(
'snippets.json',
install_dir: join_paths(pluginsdir, module_name),
)
custom_target(module_name + '.plugin_merge',
input: module_name + '.plugin',
output: module_name + '.plugin',
command : [msgfmt,
'--desktop',
'--keyword=Description',
'--keyword=Name',
'-d' + join_paths(meson.source_root (), 'po', 'plugins'),
'--template=@INPUT@',
'-o@OUTPUT@',
],
install : true,
install_dir: join_paths(pluginsdir, module_name),
)