-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
45 lines (36 loc) · 1.07 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
# SPDX-FileCopyrightText: 2023 Oliver Kästner <[email protected]>
# SPDX-License-Identifier: LGPL-3.0-or-later
project('ezcellular', 'cpp',
version: '0.1.1',
default_options: [
'buildtype=debugoptimized',
'cpp_std=c++17',
],
meson_version: '>= 0.53.0',
)
# paths
prefix = get_option('prefix')
libdir = join_paths(prefix, get_option('libdir'))
datadir = join_paths(prefix, get_option('datadir'))
includedir = join_paths(prefix, get_option('includedir'))
# options
docs = get_option('docs')
examples = get_option('examples')
# dependencies
pkg = import('pkgconfig')
modemmanager = dependency('ModemManager', version: '>=1.20')
sdbus = dependency('sdbus-c++', version: '>=0.8')
include_dirs = include_directories(['.', 'ezcellular'])
subdir('ezcellular')
if docs
subdir('docs')
endif
subdir('examples')
summary({'prefix': prefix,
'libdir': libdir,
'includedir': includedir,
'datadir': datadir,
}, section: 'Install directories')
summary({'docs': docs,
'examples': examples,
}, section: 'Options')