-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
44 lines (37 loc) · 905 Bytes
/
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
project(
'celtic-magic-button',
['vala', 'c'],
version: '0.0.1'
)
applet_dir = join_paths(get_option('prefix'), get_option('libdir'), 'budgie-desktop', 'plugins', meson.project_name())
icon_dir = join_paths(get_option('prefix'), 'share', 'icons', 'hicolor', 'scalable', 'apps')
srcs = [
'DBusInterface.vala',
'CelticMagicButtonApplet.vala'
]
shared_library(
'celticmagicbuttonapplet',
srcs,
dependencies: [
dependency('gtk+-3.0'),
dependency('budgie-1.0', version: '>=2'),
dependency('libpeas-1.0', version: '>=1.8.0')
],
vala_args: [
'--pkg', 'libpeas-1.0',
'--pkg', 'gtk+-3.0'
],
install: true,
install_dir: applet_dir
)
install_data(
'CelticMagicButtonApplet.plugin',
install_dir: applet_dir
)
install_data(
'celtic-magic-button.svg',
install_dir: icon_dir
)
if get_option('post_install')
meson.add_install_script('post-install.sh')
endif