-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
45 lines (37 loc) · 956 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
44
45
# gtklock-powerbar-module
# Copyright (c) 2024 Jovan Lanik
project(
'gtklock-powerbar-module', 'c',
version : '4.0.0',
license : 'GPLv3',
default_options : ['c_std=c11'],
)
gtk = dependency('gtk+-3.0')
gmodule_export = dependency('gmodule-export-2.0')
dependencies = [
gtk,
gmodule_export,
]
gtklock_powerbar_module_sources = files('source.c')
gnome = import('gnome')
icons_resources = gnome.compile_resources(
'icons-resources', 'icons.gresource.xml',
c_name : 'icons',
)
gtklock_powerbar_module_set = [
gtklock_powerbar_module_sources,
icons_resources,
]
if import('fs').is_absolute(get_option('libdir'))
gtklock_module_dir = get_option('libdir') / 'gtklock'
else
gtklock_module_dir = get_option('prefix') / get_option('libdir') / 'gtklock'
endif
shared_library(
'powerbar-module',
gtklock_powerbar_module_set,
name_prefix : '',
dependencies : dependencies,
install : true,
install_dir : gtklock_module_dir,
)