2020-01-14 10:42:24 +01:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1+
|
|
|
|
|
|
2019-09-11 13:15:22 +02:00
|
|
|
src_dirs = [
|
|
|
|
|
libnm_core_inc,
|
|
|
|
|
libnm_inc,
|
|
|
|
|
]
|
2017-11-25 11:39:06 +01:00
|
|
|
|
|
|
|
|
private_headers = [
|
|
|
|
|
'common.h',
|
|
|
|
|
'nm-core-internal.h',
|
all: move "shared/nm-keyfile" to "libnm-core/nm-keyfile"
Originally, these files were part of libnm-core and linked together.
However, that is a licensing violation, because the code is GPL-2.0+
licensed, while libnm-core also gets linked with libnm (it must thus
be LGPL-2.1+). The original intent behind moving the code to "shared/"
was to avoid the licensing issue, but also to prepare when we would add
a separate, GPL licensed libnm-keyfile. However, currently we hope to
be able to relicense the code, so that it actually could be exposed as
part of libnm. This is work in progress at ([1]).
[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/ ## 517
Anyway, the current directory layout is problematic. libnm-keyfile
depends on libnm-core, while libnm-core depends on code under shared.
That means, there is a circular dependency and meson's subdir() does
not work well.
Move the code.
2020-06-09 17:20:40 +02:00
|
|
|
'nm-core-tests-enum-types.h',
|
2017-11-25 11:39:06 +01:00
|
|
|
'nm-core-types-internal.h',
|
all: move "shared/nm-keyfile" to "libnm-core/nm-keyfile"
Originally, these files were part of libnm-core and linked together.
However, that is a licensing violation, because the code is GPL-2.0+
licensed, while libnm-core also gets linked with libnm (it must thus
be LGPL-2.1+). The original intent behind moving the code to "shared/"
was to avoid the licensing issue, but also to prepare when we would add
a separate, GPL licensed libnm-keyfile. However, currently we hope to
be able to relicense the code, so that it actually could be exposed as
part of libnm. This is work in progress at ([1]).
[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/ ## 517
Anyway, the current directory layout is problematic. libnm-keyfile
depends on libnm-core, while libnm-core depends on code under shared.
That means, there is a circular dependency and meson's subdir() does
not work well.
Move the code.
2020-06-09 17:20:40 +02:00
|
|
|
'nm-crypto-impl.h',
|
|
|
|
|
'nm-crypto.h',
|
|
|
|
|
'nm-dbus-helpers.h',
|
2017-11-25 11:39:06 +01:00
|
|
|
'nm-device-private.h',
|
|
|
|
|
'nm-dhcp4-config.h',
|
|
|
|
|
'nm-dhcp6-config.h',
|
|
|
|
|
'nm-dns-manager.h',
|
|
|
|
|
'nm-ip4-config.h',
|
|
|
|
|
'nm-ip6-config.h',
|
|
|
|
|
'nm-manager.h',
|
|
|
|
|
'nm-object-private.h',
|
|
|
|
|
'nm-property-compare.h',
|
|
|
|
|
'nm-remote-connection-private.h',
|
|
|
|
|
'nm-setting-private.h',
|
|
|
|
|
'nm-utils-private.h',
|
all: move "shared/nm-keyfile" to "libnm-core/nm-keyfile"
Originally, these files were part of libnm-core and linked together.
However, that is a licensing violation, because the code is GPL-2.0+
licensed, while libnm-core also gets linked with libnm (it must thus
be LGPL-2.1+). The original intent behind moving the code to "shared/"
was to avoid the licensing issue, but also to prepare when we would add
a separate, GPL licensed libnm-keyfile. However, currently we hope to
be able to relicense the code, so that it actually could be exposed as
part of libnm. This is work in progress at ([1]).
[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/ ## 517
Anyway, the current directory layout is problematic. libnm-keyfile
depends on libnm-core, while libnm-core depends on code under shared.
That means, there is a circular dependency and meson's subdir() does
not work well.
Move the code.
2020-06-09 17:20:40 +02:00
|
|
|
|
|
|
|
|
'test-general-enums.h',
|
|
|
|
|
|
2017-11-25 11:39:06 +01:00
|
|
|
'nm-keyfile-internal.h',
|
|
|
|
|
'nm-keyfile-utils.h',
|
2020-06-09 18:06:15 +02:00
|
|
|
|
|
|
|
|
'nm-auth-subject.h',
|
|
|
|
|
'nm-common-macros.h',
|
|
|
|
|
'nm-ethtool-utils.h',
|
|
|
|
|
'nm-libnm-core-utils.h',
|
2017-11-25 11:39:06 +01:00
|
|
|
]
|
|
|
|
|
|
2019-09-11 13:15:22 +02:00
|
|
|
scan_args = [
|
|
|
|
|
'--rebuild-types',
|
|
|
|
|
'--rebuild-sections',
|
|
|
|
|
'--ignore-decorators=NM_AVAILABLE_IN_\d_\d\d?|NM_DEPRECATED_IN_\d_\d\d?',
|
|
|
|
|
'--ignore-headers=' + ' '.join(private_headers),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
version_xml = configure_file(
|
2019-08-28 10:40:46 +02:00
|
|
|
input: 'version.xml.in',
|
|
|
|
|
output: '@BASENAME@',
|
2019-11-21 15:27:21 +01:00
|
|
|
configuration: data_conf,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
gnome.gtkdoc(
|
2019-09-11 13:15:22 +02:00
|
|
|
libnm_name,
|
|
|
|
|
main_xml: libnm_name + '-docs.xml',
|
|
|
|
|
src_dir: src_dirs,
|
2017-11-25 11:39:06 +01:00
|
|
|
dependencies: libnm_dep,
|
2019-09-11 13:15:22 +02:00
|
|
|
scan_args: scan_args,
|
2017-11-25 11:39:06 +01:00
|
|
|
scanobjs_args: '--type-init-func="g_type_init();"',
|
2019-09-11 13:15:22 +02:00
|
|
|
fixxref_args: '--html-dir=' + join_paths(nm_prefix, gnome.gtkdoc_html_dir(libnm_name)),
|
|
|
|
|
gobject_typesfile: libnm_name + '.types',
|
|
|
|
|
html_assets: 'libnm.png',
|
|
|
|
|
content_files: version_xml,
|
2018-10-18 12:50:20 +02:00
|
|
|
install: true,
|
2017-11-25 11:39:06 +01:00
|
|
|
)
|