all: add "nm-glib-aux/nm-default-glib-i18n-prog.h" as replacement for "nm-default.h"
This commit is contained in:
10
Makefile.am
10
Makefile.am
@@ -398,6 +398,7 @@ shared_nm_glib_aux_libnm_glib_aux_la_SOURCES = \
|
|||||||
shared/nm-glib-aux/nm-dedup-multi.c \
|
shared/nm-glib-aux/nm-dedup-multi.c \
|
||||||
shared/nm-glib-aux/nm-dedup-multi.h \
|
shared/nm-glib-aux/nm-dedup-multi.h \
|
||||||
shared/nm-glib-aux/nm-default-glib-i18n-lib.h \
|
shared/nm-glib-aux/nm-default-glib-i18n-lib.h \
|
||||||
|
shared/nm-glib-aux/nm-default-glib-i18n-prog.h \
|
||||||
shared/nm-glib-aux/nm-default-glib.h \
|
shared/nm-glib-aux/nm-default-glib.h \
|
||||||
shared/nm-glib-aux/nm-enum-utils.c \
|
shared/nm-glib-aux/nm-enum-utils.c \
|
||||||
shared/nm-glib-aux/nm-enum-utils.h \
|
shared/nm-glib-aux/nm-enum-utils.h \
|
||||||
@@ -552,8 +553,7 @@ check_programs += shared/nm-platform/tests/test-nm-platform
|
|||||||
shared_nm_platform_tests_test_nm_platform_CPPFLAGS = \
|
shared_nm_platform_tests_test_nm_platform_CPPFLAGS = \
|
||||||
$(dflt_cppflags) \
|
$(dflt_cppflags) \
|
||||||
-I$(srcdir)/shared \
|
-I$(srcdir)/shared \
|
||||||
-DNETWORKMANAGER_COMPILATION_TEST \
|
-DG_LOG_DOMAIN=\""test"\" \
|
||||||
-DNETWORKMANAGER_COMPILATION='(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)' \
|
|
||||||
$(CODE_COVERAGE_CFLAGS) \
|
$(CODE_COVERAGE_CFLAGS) \
|
||||||
$(SYSTEMD_JOURNAL_CFLAGS) \
|
$(SYSTEMD_JOURNAL_CFLAGS) \
|
||||||
$(GLIB_CFLAGS) \
|
$(GLIB_CFLAGS) \
|
||||||
@@ -740,8 +740,7 @@ check_programs += shared/nm-glib-aux/tests/test-shared-general
|
|||||||
shared_nm_glib_aux_tests_test_shared_general_CPPFLAGS = \
|
shared_nm_glib_aux_tests_test_shared_general_CPPFLAGS = \
|
||||||
$(dflt_cppflags) \
|
$(dflt_cppflags) \
|
||||||
-I$(srcdir)/shared \
|
-I$(srcdir)/shared \
|
||||||
-DNETWORKMANAGER_COMPILATION_TEST \
|
-DG_LOG_DOMAIN=\""test"\" \
|
||||||
-DNETWORKMANAGER_COMPILATION='(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)' \
|
|
||||||
$(CODE_COVERAGE_CFLAGS) \
|
$(CODE_COVERAGE_CFLAGS) \
|
||||||
$(GLIB_CFLAGS) \
|
$(GLIB_CFLAGS) \
|
||||||
$(SANITIZER_LIB_CFLAGS) \
|
$(SANITIZER_LIB_CFLAGS) \
|
||||||
@@ -769,8 +768,7 @@ check_programs += shared/nm-glib-aux/tests/test-json-aux
|
|||||||
shared_nm_glib_aux_tests_test_json_aux_CPPFLAGS = \
|
shared_nm_glib_aux_tests_test_json_aux_CPPFLAGS = \
|
||||||
$(dflt_cppflags) \
|
$(dflt_cppflags) \
|
||||||
-I$(srcdir)/shared \
|
-I$(srcdir)/shared \
|
||||||
-DNETWORKMANAGER_COMPILATION_TEST \
|
-DG_LOG_DOMAIN=\""test"\" \
|
||||||
-DNETWORKMANAGER_COMPILATION='(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)' \
|
|
||||||
$(CODE_COVERAGE_CFLAGS) \
|
$(CODE_COVERAGE_CFLAGS) \
|
||||||
$(GLIB_CFLAGS) \
|
$(GLIB_CFLAGS) \
|
||||||
$(JANSSON_CFLAGS) \
|
$(JANSSON_CFLAGS) \
|
||||||
|
@@ -22,8 +22,7 @@
|
|||||||
#error Define NETWORKMANAGER_COMPILATION accordingly
|
#error Define NETWORKMANAGER_COMPILATION accordingly
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if NETWORKMANAGER_COMPILATION \
|
#if NETWORKMANAGER_COMPILATION < NM_NETWORKMANAGER_COMPILATION_CLIENT
|
||||||
< (NM_NETWORKMANAGER_COMPILATION_GLIB | NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)
|
|
||||||
#error Dont include this header with such NETWORKMANAGER_COMPILATION
|
#error Dont include this header with such NETWORKMANAGER_COMPILATION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
21
shared/nm-glib-aux/nm-default-glib-i18n-prog.h
Normal file
21
shared/nm-glib-aux/nm-default-glib-i18n-prog.h
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||||
|
/*
|
||||||
|
* Copyright (C) 2015 Red Hat, Inc.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __NM_DEFAULT_GLIB_I18N_PROG_H__
|
||||||
|
#define __NM_DEFAULT_GLIB_I18N_PROG_H__
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
#define _NETWORKMANAGER_COMPILATION_GLIB_I18N_PROG
|
||||||
|
|
||||||
|
#include "nm-glib-aux/nm-default-glib.h"
|
||||||
|
|
||||||
|
#undef NETWORKMANAGER_COMPILATION
|
||||||
|
#define NETWORKMANAGER_COMPILATION \
|
||||||
|
(NM_NETWORKMANAGER_COMPILATION_GLIB | NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
#endif /* __NM_DEFAULT_GLIB_I18N_PROG_H__ */
|
@@ -4,8 +4,7 @@ exe = executable(
|
|||||||
'test-shared-general',
|
'test-shared-general',
|
||||||
'test-shared-general.c',
|
'test-shared-general.c',
|
||||||
c_args: [
|
c_args: [
|
||||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
'-DG_LOG_DOMAIN="test"',
|
||||||
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
|
||||||
],
|
],
|
||||||
dependencies: libnm_glib_aux_dep,
|
dependencies: libnm_glib_aux_dep,
|
||||||
link_with: libnm_systemd_logging_stub,
|
link_with: libnm_systemd_logging_stub,
|
||||||
@@ -23,8 +22,7 @@ if jansson_dep.found()
|
|||||||
'test-json-aux',
|
'test-json-aux',
|
||||||
'test-json-aux.c',
|
'test-json-aux.c',
|
||||||
c_args: [
|
c_args: [
|
||||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
'-DG_LOG_DOMAIN="test"',
|
||||||
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
libnm_glib_aux_dep,
|
libnm_glib_aux_dep,
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#define NM_TEST_UTILS_NO_LIBNM 1
|
#define NM_TEST_UTILS_NO_LIBNM 1
|
||||||
|
|
||||||
#include "nm-default.h"
|
#include "nm-glib-aux/nm-default-glib-i18n-prog.h"
|
||||||
|
|
||||||
#include <jansson.h>
|
#include <jansson.h>
|
||||||
|
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#define NM_TEST_UTILS_NO_LIBNM 1
|
#define NM_TEST_UTILS_NO_LIBNM 1
|
||||||
|
|
||||||
#include "nm-default.h"
|
#include "nm-glib-aux/nm-default-glib-i18n-prog.h"
|
||||||
|
|
||||||
#include "nm-std-aux/unaligned.h"
|
#include "nm-std-aux/unaligned.h"
|
||||||
#include "nm-glib-aux/nm-random-utils.h"
|
#include "nm-glib-aux/nm-random-utils.h"
|
||||||
|
@@ -4,8 +4,7 @@ exe = executable(
|
|||||||
'test-nm-platform',
|
'test-nm-platform',
|
||||||
'test-nm-platform.c',
|
'test-nm-platform.c',
|
||||||
c_args: [
|
c_args: [
|
||||||
'-DNETWORKMANAGER_COMPILATION_TEST',
|
'-DG_LOG_DOMAIN="test"',
|
||||||
'-DNETWORKMANAGER_COMPILATION=(NM_NETWORKMANAGER_COMPILATION_GLIB|NM_NETWORKMANAGER_COMPILATION_WITH_GLIB_I18N_PROG)',
|
|
||||||
],
|
],
|
||||||
dependencies: [
|
dependencies: [
|
||||||
libnm_log_core_dep,
|
libnm_log_core_dep,
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#define NM_TEST_UTILS_NO_LIBNM 1
|
#define NM_TEST_UTILS_NO_LIBNM 1
|
||||||
|
|
||||||
#include "nm-default.h"
|
#include "nm-glib-aux/nm-default-glib-i18n-prog.h"
|
||||||
|
|
||||||
#include "nm-log-core/nm-logging.h"
|
#include "nm-log-core/nm-logging.h"
|
||||||
#include "nm-platform/nm-netlink.h"
|
#include "nm-platform/nm-netlink.h"
|
||||||
|
Reference in New Issue
Block a user