From 351b59f03adcdbf5a4efbaba2446c0e40a456ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1igo=20Mart=C3=ADnez?= Date: Tue, 16 Jan 2018 10:41:47 +0100 Subject: gnome: Split header and code targets in gdbus_codegen() The development version of `glib` (2.55.2) has acquired support for generating gdbus header and source code files separately. This allows dependencies to be more fine grained on those targets depending only on the header. --- docs/markdown/Gnome-module.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index ad3715e..6de21ff 100644 --- a/docs/markdown/Gnome-module.md +++ b/docs/markdown/Gnome-module.md @@ -235,9 +235,18 @@ files and the second specifies the XML file name. * `object_manager`: *(Added 0.40.0)* if true generates object manager code * `annotations`: *(Added 0.43.0)* list of lists of 3 strings for the annotation for `'ELEMENT', 'KEY', 'VALUE'` * `docbook`: *(Added 0.43.0)* prefix to generate `'PREFIX'-NAME.xml` docbooks +* `build_by_default`: causes, when set to true, to have this target be + built by default, that is, when invoking plain `ninja`, the default + value is true for all built target types +* `install_dir`: (*Added 0.46.0*) location to install the header or + bundle depending on previous options +* `install_header`: (*Added 0.46.0*) if true, install the header file -Returns an opaque object containing the source files. Add it to a top -level target's source list. +If gdbus-codegen version is greater than 2.55.2 it will return at +most three targets, one for the souce code, one for the header and +another one for the files generated with docbook. Otherwise, it +returns an opaque object containing the source files. Add it to a +top level target's source list. Example: -- cgit v1.1 From d7b401f7d7aec217ee6c18dd44e0978beaf6bd5f Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 11 Apr 2018 21:30:47 +0530 Subject: gdbus_codegen: Return 2 targets when docbook is disabled Also document this behaviour, test it, and fix the return value from the module -- we create one target and return it thrice to the build file --- docs/markdown/Gnome-module.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'docs/markdown') diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index 6de21ff..3db6cc0 100644 --- a/docs/markdown/Gnome-module.md +++ b/docs/markdown/Gnome-module.md @@ -242,11 +242,14 @@ files and the second specifies the XML file name. bundle depending on previous options * `install_header`: (*Added 0.46.0*) if true, install the header file -If gdbus-codegen version is greater than 2.55.2 it will return at -most three targets, one for the souce code, one for the header and -another one for the files generated with docbook. Otherwise, it -returns an opaque object containing the source files. Add it to a -top level target's source list. +Starting *0.46.0*, this function returns a list of at least two custom targets +(in order): one for the source code and one for the header. The list will +contain a third custom target for the generated docbook files if that keyword +argument is passed. + +Earlier versions return a single custom target representing all the outputs. +Generally, you should just add this list of targets to a top level target's +source list. Example: -- cgit v1.1