NetworkManager/clients/common
Thomas Haller b3e2808c32 build: commit pre-generated "settings-docs.c" in git
nmcli has documentation strings embedded. Those strings are extracted
from gtk-doc comments, using pygobject and put in the generated file
"clients/common/settings-docs.c".

This file "clients/common/settings-docs.c" is disted, so from
a source tarball you can build nmcli without enabling introspection.
However, when building from a git-tree, the file is missing and
thus one cannot build --with-nmcli unless also using at least
--enable-introspection to generate "clients/common/settings-docs.c".

That is inconvenient. Especially during cross-compilation, where
one also needs python and pygobject in the foreign architecture (because
the generation of "settings-docs.c" loads the built libnm.so via
pygobject). It is bad because nmcli is an essential part of
NetworkManager, so building --without-nmcli is not a great option.
Previously, the only alternative was to pre-generate a source tarball
on a separate machine and build that. This however complicates efforts
to automatically build git snapshots of NetworkManager.

Fix that by commiting "clients/common/settings-docs.c.in" to git.
When building with --disable-introspection, the pre-generated
file is used instead. This is fine, because the file only depends
on static, checked-in documentation strings that seldomly change.

Also add a check target to notice when the pre-generated file differs
from what we are about to generate during --enable-introspection.
That happens when editing one of the gtk-doc entires. In this case,
`make check` will notify that the pre-generated "settings-docs.c.in"
file needs updating too.

Yes, when changing gtk-doc comments you need to updte the file manually.
At least, the check failure notifies you.
2017-04-05 16:53:06 +02:00
..
tests cli/tests: add "clients/common/tests/test-general.c" 2017-04-05 16:53:06 +02:00
nm-client-utils.c cli: move nmc_bond_validate_mode() to "clients/common/nm-client-utils.h" 2017-04-05 16:53:06 +02:00
nm-client-utils.h cli: move nmc_bond_validate_mode() to "clients/common/nm-client-utils.h" 2017-04-05 16:53:06 +02:00
nm-meta-setting-access.c cli: add nmc_output_selection_create() to parse field selection 2017-04-05 16:53:06 +02:00
nm-meta-setting-access.h cli: split tracking of meta data out of NmcOutputField 2017-04-05 16:53:06 +02:00
nm-meta-setting-desc.c cli: fix signature of NMMetaAbstractType:get_fcn() 2017-04-05 16:53:06 +02:00
nm-meta-setting-desc.h cli: move and rename TermColor and TermFormat 2017-04-05 16:53:06 +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 cli: fix leak in add_vpn_secrets() 2017-04-05 14:18:55 +02:00
nm-secret-agent-simple.h include: use double-quotes to include our own headers 2017-03-09 14:12:35 +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 build: commit pre-generated "settings-docs.c" in git 2017-04-05 16:53:06 +02:00
settings-docs.xsl cli: embed gtk-doc directly in property-info structure 2017-03-30 16:35:52 +02:00