mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 18:50:31 +01:00
meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. [thaller@redhat.com: rebased patch and adjusted for iwd support] https://mail.gnome.org/archives/networkmanager-list/2017-December/msg00022.html
44 lines
646 B
Meson
44 lines
646 B
Meson
name = 'nm-online'
|
|
|
|
incs = [
|
|
top_inc,
|
|
shared_inc,
|
|
libnm_core_inc
|
|
]
|
|
|
|
deps = [
|
|
glib_dep,
|
|
libnm_dep
|
|
]
|
|
|
|
cflags = [
|
|
'-DG_LOG_DOMAIN="@0@"'.format(name),
|
|
'-DNMLOCALEDIR="@0@"'.format(nm_localedir)
|
|
]
|
|
|
|
ldflags = []
|
|
if have_version_script
|
|
ldflags += '-Wl,--version-script,@0@'.format(linker_script_binary)
|
|
endif
|
|
|
|
executable(
|
|
name,
|
|
[name + '.c', libnm_core_enums_h],
|
|
include_directories: incs,
|
|
dependencies: deps,
|
|
c_args: cflags,
|
|
link_args: ldflags,
|
|
link_depends: linker_script_binary,
|
|
install: true,
|
|
install_dir: nm_bindir
|
|
)
|
|
|
|
subdir('common')
|
|
|
|
if enable_nmcli
|
|
subdir('cli')
|
|
endif
|
|
|
|
if enable_nmtui
|
|
subdir('tui')
|
|
endif
|