-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
48 lines (37 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
project('budgie-advanced-brightness-controller',
['vala', 'c'],
version: '0.1.0',
meson_version: '>=0.40.0',
license: 'GPL2')
am_cflags = [
'-fstack-protector',
'-pedantic',
'-Wstrict-prototypes',
'-Wundef',
'-Werror-implicit-function-declaration',
'-Wformat',
'-Wformat-security',
'-Werror=format-security',
'-Wconversion',
'-Wunused-variable',
'-Wunreachable-code',
'-Wall',
'-W'
]
add_global_arguments(am_cflags, language: 'c')
# Global path variable
prefix = get_option('prefix')
libdir = join_paths(prefix, get_option('libdir'))
datadir = join_paths(prefix, get_option('datadir'))
LOCALE_DIR = join_paths(prefix, get_option('localedir'))
VAPI_DIR = join_paths(meson.source_root(),
'vapi')
PIXMAPS_DIR = join_paths(datadir, 'pixmaps')
LIB_INSTALL_DIR = join_paths(prefix, libdir, 'budgie-desktop', 'plugins', meson.project_name())
DEPENDENCY_GNOME_SETTINGS_DAEMON = dependency('gnome-settings-daemon', version: '>=3.32.0')
DEPENDENCY_XRANDR = dependency('xrandr', version: '>=1.5.0')
DEPENDENCY_GTK = dependency('gtk+-3.0', version: '>=3.18')
DEPENDENCY_BUDGIE = dependency('budgie-1.0', version: '>=2')
message('Installing applet...')
subdir('src')
subdir('icons')