forked from SoumyaRanjanPatnaik/SwayAudioIdleInhibit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeson.build
More file actions
55 lines (50 loc) · 1.09 KB
/
Copy pathmeson.build
File metadata and controls
55 lines (50 loc) · 1.09 KB
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
project(
'SwayAudioIdleInhibit',
'cpp',
version: '0.2.0',
default_options: [
'c_std=c11',
'cpp_std=c++11',
'warning_level=2',
'werror=true',
],
)
add_project_arguments(
[
'-Wno-unused-parameter',
'-Wno-unused-result',
'-Wno-missing-braces',
'-Wno-format-zero-length',
'-Wno-missing-field-initializers',
'-Wundef',
'-Wvla',
'-Wlogical-op',
'-Wmissing-include-dirs',
'-Wpointer-arith',
'-Winit-self',
'-Wimplicit-fallthrough=2',
'-Wendif-labels',
'-Wstrict-aliasing=2',
'-Woverflow',
'-Walloca',
],
language: 'cpp',
)
logind_dep = dependency('lib' + get_option('logind-provider'), required: true)
add_project_arguments('-D', 'HAVE_' + get_option('logind-provider').to_upper(), language: 'cpp')
executable(
'sway-audio-idle-inhibit',
files(
'./src/data.cpp',
'./src/idle.cpp',
'./src/main.cpp',
'./src/pulse.cpp',
),
include_directories: include_directories('include'),
dependencies: [
dependency('libpulse', version: '>= 15.0'),
logind_dep,
],
install: true,
)
install_data('sway-audio-idle-inhibit.service', install_dir : '/usr/lib/systemd/user' )