-
Notifications
You must be signed in to change notification settings - Fork 6
/
meson.build
58 lines (49 loc) · 1.84 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
57
58
project(
'wf-panel-pi',
'c',
'cpp',
version: '0.8.0',
license: 'MIT',
meson_version: '>=0.51.0',
default_options: [
'cpp_std=c++17',
'c_std=c11',
'warning_level=2',
'werror=false',
],
)
add_project_arguments(['-Wno-pedantic', '-Wno-unused-parameter', '-Wno-parentheses'], language: 'cpp')
share_dir = join_paths(get_option('prefix'), 'share')
resource_dir = join_paths(share_dir, 'wf-panel-pi')
applications_dir = join_paths(share_dir, 'applications')
metadata_dir = join_paths(resource_dir, 'metadata')
ui_dir = join_paths(resource_dir, 'ui')
sysconf_dir = join_paths(get_option('prefix'), get_option('sysconfdir'))
gettext_package = meson.project_name()
add_project_arguments('-DMETADATA_DIR="' + metadata_dir + '"', language : 'cpp')
add_project_arguments('-DPACKAGE_DATA_DIR="' + resource_dir + '"', language : [ 'c', 'cpp' ])
add_project_arguments('-DGETTEXT_PACKAGE="' + gettext_package + '"', language : [ 'c', 'cpp' ])
add_project_arguments('-DPACKAGE_LOCALE_DIR="' + share_dir + '/locale"', language : [ 'c', 'cpp' ])
wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols')
subdir('proto')
gtkmm = dependency('gtkmm-3.0', version: '>=3.24')
deps = [ wf_protos, gtkmm ]
subdir('metadata')
subdir('data')
subdir('src')
subdir('po')
pkgconfig = import('pkgconfig')
pkgconfig.generate(
version: meson.project_version(),
filebase: meson.project_name(),
name: meson.project_name(),
description: 'Panel for Raspberry Pi Wayland desktop',
requires: gtkmm,
subdirs: 'wf-panel-pi',
variables: ['metadatadir=' + metadata_dir,
'uidir=' + ui_dir,
'sysconfdir=' + sysconf_dir,
'resourcedir=' + resource_dir,
'plugindir=${libdir}/wf-panel-pi']
)