nm-default: include i18n headers via "nm-default.h"
authorThomas Haller <thaller@redhat.com>
Tue, 4 Aug 2015 10:08:20 +0000 (12:08 +0200)
committerThomas Haller <thaller@redhat.com>
Wed, 5 Aug 2015 13:32:40 +0000 (15:32 +0200)
include/nm-default.h
libnm-core/Makefile.am
libnm-glib/Makefile.am
libnm-util/Makefile.am
libnm/Makefile.am

index 6a2ccff..f86feac 100644 (file)
@@ -26,6 +26,7 @@
  * Depending on which parts are compiled, different values are set. */
 #define NM_NETWORKMANAGER_COMPILATION_DEFAULT             0x0001
 #define NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON       0x0002
+#define NM_NETWORKMANAGER_COMPILATION_LIB                 0x0004
 
 #ifndef NETWORKMANAGER_COMPILATION
 /* For convenience, we don't require our Makefile.am to define
 
 /*****************************************************************************/
 
+#if (NETWORKMANAGER_COMPILATION) == NM_NETWORKMANAGER_COMPILATION_LIB
+
+#include <glib/gi18n-lib.h>
+
+#else
+
+#include <glib/gi18n.h>
+
+#endif /* NM_NETWORKMANAGER_COMPILATION_LIB */
+
+/*****************************************************************************/
+
 #if (NETWORKMANAGER_COMPILATION) == NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON
 
 /* the header is used inside src/, where additional
index 08f2afc..470fd9a 100644 (file)
@@ -8,7 +8,7 @@ AM_CPPFLAGS = \
        -DLOCALEDIR=\"$(datadir)/locale\" \
        -DNMCONFDIR=\"$(nmconfdir)\" \
        -DNMLIBDIR=\"$(nmlibdir)\" \
-       -DNETWORKMANAGER_COMPILATION \
+       -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS)
 
index 20a2481..179f4e6 100644 (file)
@@ -7,6 +7,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm-util \
        -I$(top_builddir)/libnm-util \
        -DG_LOG_DOMAIN=\""libnm-glib"\" \
+       -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(DBUS_CFLAGS) \
        $(GLIB_CFLAGS)
index f508494..d7d3ba8 100644 (file)
@@ -7,6 +7,7 @@ AM_CPPFLAGS = \
        -I${top_srcdir}/include \
        -DG_LOG_DOMAIN=\""libnm-util"\" \
        -DLOCALEDIR=\"$(datadir)/locale\" \
+       -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(DBUS_CFLAGS) \
index 0a41ab5..2ae3f87 100644 (file)
@@ -10,7 +10,7 @@ AM_CPPFLAGS = \
        -I$(top_srcdir)/libnm \
        -I$(top_builddir)/libnm \
        -DG_LOG_DOMAIN=\""libnm"\" \
-       -DNETWORKMANAGER_COMPILATION \
+       -DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
        -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
        $(GLIB_CFLAGS) \
        $(GUDEV_CFLAGS) \