-
Notifications
You must be signed in to change notification settings - Fork 52
/
meson.build
33 lines (26 loc) · 1.02 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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
# SPDX-FileCopyrightText: 2024 Matthias Weißer <[email protected]>
project('socketcand', 'c', version : '0.6.1')
conf = configuration_data()
top_inc = include_directories('.', 'include')
deps = [dependency('threads')]
enable_rc_script = get_option('rc_script')
enable_init_script = get_option('init_script')
# Check if libconfig is available
enable_libconfig = get_option('libconfig')
if enable_libconfig
conf.set_quoted('HAVE_LIBCONFIG', '1')
deps += dependency('libconfig')
endif
# Check if libsocketcan is available
enable_libsocketcan = get_option('libsocketcan')
if enable_libsocketcan
conf.set_quoted('HAVE_LIBSOCKETCAN', '1')
deps += dependency('libsocketcan')
endif
conf.set_quoted('PACKAGE_VERSION', meson.project_version())
conf.set_quoted('PACKAGE_NAME', meson.project_name())
conf.set_quoted('PACKAGE_BUGREPORT', 'https://github.com/linux-can/socketcand/issues')
configure_file(output : 'config.h', configuration : conf)
subdir('src')
subdir('files')