mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 22:46:15 +01:00
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:
parent
1d30c9eebc
commit
eb2196e89d
@ -732,7 +732,7 @@ if libelf.found()
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
gconstructor_as_data_h = custom_target('gconstructor_as_data.h',
|
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'],
|
output : ['gconstructor_as_data.h'],
|
||||||
command : [python, '@INPUT0@', '@INPUT1@', 'gconstructor_code', '@OUTPUT@'])
|
command : [python, '@INPUT0@', '@INPUT1@', 'gconstructor_code', '@OUTPUT@'])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user