NetworkManager/clients/common
Thomas Haller 22ef6a507a build: refine the NETWORKMANAGER_COMPILATION define
Note that:

 - we compile some source files multiple times. Most notably those
   under "shared/".

 - we include a default header "shared/nm-default.h" in every source
   file. This header is supposed to setup a common environment by defining
   and including parts that are commonly used. As we always include the
   same header, the header must behave differently depending
   one whether the compilation is for libnm-core, NetworkManager or
   libnm-glib. E.g. it must include <glib/gi18n.h> or <glib/gi18n-lib.h>
   depending on whether we compile a library or an application.

For that, the source files need the NETWORKMANAGER_COMPILATION #define
to behave accordingly.

Extend the define to be composed of flags. These flags are all named
NM_NETWORKMANAGER_COMPILATION_WITH_*, they indicate which part of the
build are available. E.g. when building libnm-core.la itself, then
WITH_LIBNM_CORE, WITH_LIBNM_CORE_INTERNAL, and WITH_LIBNM_CORE_PRIVATE
are available. When building NetworkManager, WITH_LIBNM_CORE_PRIVATE
is not available but the internal parts are still accessible. When
building nmcli, only WITH_LIBNM_CORE (the public part) is available.
This granularily controls the build.
2018-01-08 12:38:53 +01:00
..
tests build: refine the NETWORKMANAGER_COMPILATION define 2018-01-08 12:38:53 +01:00
meson.build build: refine the NETWORKMANAGER_COMPILATION define 2018-01-08 12:38:53 +01:00
nm-client-utils.c all: add more meaningful error code for unsupported IP method 2017-12-21 10:02:07 +01:00
nm-client-utils.h clients/cli: use a nicer password prompt 2017-12-18 14:47:37 +01:00
nm-meta-setting-access.c cli: fix returning no results in complete function 2017-06-28 14:46:15 +02:00
nm-meta-setting-access.h cli: make properties list a list of pointers 2017-04-13 10:10:12 +02:00
nm-meta-setting-desc.c ip-tunnel: add support for tunnel flags 2018-01-05 18:25:08 +01:00
nm-meta-setting-desc.h clients: make meta data subtypes of NMObjBaseInst 2017-07-05 14:22:10 +02:00
nm-polkit-listener.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-polkit-listener.h all: cleanup includes in header files 2016-08-17 19:51:17 +02:00
nm-secret-agent-simple.c all: get rid of a handful of unused-but-set variables 2017-12-18 13:29:32 +01:00
nm-secret-agent-simple.h clients: some cleanup of requesting VPN secrets 2017-11-23 14:44:25 +01:00
nm-vpn-helpers.c cli: make static arrays in nm_vpn_get_secret_names() const 2017-04-05 14:18:55 +02:00
nm-vpn-helpers.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +01:00
settings-docs.c.in ip-tunnel: add support for tunnel flags 2018-01-05 18:25:08 +01:00
settings-docs.xsl cli: fix marking settings docs for translation 2017-04-23 23:45:02 +02:00