mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
src: implement config file lookup and initial parsing
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`.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
project (
|
||||
'eg25manager',
|
||||
'eg25-manager',
|
||||
'c',
|
||||
version : '0.1.2',
|
||||
license : 'GPLv3+',
|
||||
@@ -41,6 +41,12 @@ 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'),
|
||||
|
Reference in New Issue
Block a user