2020-01-14 10:42:24 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
|
|
2018-09-19 13:34:55 +02:00
|
|
|
sources = files(
|
|
|
|
|
'nmi-cmdline-reader.c',
|
2019-09-02 17:11:05 +02:00
|
|
|
'nmi-dt-reader.c',
|
2018-10-18 12:50:20 +02:00
|
|
|
'nmi-ibft-reader.c',
|
2018-09-19 13:34:55 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
libnmi_core = static_library(
|
|
|
|
|
'nmi-core',
|
|
|
|
|
sources: sources,
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: daemon_nm_default_dep,
|
2019-09-09 11:40:11 +02:00
|
|
|
c_args: daemon_c_flags,
|
2018-09-19 13:34:55 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
name = 'nm-initrd-generator'
|
2019-09-09 11:40:11 +02:00
|
|
|
|
2019-09-11 08:25:18 +02:00
|
|
|
links = [
|
|
|
|
|
libnetwork_manager_base,
|
|
|
|
|
libnmi_core,
|
|
|
|
|
]
|
|
|
|
|
|
2018-09-19 13:34:55 +02:00
|
|
|
executable(
|
|
|
|
|
name,
|
|
|
|
|
name + '.c',
|
2019-09-07 23:00:41 +02:00
|
|
|
dependencies: daemon_nm_default_dep,
|
2019-09-09 11:40:11 +02:00
|
|
|
c_args: daemon_c_flags,
|
2019-09-11 08:25:18 +02:00
|
|
|
link_with: links,
|
2018-09-19 13:34:55 +02:00
|
|
|
link_args: ldflags_linker_script_binary,
|
|
|
|
|
link_depends: linker_script_binary,
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: nm_libexecdir,
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if enable_tests
|
|
|
|
|
subdir('tests')
|
|
|
|
|
endif
|