meson: merge branch 'inigomartinez/meson-license'

Add SPDX license headers for meson files.

As far as I can tell, according to RELICENSE.md file, almost everybody
who contributed to the meson files agreed to the LGPL-2.1+ licensing.
This entails the vast majority of code in question.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/397
This commit is contained in:
Thomas Haller
2020-03-28 12:39:58 +01:00
65 changed files with 130 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
name = 'nmcli' name = 'nmcli'
# FIXME: nmcli-completion should be renamed to nmcli # FIXME: nmcli-completion should be renamed to nmcli

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
name = 'nm-cloud-setup' name = 'nm-cloud-setup'
if install_systemdunitdir if install_systemdunitdir

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
common_inc = include_directories('.') common_inc = include_directories('.')
common_deps = [ common_deps = [

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
common_c_flags = clients_c_flags + ['-DNETWORKMANAGER_COMPILATION_TEST'] common_c_flags = clients_c_flags + ['-DNETWORKMANAGER_COMPILATION_TEST']
test_name = 'test-clients-common' test_name = 'test-clients-common'

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
clients_c_flags = ['-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT'] clients_c_flags = ['-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_CLIENT']
name = 'nm-online' name = 'nm-online'

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
name = 'nmtui' name = 'nmtui'
common_c_flags = clients_c_flags + ['-DG_LOG_DOMAIN="@0@"'.format(name)] common_c_flags = clients_c_flags + ['-DG_LOG_DOMAIN="@0@"'.format(name)]

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'nmt-newt-button-box.c', 'nmt-newt-button-box.c',
'nmt-newt-button.c', 'nmt-newt-button.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
configure_file( configure_file(
input: 'server.conf.in', input: 'server.conf.in',
output: '@BASENAME@', output: '@BASENAME@',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
dispatcher_inc = include_directories('.') dispatcher_inc = include_directories('.')
name = 'nm-dispatcher' name = 'nm-dispatcher'

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-dispatcher-envp' test_unit = 'test-dispatcher-envp'
deps = [ deps = [

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
if enable_introspection if enable_introspection
settings = 'settings-spec' settings = 'settings-spec'
output = settings + '.xml' output = settings + '.xml'

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
src_dirs = [ src_dirs = [
libnm_core_inc, libnm_core_inc,
libnm_inc, libnm_inc,

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
subdir('libnm') subdir('libnm')
subdir('api') subdir('api')

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
examples = [ examples = [
['add-connection-gdbus', [libnm_enum_sources[1]], [uuid_dep]], ['add-connection-gdbus', [libnm_enum_sources[1]], [uuid_dep]],
['add-connection-libnm', [], [libnm_dep]], ['add-connection-libnm', [], [libnm_dep]],

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
examples = [ examples = [
['add-connection-wired', []], ['add-connection-wired', []],
['list-connections', []], ['list-connections', []],

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
ifaces_secret_agent_xml = files('org.freedesktop.NetworkManager.SecretAgent.xml') ifaces_secret_agent_xml = files('org.freedesktop.NetworkManager.SecretAgent.xml')
ifaces_vpn_plugin_xml = files('org.freedesktop.NetworkManager.VPN.Plugin.xml') ifaces_vpn_plugin_xml = files('org.freedesktop.NetworkManager.VPN.Plugin.xml')

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
libnm_core_inc = include_directories('.') libnm_core_inc = include_directories('.')
libnm_core_nm_default_dep = declare_dependency( libnm_core_nm_default_dep = declare_dependency(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
# test-cert.p12 created with: # test-cert.p12 created with:
# #
# openssl pkcs12 -export \ # openssl pkcs12 -export \

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
libnm_inc = include_directories('.') libnm_inc = include_directories('.')
libnm_nm_default_dep = declare_dependency( libnm_nm_default_dep = declare_dependency(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_units = [ test_units = [
['test-libnm', 30], ['test-libnm', 30],
['test-nm-client', 90], ['test-nm-client', 90],

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
common_ent_file = configure_file( common_ent_file = configure_file(
input: 'common.ent.in', input: 'common.ent.in',
output: '@BASENAME@', output: '@BASENAME@',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
project( project(
'NetworkManager', 'c', 'NetworkManager', 'c',
# NOTE: When incrementing version also: # NOTE: When incrementing version also:

View File

@@ -1 +1,3 @@
# SPDX-License-Identifier: LGPL-2.1+
i18n.gettext(nm_name, preset: 'glib') i18n.gettext(nm_name, preset: 'glib')

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
project( project(
'c-list', 'c-list',
'c', 'c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
# #
# target: libclist.so # target: libclist.so
# (No .so is built so far, since we are header-only. This might change in the # (No .so is built so far, since we are header-only. This might change in the

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
project( project(
'c-rbtree', 'c-rbtree',
'c', 'c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
# #
# target: libcrbtree.so # target: libcrbtree.so
# #

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
project( project(
'c-siphash', 'c-siphash',
'c', 'c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
# #
# target: libcsiphash.so # target: libcsiphash.so
# #

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
project( project(
'c-stdaux', 'c-stdaux',
'c', 'c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
# #
# target: libcstdaux.so # target: libcstdaux.so
# (No .so is built so far, since we are header-only. This might change in the # (No .so is built so far, since we are header-only. This might change in the

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
shared_inc = include_directories('.') shared_inc = include_directories('.')
nm_default_dep = declare_dependency(include_directories: [top_inc, shared_inc]) nm_default_dep = declare_dependency(include_directories: [top_inc, shared_inc])

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
project( project(
'n-acd', 'n-acd',
'c', 'c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
# #
# target: libnacd.so # target: libnacd.so
# #

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
project( project(
'n-dhcp4', 'n-dhcp4',
'c', 'c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
# #
# target: libndhcp4.so # target: libndhcp4.so
# #

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-shared-general' test_unit = 'test-shared-general'
c_flags = [ c_flags = [

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'nm-atm-manager.c', 'nm-atm-manager.c',
'nm-device-adsl.c', 'nm-device-adsl.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'nm-bluez-manager.c', 'nm-bluez-manager.c',
'nm-bt-error.c', 'nm-bt-error.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
subdir('adsl') subdir('adsl')
if enable_modem_manager if enable_modem_manager

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'nm-device-ovs-bridge.c', 'nm-device-ovs-bridge.c',
'nm-device-ovs-interface.c', 'nm-device-ovs-interface.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'nm-device-team.c', 'nm-device-team.c',
'nm-team-factory.c', 'nm-team-factory.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_units = [ test_units = [
'test-acd', 'test-acd',
'test-lldp', 'test-lldp',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
iwd_sources = files() iwd_sources = files()
if enable_iwd if enable_iwd
iwd_sources += files( iwd_sources += files(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
nm_service_providers_source = files('nm-service-providers.c') nm_service_providers_source = files('nm-service-providers.c')
sources = nm_service_providers_source + files( sources = nm_service_providers_source + files(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
name = 'nm-dhcp-helper' name = 'nm-dhcp-helper'
c_flags = [ c_flags = [

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_units = [ test_units = [
'test-dhcp-dhclient', 'test-dhcp-dhclient',
'test-dhcp-utils', 'test-dhcp-utils',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-dnsmasq-utils' test_unit = 'test-dnsmasq-utils'
exe = executable( exe = executable(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'nmi-cmdline-reader.c', 'nmi-cmdline-reader.c',
'nmi-dt-reader.c', 'nmi-dt-reader.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
c_flags = test_c_flags + ['-DTEST_INITRD_DIR="@0@"'.format(meson.current_source_dir())] c_flags = test_c_flags + ['-DTEST_INITRD_DIR="@0@"'.format(meson.current_source_dir())]
test_units = [ test_units = [

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
src_inc = include_directories('.') src_inc = include_directories('.')
daemon_nm_default_dep = declare_dependency( daemon_nm_default_dep = declare_dependency(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-ndisc-fake' test_unit = 'test-ndisc-fake'
exe = executable( exe = executable(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_fake_c_flags = test_c_flags + ['-DSETUP=nm_fake_platform_setup'] test_fake_c_flags = test_c_flags + ['-DSETUP=nm_fake_platform_setup']
test_linux_c_flags = test_c_flags + ['-DSETUP=nm_linux_platform_setup'] test_linux_c_flags = test_c_flags + ['-DSETUP=nm_linux_platform_setup']

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
name = 'nm-pppd-plugin' name = 'nm-pppd-plugin'
c_flags = [ c_flags = [

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
install_data( install_data(
'nm-ifcfg-rh.conf', 'nm-ifcfg-rh.conf',
install_dir: dbus_conf_dir, install_dir: dbus_conf_dir,

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-ifcfg-rh' test_unit = 'test-ifcfg-rh'
exe = executable( exe = executable(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'nms-ifupdown-interface-parser.c', 'nms-ifupdown-interface-parser.c',
'nms-ifupdown-parser.c', 'nms-ifupdown-parser.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-ifupdown' test_unit = 'test-ifupdown'
exe = executable( exe = executable(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-keyfile-settings' test_unit = 'test-keyfile-settings'
exe = executable( exe = executable(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
if enable_ifcfg_rh if enable_ifcfg_rh
subdir('ifcfg-rh') subdir('ifcfg-rh')
endif endif

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_unit = 'test-supplicant-config' test_unit = 'test-supplicant-config'
exe = executable( exe = executable(

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
sources = files( sources = files(
'src/libsystemd-network/arp-util.c', 'src/libsystemd-network/arp-util.c',
'src/libsystemd-network/dhcp-identifier.c', 'src/libsystemd-network/dhcp-identifier.c',

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
test_config_dir = meson.current_source_dir() test_config_dir = meson.current_source_dir()
test_unit = 'test-config' test_unit = 'test-config'

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
subdir('config') subdir('config')
test_units = [ test_units = [

View File

@@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1+
gnome.generate_vapi( gnome.generate_vapi(
libnm_name, libnm_name,
sources: libnm_gir[0], sources: libnm_gir[0],