summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-01-12 09:54:15 +0100
committerThomas Haller <thaller@redhat.com>2018-01-12 09:54:52 +0100
commitd3dfadf6393461125043219e99a1ce0b0695ea45 (patch)
treec202cf86235014f152cb3044a93950f7e5458e76
parent34cb6f9877a9b7a7032899dbccca1def88da4191 (diff)
parentbe13c75a3c9799fca48420106bb8c4e5a5370c3f (diff)
downloadNetworkManager-d3dfadf6393461125043219e99a1ce0b0695ea45.tar.gz
build/meson: merge branch 'meson-fixes'
https://mail.gnome.org/archives/networkmanager-list/2018-January/msg00055.html
-rw-r--r--.gitignore3
-rw-r--r--Makefile.am22
-rw-r--r--clients/common/meson.build2
-rw-r--r--clients/common/nm-meta-setting-desc.c2
-rw-r--r--clients/common/settings-docs.h.in (renamed from clients/common/settings-docs.c.in)0
-rw-r--r--libnm-glib/meson.build2
-rw-r--r--meson.build3
-rw-r--r--meson_options.txt2
-rw-r--r--po/POTFILES.in2
-rw-r--r--po/POTFILES.skip3
10 files changed, 22 insertions, 19 deletions
diff --git a/.gitignore b/.gitignore
index c28c765113..f0613d6d42 100644
--- a/.gitignore
+++ b/.gitignore
@@ -60,7 +60,7 @@ test-*.trs
/dispatcher/tests/test-dispatcher-envp
/clients/cli/nmcli
-/clients/common/settings-docs.c
+/clients/common/settings-docs.h
/clients/tui/newt/libnmt-newt.a
/clients/tui/nmtui
/clients/nm-online
@@ -308,6 +308,7 @@ test-*.trs
/libnm/nm-setting-docs.xml
/libnm/nm-setting-docs-overrides.xml
/clients/cli/settings-docs.c
+/clients/common/settings-docs.c
/libnm-core/tests/test-setting-8021x
/libnm-core/tests/test-setting-bond
/libnm-core/tests/test-setting-dcb
diff --git a/Makefile.am b/Makefile.am
index 4ca76f6448..6b3bc3ad9e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3343,27 +3343,27 @@ clients_common_libnmc_base_la_LIBADD = \
$(clients_common_libnmc_base_la_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
$(clients_common_libnmc_base_la_OBJECTS): clients/common/.dirstamp
-clients_common_settings_doc_c = clients/common/settings-docs.c
+clients_common_settings_doc_h = clients/common/settings-docs.h
if HAVE_INTROSPECTION
-$(clients_common_settings_doc_c): clients/common/settings-docs.xsl libnm/nm-property-docs.xml clients/common/.dirstamp
+$(clients_common_settings_doc_h): clients/common/settings-docs.xsl libnm/nm-property-docs.xml clients/common/.dirstamp
$(AM_V_GEN) $(XSLTPROC) --output $@ $< $(word 2,$^)
-DISTCLEANFILES += $(clients_common_settings_doc_c)
-check-local-settings-docs: $(clients_common_settings_doc_c)
+DISTCLEANFILES += $(clients_common_settings_doc_h)
+check-local-settings-docs: $(clients_common_settings_doc_h)
@if test -z "$$NMTST_NO_CHECK_SETTINGS_DOCS" ; then \
- if ! cmp -s "$(srcdir)/$(clients_common_settings_doc_c).in" "$(builddir)/$(clients_common_settings_doc_c)" ; then \
- echo "The generated file \"$(builddir)/$(clients_common_settings_doc_c)\" differs from the source file \"$(srcdir)/$(clients_common_settings_doc_c).in\". You probably should copy the generated file over to the source file. You can skip this test by setting \$$NMTST_NO_CHECK_SETTINGS_DOCS=yes"; \
+ if ! cmp -s "$(srcdir)/$(clients_common_settings_doc_h).in" "$(builddir)/$(clients_common_settings_doc_h)" ; then \
+ echo "The generated file \"$(builddir)/$(clients_common_settings_doc_h)\" differs from the source file \"$(srcdir)/$(clients_common_settings_doc_h).in\". You probably should copy the generated file over to the source file. You can skip this test by setting \$$NMTST_NO_CHECK_SETTINGS_DOCS=yes"; \
false; \
fi;\
fi
check_local += check-local-settings-docs
else
-$(clients_common_settings_doc_c): $(clients_common_settings_doc_c).in clients/common/.dirstamp
- $(AM_V_GEN) cp "$(srcdir)/$(clients_common_settings_doc_c).in" "$(builddir)/$(clients_common_settings_doc_c)"
+$(clients_common_settings_doc_h): $(clients_common_settings_doc_h).in clients/common/.dirstamp
+ $(AM_V_GEN) cp "$(srcdir)/$(clients_common_settings_doc_h).in" "$(builddir)/$(clients_common_settings_doc_h)"
check-local-settings-docs:
endif
EXTRA_DIST += \
- $(clients_common_settings_doc_c) \
- $(clients_common_settings_doc_c).in
+ $(clients_common_settings_doc_h) \
+ $(clients_common_settings_doc_h).in
if HAVE_INTROSPECTION
check_ltlibraries += clients/common/libnmc.la
@@ -3392,7 +3392,7 @@ clients_common_libnmc_la_LIBADD = \
$(GLIB_LIBS)
$(clients_common_libnmc_la_OBJECTS): $(libnm_core_lib_h_pub_mkenums)
-$(clients_common_libnmc_la_OBJECTS): $(clients_common_settings_doc_c)
+$(clients_common_libnmc_la_OBJECTS): $(clients_common_settings_doc_h)
$(clients_common_libnmc_la_OBJECTS): clients/common/.dirstamp
if HAVE_INTROSPECTION
diff --git a/clients/common/meson.build b/clients/common/meson.build
index 46489f4140..ea26bccfb4 100644
--- a/clients/common/meson.build
+++ b/clients/common/meson.build
@@ -34,7 +34,7 @@ sources = shared_meta_setting + files(
'nm-meta-setting-desc.c'
)
-settings_docs = 'settings-docs.c'
+settings_docs = 'settings-docs.h'
if enable_introspection
settings_docs_source = custom_target(
diff --git a/clients/common/nm-meta-setting-desc.c b/clients/common/nm-meta-setting-desc.c
index 9943b35eff..a028c9a3fa 100644
--- a/clients/common/nm-meta-setting-desc.c
+++ b/clients/common/nm-meta-setting-desc.c
@@ -4889,7 +4889,7 @@ static const NMMetaPropertyType _pt_gobject_devices = {
/*****************************************************************************/
-#include "settings-docs.c"
+#include "settings-docs.h"
/*****************************************************************************/
diff --git a/clients/common/settings-docs.c.in b/clients/common/settings-docs.h.in
index 1f3a1a62be..1f3a1a62be 100644
--- a/clients/common/settings-docs.c.in
+++ b/clients/common/settings-docs.h.in
diff --git a/libnm-glib/meson.build b/libnm-glib/meson.build
index 68ffcec4ba..a236ec08bd 100644
--- a/libnm-glib/meson.build
+++ b/libnm-glib/meson.build
@@ -200,7 +200,7 @@ libnm_glib = shared_library(
c_args: cflags + [
'-DNMRUNDIR="@0@"'.format(nm_pkgrundir),
],
- link_with: libdeprecated_nm_glib,
+ link_whole: libdeprecated_nm_glib,
link_args: [
'-Wl,--version-script,@0@'.format(linker_script),
],
diff --git a/meson.build b/meson.build
index a0722f820a..8418cb1050 100644
--- a/meson.build
+++ b/meson.build
@@ -187,8 +187,7 @@ config_h.set10('WITH_JANSSON', jansson_dep.found())
if jansson_dep.found()
jansson_libdir = jansson_dep.get_pkgconfig_variable('libdir')
- readelf = find_program('readelf', 'readelf')
- res = run_command(readelf, '-d', join_paths(jansson_libdir, 'libjansson.so'))
+ res = run_command(find_program('eu-readelf', 'readelf'), '-d', join_paths(jansson_libdir, 'libjansson.so'))
jansson_soname = ''
foreach line: res.stdout().split('\n')
if line.strip().contains('SONAME')
diff --git a/meson_options.txt b/meson_options.txt
index cd904c5f57..f22eb28a4f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -74,4 +74,4 @@ option('libpsl', type: 'boolean', value: true, description: 'Link against libpsl
option('json_validation', type: 'boolean', value: true, description: 'Enable JSON validation in libnm')
option('crypto', type: 'combo', choices: ['nss', 'gnutls'], value: 'nss', description: 'Cryptography library to use for certificate and key operations')
option('qt', type: 'boolean', value: true, description: 'enable Qt examples')
-option('check_settings_docs', type: 'boolean', value: false, description: 'compare check settings-docs.c file')
+option('check_settings_docs', type: 'boolean', value: false, description: 'compare check settings-docs.h file')
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7abff01146..d41376b5c7 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -16,7 +16,7 @@ clients/common/nm-meta-setting-desc.c
clients/common/nm-polkit-listener.c
clients/common/nm-secret-agent-simple.c
clients/common/nm-vpn-helpers.c
-clients/common/settings-docs.c.in
+clients/common/settings-docs.h.in
clients/nm-online.c
clients/tui/newt/nmt-newt-utils.c
clients/tui/nm-editor-utils.c
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
index 9e8c9d071d..2b14042e10 100644
--- a/po/POTFILES.skip
+++ b/po/POTFILES.skip
@@ -10,3 +10,6 @@ shared/nm-utils/nm-vpn-editor-plugin-call.h
shared/nm-utils/nm-vpn-plugin-utils.c
# https://bugs.launchpad.net/intltool/+bug/1117944
sub/data/org.freedesktop.NetworkManager.policy.in
+
+# from meson build directory:
+build/data/org.freedesktop.NetworkManager.policy.in