mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
This commit prepares the use of device-specific configuration files. These files should be named after the device-tree `compatible` string with the `toml` extension. `eg25-manager` will search for config files in `<prefix>/etc/eg25-manager` first (or `/etc/eg25-manager` if prefix is `/usr`), then in `<prefix>/share/eg25-manager`.
61 lines
1.4 KiB
Meson
61 lines
1.4 KiB
Meson
#
|
|
# Copyright (C) 2019 Purism SPC
|
|
# Copyright (C) 2020 Arnaud Ferraris <arnaud.ferraris@gmail.com>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
|
|
project (
|
|
'eg25-manager',
|
|
'c',
|
|
version : '0.1.2',
|
|
license : 'GPLv3+',
|
|
meson_version : '>= 0.50.0',
|
|
default_options :
|
|
[
|
|
'warning_level=1',
|
|
'buildtype=debugoptimized',
|
|
'c_std=gnu11'
|
|
],
|
|
)
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
app_name = meson.project_name()
|
|
|
|
prefix = get_option('prefix')
|
|
datadir = get_option('datadir')
|
|
sysconfdir = get_option('sysconfdir')
|
|
bindir = join_paths(prefix, get_option('bindir'))
|
|
udevrulesdir = join_paths(prefix, 'lib/udev/rules.d')
|
|
|
|
if datadir.startswith('/')
|
|
full_datadir = datadir
|
|
else
|
|
full_datadir = join_paths(prefix, datadir)
|
|
endif
|
|
|
|
if sysconfdir.startswith('/')
|
|
full_sysconfdir = sysconfdir
|
|
else
|
|
full_sysconfdir = join_paths(prefix, sysconfdir)
|
|
endif
|
|
|
|
eg25_confdir = join_paths(full_sysconfdir, meson.project_name())
|
|
eg25_datadir = join_paths(full_datadir, meson.project_name())
|
|
|
|
add_global_arguments('-D@0@="@1@"'.format('EG25_CONFDIR', eg25_confdir), language : 'c')
|
|
add_global_arguments('-D@0@="@1@"'.format('EG25_DATADIR', eg25_datadir), language : 'c')
|
|
|
|
mgr_deps = [
|
|
dependency('glib-2.0'),
|
|
dependency('gio-unix-2.0'),
|
|
dependency('gudev-1.0'),
|
|
dependency('libgpiod'),
|
|
dependency('libusb-1.0'),
|
|
dependency('mm-glib'),
|
|
]
|
|
|
|
subdir('src')
|
|
subdir('udev')
|