-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmeson.build
82 lines (68 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
project(
'iwgtk',
'c',
version: '0.9',
license: 'GPL-3.0-or-later',
default_options: ['buildtype=release'],
meson_version: '>=0.60.0'
)
prefix = get_option('prefix')
sysconfdir = get_option('sysconfdir')
datadir = get_option('datadir')
libdir = get_option('libdir')
mandir = get_option('mandir')
localedir = get_option('localedir')
add_project_arguments(
'-D SYSCONFDIR="@0@"'.format(prefix / sysconfdir),
'-D LOCALEDIR="@0@"'.format(prefix / localedir),
'-D PACKAGE="@0@"'.format(meson.project_name()),
'-D VERSION="@0@"'.format(meson.project_version()),
language: 'c'
)
subdir('src')
dependencies = [
dependency('gtk4', version: '>=4.12'),
dependency('libqrencode')
]
executable(
'iwgtk',
sources: src_files,
dependencies: dependencies,
install: true
)
subdir('po')
scdoc = find_program('scdoc', native: true)
foreach i: [1,5]
name = 'iwgtk.@0@'.format(i)
src = 'misc/@[email protected]'.format(name)
dir = mandir / 'man@0@'.format(i)
custom_target(
input: src,
output: name,
command: scdoc,
feed: true,
capture: true,
install: true,
install_dir: dir
)
endforeach
install_data(
'misc/iwgtk.conf',
install_dir: sysconfdir
)
install_data(
'misc/iwgtk-indicator.desktop',
install_dir: sysconfdir / 'xdg/autostart'
)
install_data(
'misc/iwgtk.service',
install_dir: libdir / 'systemd/user'
)
install_data(
'misc/org.twosheds.iwgtk.desktop',
install_dir: datadir / 'applications'
)
install_data(
'misc/iwgtk.svg',
install_dir: datadir / 'icons/hicolor/scalable/apps'
)