mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 12:20:12 +01:00
The install directories of those targets that match the default install directories have been removed because they are redundant. This also allows a simple meson build files and it is unnecessary to create some paths. https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00078.html
58 lines
957 B
Meson
58 lines
957 B
Meson
# 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'
|
|
)
|
|
|
|
incs = [
|
|
top_inc,
|
|
shared_inc,
|
|
libnm_core_inc
|
|
]
|
|
|
|
deps = [
|
|
glib_dep,
|
|
libnm_dep,
|
|
libnmc_dep,
|
|
libnmc_base_dep,
|
|
readline_dep
|
|
]
|
|
|
|
cflags = [
|
|
'-DG_LOG_DOMAIN="nmcli"',
|
|
'-DNMCLI_LOCALEDIR="@0@"'.format(nm_localedir)
|
|
]
|
|
|
|
ldflags = []
|
|
if have_version_script
|
|
ldflags += '-Wl,--version-script,@0@'.format(linker_script_binary)
|
|
endif
|
|
|
|
if enable_polkit_agent
|
|
sources += nm_polkit_listener
|
|
|
|
deps += polkit_agent_dep
|
|
endif
|
|
|
|
executable(
|
|
'nmcli',
|
|
sources + [libnm_core_enum[1]],
|
|
include_directories: incs,
|
|
dependencies: deps,
|
|
c_args: cflags,
|
|
link_args: ldflags,
|
|
link_depends: linker_script_binary,
|
|
install: true
|
|
)
|