meson: Fix building as a subproject

meson.source_root() returns the toplevel source directory
of the toplevel project, thus the paths were wrong when using
it. Simply using files() gets us the right path

https://bugzilla.gnome.org/show_bug.cgi?id=784133
This commit is contained in:
Thibault Saunier 2017-06-23 12:00:13 -04:00 committed by Matthias Clasen
parent 1d30c9eebc
commit eb2196e89d

View File

@ -732,7 +732,7 @@ if libelf.found()
endif
gconstructor_as_data_h = custom_target('gconstructor_as_data.h',
input : ['data-to-c.py', meson.source_root() + '/glib/gconstructor.h'],
input : ['data-to-c.py', files('../glib/gconstructor.h')],
output : ['gconstructor_as_data.h'],
command : [python, '@INPUT0@', '@INPUT1@', 'gconstructor_code', '@OUTPUT@'])