mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +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
|
||||
|
||||
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@'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user