meson: Improve nmcli build

The dependencies used in the build of `nmcli` has been reviewed and
removed the unnecessary ones. The used compiler flags has also been
moved to one line.
This commit is contained in:
Iñigo Martínez 2019-09-11 12:15:16 +02:00 committed by Thomas Haller
parent f5d74ce179
commit 8a5a38f74a

View file

@ -19,17 +19,11 @@ sources = files(
)
deps = [
libnm_dep,
libnmc_base_dep,
libnmc_dep,
libnm_nm_default_dep,
readline_dep,
]
c_flags = clients_c_flags + [
'-DG_LOG_DOMAIN="@0@"'.format(name),
]
if enable_polkit_agent
sources += nm_polkit_listener
@ -40,7 +34,7 @@ executable(
name,
sources,
dependencies: deps,
c_args: c_flags,
c_args: clients_c_flags + ['-DG_LOG_DOMAIN="@0@"'.format(name)],
link_args: ldflags_linker_script_binary,
link_depends: linker_script_binary,
install: true,