
These SPDX license identifiers are deprecated ([1]). Update them. [1] https://spdx.org/licenses/ sed \ -e '1 s%^/\* SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+ \*/$%/* SPDX-License-Identifier: \1-or-later */%' \ -e '1,2 s%^\(--\|#\|//\) SPDX-License-Identifier: \(GPL-2.0\|LGPL-2.1\)+$%\1 SPDX-License-Identifier: \2-or-later%' \ -i \ $(git grep -l SPDX-License-Identifier -- \ ':(exclude)shared/c-*/' \ ':(exclude)shared/n-*/' \ ':(exclude)shared/systemd/src' \ ':(exclude)src/systemd/src')
53 lines
1.0 KiB
Meson
53 lines
1.0 KiB
Meson
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
name = 'nm-cloud-setup'
|
|
|
|
if install_systemdunitdir
|
|
|
|
nm_cloud_setup_service = configure_file(
|
|
input: 'nm-cloud-setup.service.in',
|
|
output: '@BASENAME@',
|
|
install_dir: systemd_systemdsystemunitdir,
|
|
configuration: data_conf,
|
|
)
|
|
|
|
install_data(
|
|
'nm-cloud-setup.timer',
|
|
install_dir: systemd_systemdsystemunitdir,
|
|
)
|
|
|
|
install_data(
|
|
'90-nm-cloud-setup.sh',
|
|
install_dir: join_paths(nm_pkglibdir, 'dispatcher.d', 'no-wait.d'),
|
|
)
|
|
|
|
endif
|
|
|
|
sources = files(
|
|
'main.c',
|
|
'nm-cloud-setup-utils.c',
|
|
'nm-http-client.c',
|
|
'nmcs-provider-ec2.c',
|
|
'nmcs-provider-gcp.c',
|
|
'nmcs-provider-azure.c',
|
|
'nmcs-provider.c',
|
|
)
|
|
|
|
executable(
|
|
name,
|
|
sources,
|
|
dependencies: [
|
|
libnmc_base_dep,
|
|
libnmc_dep,
|
|
libcurl_dep,
|
|
libnm_libnm_aux_dep,
|
|
],
|
|
c_args: clients_c_flags +
|
|
['-DG_LOG_DOMAIN="@0@"'.format(name)],
|
|
link_with: libnm_systemd_logging_stub,
|
|
link_args: ldflags_linker_script_binary,
|
|
link_depends: linker_script_binary,
|
|
install: true,
|
|
install_dir: nm_libexecdir,
|
|
)
|