mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-09 20:18:34 +02:00
The variable holding the compiler flags, `cflags`, has been renamed to `c_flags` to be consistent with the rest of build files. Different objects used in the `test-dispatcher-envp` target have been grouped together. The dependency over the `libnm` library has been removed as it is unnecessary.
47 lines
771 B
Meson
47 lines
771 B
Meson
name = 'nmcli'
|
|
|
|
# FIXME: nmcli-completion should be renamed to nmcli
|
|
install_data(
|
|
'nmcli-completion',
|
|
install_dir: join_paths(nm_datadir, 'bash-completion', 'completions'),
|
|
)
|
|
|
|
sources = files(
|
|
'agent.c',
|
|
'common.c',
|
|
'connections.c',
|
|
'devices.c',
|
|
'general.c',
|
|
'nmcli.c',
|
|
'polkit-agent.c',
|
|
'settings.c',
|
|
'utils.c',
|
|
)
|
|
|
|
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
|
|
|
|
deps += polkit_agent_dep
|
|
endif
|
|
|
|
executable(
|
|
name,
|
|
sources,
|
|
dependencies: deps,
|
|
c_args: c_flags,
|
|
link_args: ldflags_linker_script_binary,
|
|
link_depends: linker_script_binary,
|
|
install: true,
|
|
)
|