2014-07-04 13:26:57 -04:00
|
|
|
# In order for this to work correctly from both libnm-core/ and libnm/,
|
|
|
|
|
# we have to specify full pathnames. (We can't just use $(addprefix) from
|
|
|
|
|
# libnm/, because that's incompatible with the Makefile.introspection rules.)
|
|
|
|
|
|
|
|
|
|
core = $(top_srcdir)/libnm-core
|
2014-08-01 22:07:25 +02:00
|
|
|
core_build = $(top_builddir)/libnm-core
|
2014-07-04 13:26:57 -04:00
|
|
|
|
|
|
|
|
libnm_core_headers = \
|
2015-12-22 12:18:22 +01:00
|
|
|
$(top_builddir)/shared/nm-version-macros.h \
|
2014-08-01 22:07:25 +02:00
|
|
|
$(core_build)/nm-core-enum-types.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-connection.h \
|
2014-10-21 22:09:52 -04:00
|
|
|
$(core)/nm-core-types.h \
|
2014-07-05 16:23:30 -04:00
|
|
|
$(core)/nm-dbus-interface.h \
|
2014-10-15 13:20:03 -04:00
|
|
|
$(core)/nm-errors.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-8021x.h \
|
|
|
|
|
$(core)/nm-setting-adsl.h \
|
|
|
|
|
$(core)/nm-setting-bluetooth.h \
|
|
|
|
|
$(core)/nm-setting-bond.h \
|
|
|
|
|
$(core)/nm-setting-bridge-port.h \
|
|
|
|
|
$(core)/nm-setting-bridge.h \
|
|
|
|
|
$(core)/nm-setting-cdma.h \
|
|
|
|
|
$(core)/nm-setting-connection.h \
|
|
|
|
|
$(core)/nm-setting-dcb.h \
|
|
|
|
|
$(core)/nm-setting-generic.h \
|
|
|
|
|
$(core)/nm-setting-gsm.h \
|
|
|
|
|
$(core)/nm-setting-infiniband.h \
|
2014-09-16 16:42:46 -04:00
|
|
|
$(core)/nm-setting-ip-config.h \
|
2015-09-01 14:06:00 +02:00
|
|
|
$(core)/nm-setting-ip-tunnel.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-ip4-config.h \
|
|
|
|
|
$(core)/nm-setting-ip6-config.h \
|
2015-09-17 18:13:49 +02:00
|
|
|
$(core)/nm-setting-macvlan.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-olpc-mesh.h \
|
|
|
|
|
$(core)/nm-setting-ppp.h \
|
|
|
|
|
$(core)/nm-setting-pppoe.h \
|
|
|
|
|
$(core)/nm-setting-serial.h \
|
|
|
|
|
$(core)/nm-setting-team-port.h \
|
|
|
|
|
$(core)/nm-setting-team.h \
|
2015-09-14 22:56:51 +02:00
|
|
|
$(core)/nm-setting-tun.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-vlan.h \
|
|
|
|
|
$(core)/nm-setting-vpn.h \
|
2015-10-13 09:09:54 +02:00
|
|
|
$(core)/nm-setting-vxlan.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-wimax.h \
|
|
|
|
|
$(core)/nm-setting-wired.h \
|
|
|
|
|
$(core)/nm-setting-wireless-security.h \
|
|
|
|
|
$(core)/nm-setting-wireless.h \
|
|
|
|
|
$(core)/nm-setting.h \
|
2014-08-13 14:34:29 -04:00
|
|
|
$(core)/nm-simple-connection.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-utils.h \
|
build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h"
For libnm library, "nm-dbus-interface.h" contains defines like the D-Bus
paths of NetworkManager. It is desirable to have this header usable without
having a dependency on "glib.h", for example for a QT application. For that,
commit c0852964a890cf43cc2dcaeff41ac6edc5028f24 removed that dependancy.
For libnm-glib library, the analog to "nm-dbus-interface.h" is
"NetworkManager.h", and the same applies there. Commit
159e827a72f420048e12d318f8ba1edd3f641fc8 removed that include.
However, that broke build on PackageKit [1] which expected to get the
version macros by including "NetworkManager.h". So at least for libnm-glib,
we need to preserve old behavior so that a user including
"NetworkManager.h" gets the version macros, but not "glib.h".
Extract the version macros to a new header file "nm-version-macros.h".
This header doesn't include "glib.h" and can be included from
"NetworkManager.h". This gives as previous behavior and a glib-free
include.
For libnm we still don't include "nm-version-macros.h" to "nm-dbus-interface.h".
Very few users will actually need the version macros, but not using
libnm.
Users that use libnm, should just include (libnm's) "NetworkManager.h" to
get all headers.
As a special case, a user who doesn't want to use glib/libnm, but still
needs both "nm-dbus-interface.h" and "nm-version-macros.h", can include
them both separately.
[1] https://github.com/hughsie/PackageKit/issues/85
Fixes: 4545a7fe9670ce4d7c259c11c2cc853bfae6729b
2015-09-25 16:07:50 +02:00
|
|
|
$(core)/nm-version.h \
|
2015-05-22 13:26:40 +02:00
|
|
|
$(core)/nm-vpn-dbus-interface.h \
|
2015-05-25 13:55:37 +02:00
|
|
|
$(core)/nm-vpn-editor-plugin.h \
|
2015-05-22 13:26:40 +02:00
|
|
|
$(core)/nm-vpn-plugin-info.h
|
2014-07-04 13:26:57 -04:00
|
|
|
|
|
|
|
|
libnm_core_private_headers = \
|
|
|
|
|
$(core)/crypto.h \
|
2014-10-21 22:30:31 -04:00
|
|
|
$(core)/nm-connection-private.h \
|
2014-07-29 09:22:07 -04:00
|
|
|
$(core)/nm-core-internal.h \
|
2015-10-30 11:29:56 +01:00
|
|
|
$(core)/nm-core-types-internal.h \
|
2015-02-23 11:41:22 +01:00
|
|
|
$(core)/nm-keyfile-internal.h \
|
2015-02-18 18:59:35 +01:00
|
|
|
$(core)/nm-keyfile-utils.h \
|
2014-07-29 09:22:07 -04:00
|
|
|
$(core)/nm-property-compare.h \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-private.h \
|
|
|
|
|
$(core)/nm-utils-private.h
|
|
|
|
|
|
|
|
|
|
libnm_core_sources = \
|
2014-08-01 22:07:25 +02:00
|
|
|
$(core_build)/nm-core-enum-types.c \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/crypto.c \
|
|
|
|
|
$(core)/nm-connection.c \
|
2015-03-27 08:02:25 -04:00
|
|
|
$(core)/nm-dbus-utils.c \
|
2014-10-15 13:20:03 -04:00
|
|
|
$(core)/nm-errors.c \
|
2015-02-18 18:59:35 +01:00
|
|
|
$(core)/nm-keyfile-reader.c \
|
|
|
|
|
$(core)/nm-keyfile-utils.c \
|
|
|
|
|
$(core)/nm-keyfile-writer.c \
|
2014-07-29 09:22:07 -04:00
|
|
|
$(core)/nm-property-compare.c \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-8021x.c \
|
|
|
|
|
$(core)/nm-setting-adsl.c \
|
|
|
|
|
$(core)/nm-setting-bluetooth.c \
|
|
|
|
|
$(core)/nm-setting-bond.c \
|
|
|
|
|
$(core)/nm-setting-bridge-port.c \
|
|
|
|
|
$(core)/nm-setting-bridge.c \
|
|
|
|
|
$(core)/nm-setting-cdma.c \
|
|
|
|
|
$(core)/nm-setting-connection.c \
|
|
|
|
|
$(core)/nm-setting-dcb.c \
|
|
|
|
|
$(core)/nm-setting-generic.c \
|
|
|
|
|
$(core)/nm-setting-gsm.c \
|
|
|
|
|
$(core)/nm-setting-infiniband.c \
|
2014-09-16 16:42:46 -04:00
|
|
|
$(core)/nm-setting-ip-config.c \
|
2015-09-01 14:06:00 +02:00
|
|
|
$(core)/nm-setting-ip-tunnel.c \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-ip4-config.c \
|
|
|
|
|
$(core)/nm-setting-ip6-config.c \
|
2015-09-17 18:13:49 +02:00
|
|
|
$(core)/nm-setting-macvlan.c \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-olpc-mesh.c \
|
|
|
|
|
$(core)/nm-setting-ppp.c \
|
|
|
|
|
$(core)/nm-setting-pppoe.c \
|
|
|
|
|
$(core)/nm-setting-serial.c \
|
|
|
|
|
$(core)/nm-setting-team-port.c \
|
|
|
|
|
$(core)/nm-setting-team.c \
|
2015-09-14 22:56:51 +02:00
|
|
|
$(core)/nm-setting-tun.c \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-vlan.c \
|
|
|
|
|
$(core)/nm-setting-vpn.c \
|
2015-10-13 09:09:54 +02:00
|
|
|
$(core)/nm-setting-vxlan.c \
|
2014-07-04 13:26:57 -04:00
|
|
|
$(core)/nm-setting-wimax.c \
|
|
|
|
|
$(core)/nm-setting-wired.c \
|
|
|
|
|
$(core)/nm-setting-wireless-security.c \
|
|
|
|
|
$(core)/nm-setting-wireless.c \
|
|
|
|
|
$(core)/nm-setting.c \
|
2014-08-13 14:34:29 -04:00
|
|
|
$(core)/nm-simple-connection.c \
|
2015-05-22 13:26:40 +02:00
|
|
|
$(core)/nm-utils.c \
|
2015-05-25 13:55:37 +02:00
|
|
|
$(core)/nm-vpn-editor-plugin.c \
|
2015-05-22 13:26:40 +02:00
|
|
|
$(core)/nm-vpn-plugin-info.c
|
2014-07-04 13:26:57 -04:00
|
|
|
|