-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
44 lines (37 loc) · 929 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
project(
'gamepad_idle_inhibit',
'c',
license: 'MIT',
version: '0.2.1',
default_options: 'c_std=c99'
)
is_build_debug = get_option('buildtype').startswith('debug')
cc = meson.get_compiler('c')
add_project_arguments(
[
'-funroll-loops',
'-fomit-frame-pointer',
'-DCOMPILER_GCC=' + (cc.get_id() == 'gcc').to_int().to_string(),
'-DCOMPILER_CLANG=' + (cc.get_id() == 'clang').to_int().to_string(),
'-DGAMEPAD_IDLE_INHIBIT_DEBUG=' + is_build_debug.to_int().to_string(),
],
language: 'c'
)
libevdev = dependency('libevdev')
liburing = dependency('liburing')
wayland_client = dependency('wayland-client')
wayland_protocols = dependency('wayland-protocols', native: true)
subdir('protocol')
sources = files([
'src/main.c'
])
executable(
'gamepad_idle_inhibit',
sources: sources + wl_protocols_src,
dependencies: [
libevdev,
liburing,
wayland_client,
],
install: true,
)