2017-11-25 10:39:06 +00:00
|
|
|
name = 'nm-online'
|
|
|
|
|
|
|
|
deps = [
|
2018-01-07 14:39:42 +00:00
|
|
|
libnm_dep,
|
|
|
|
nm_core_dep
|
2017-11-25 10:39:06 +00:00
|
|
|
]
|
|
|
|
|
2018-01-02 12:37:06 +00:00
|
|
|
clients_cflags = [
|
|
|
|
'-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT',
|
|
|
|
]
|
|
|
|
|
|
|
|
cflags = clients_cflags + [
|
2017-11-25 10:39:06 +00:00
|
|
|
'-DG_LOG_DOMAIN="@0@"'.format(name),
|
|
|
|
]
|
|
|
|
|
|
|
|
executable(
|
|
|
|
name,
|
2018-01-07 14:39:42 +00:00
|
|
|
name + '.c',
|
2017-11-25 10:39:06 +00:00
|
|
|
dependencies: deps,
|
|
|
|
c_args: cflags,
|
2018-01-11 11:34:40 +00:00
|
|
|
link_args: ldflags_linker_script_binary,
|
2017-11-25 10:39:06 +00:00
|
|
|
link_depends: linker_script_binary,
|
2017-12-24 13:52:01 +00:00
|
|
|
install: true
|
2017-11-25 10:39:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
subdir('common')
|
|
|
|
|
|
|
|
if enable_nmcli
|
|
|
|
subdir('cli')
|
|
|
|
endif
|
|
|
|
|
|
|
|
if enable_nmtui
|
|
|
|
subdir('tui')
|
|
|
|
endif
|