blob: 468cd9543181e8536e4f78674ef43a377469b341 (
plain)
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
|
project('hinawa', 'c',
version: '4.0.2',
license: 'LGPL-2.1+',
meson_version: '>= 0.60.0',
)
version = meson.project_version().split('.')
major_version = version[0].to_int()
minor_version = version[1].to_int()
micro_version = version[2].to_int()
# Detect support level in Linux sound subsystem.
cc = meson.get_compiler('c')
backport_header_dir = []
if not cc.has_header_symbol('include/linux/firewire-cdev.h', 'FW_CDEV_EVENT_REQUEST3')
# Use backport header from Linux kernel v5.16 prepatch.
backport_header_dir += include_directories('include')
endif
# For g-i and documentation.
gnome = import('gnome')
subdir('src')
subdir('tests')
if get_option('doc')
subdir('doc')
endif
|