install_scripts used to replace @BUILD_ROOT@ and @SOURCE_ROOT@ but it was not documented and got removed in Meson 0.58.0. gnome.gtkdoc() was relying on that behaviour, but it has always been broken in the case the source or build directory contains spaces. Fix this by changing get_include_args() to substitue paths directly which will then get escaped correctly. Add a unit test that builds GObject documentation which is where this issue has been spotted. Fixes: #8744pull/8761/head
parent
44acefd836
commit
4e312c19e6
13 changed files with 127 additions and 46 deletions
@ -0,0 +1,16 @@ |
||||
<SECTION> |
||||
<FILE>foo</FILE> |
||||
<TITLE>FooObj</TITLE> |
||||
FooObj |
||||
FooObjClass |
||||
foo_do_something |
||||
</SECTION> |
||||
|
||||
<SECTION> |
||||
<FILE>version</FILE> |
||||
<TITLE>version</TITLE> |
||||
FOO_MAJOR_VERSION |
||||
FOO_MINOR_VERSION |
||||
FOO_MICRO_VERSION |
||||
</SECTION> |
||||
|
@ -0,0 +1,4 @@ |
||||
% This include is useless it's a regression test for https://github.com/mesonbuild/meson/issues/8744 |
||||
#include <foo.h> |
||||
|
||||
foo_obj_get_type |
@ -1,5 +1,9 @@ |
||||
gnome.gtkdoc('foobar', |
||||
src_dir : inc, |
||||
src_dir : [inc, '.'], |
||||
main_sgml : 'foobar-docs.sgml', |
||||
content_files : [docbook, version_xml], |
||||
dependencies: foo_dep, |
||||
# Manually written types file for regression test: |
||||
# https://github.com/mesonbuild/meson/issues/8744 |
||||
gobject_typesfile: 'foobar.types', |
||||
install : true) |
||||
|
@ -0,0 +1,30 @@ |
||||
#include <foo.h> |
||||
|
||||
|
||||
struct _FooObj { |
||||
GObject parent; |
||||
int dummy; |
||||
}; |
||||
|
||||
G_DEFINE_TYPE(FooObj, foo_obj, G_TYPE_OBJECT) |
||||
|
||||
static void foo_obj_init (FooObj *self) |
||||
{ |
||||
} |
||||
|
||||
static void foo_obj_class_init (FooObjClass *klass) |
||||
{ |
||||
} |
||||
|
||||
/**
|
||||
* foo_do_something: |
||||
* @self: self |
||||
* |
||||
* Useless function. |
||||
* |
||||
* Returns: 0. |
||||
*/ |
||||
int foo_do_something(FooObj *self) |
||||
{ |
||||
return 0; |
||||
} |
Loading…
Reference in new issue