shared: move "nm-compat.[hc]" to "src/contrib/"

"nm-compat.h" is not intended to be used by NetworkManager itself.
Instead, it's intended to be copied into the source tree of VPN plugins,
as adapter for different libnm versions.

Move it to "src/contrib/".
This commit is contained in:
Thomas Haller 2021-02-24 08:51:19 +01:00
parent 63622a147a
commit d6681a0429
No known key found for this signature in database
GPG Key ID: 29C2366E4DFC5728
5 changed files with 5 additions and 4 deletions

View File

@ -1902,7 +1902,8 @@ src_libnm_client_impl_tests_test_remote_settings_client_CPPFLAGS = $(src_libnm_c
src_libnm_client_impl_tests_test_secret_agent_CPPFLAGS = $(src_libnm_client_impl_tests_cppflags)
src_libnm_client_impl_tests_test_libnm_SOURCES = \
shared/nm-utils/nm-compat.c \
src/contrib/nm-compat.c \
src/contrib/nm-compat.h \
src/libnm-client-impl/tests/test-libnm.c \
$(NULL)
@ -5521,8 +5522,6 @@ EXTRA_DIST += \
\
po/meson.build \
\
shared/nm-utils/nm-compat.c \
shared/nm-utils/nm-compat.h \
shared/meson.build \
\
src/meson.build \

View File

@ -1,3 +1,5 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
nm_vpn_plugin_utils_source = files('nm-vpn-plugin-utils.c')
src_contrib_nm_compat_source = files('nm-compat.c')

View File

@ -10,7 +10,7 @@ test_units = [
foreach test_unit: test_units
exe = executable(
test_unit,
test_unit + '.c',
[ test_unit + '.c' ] + (test_unit == 'test-libnm' ? src_contrib_nm_compat_source : []),
include_directories: [
libnm_client_public_inc,
],