-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
56 lines (46 loc) · 1.61 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
project('com.github.lafydev.kindypanel', 'vala', 'c')
#include the translations module
i18n=import('i18n')
#set our translation domain
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format (meson.project_name()),language:'c')
dependencies = [
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gtk+-3.0'),
dependency('gio-2.0'),
]
sources = files('src/Kindypanel.vala')
mes_icons = ['elementary-blanc', 'elementary-noir', 'elementary-bleu', 'halloween','flocon']
foreach m : mes_icons
install_data(
join_paths('data/icons', m + '.png'),
install_dir: join_paths(get_option('datadir'), 'kindypanel', 'icons')
)
endforeach
install_data(
join_paths('data/icons', meson.project_name() +'.png'),
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor','48x48','apps')
)
#installation de l'exe dans usr/bin
executable(meson.project_name(),
sources,
dependencies: dependencies,
install: true)
#translate and install our.desktop (vers le menu usr/share/applications)
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')
)
#translate and install our .xml (pour appcenter)
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')