summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-06-23 12:00:13 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-07-13 19:03:39 -0400
commiteb2196e89d1700941b35c604bf6b657660b3b2c8 (patch)
tree25e2f8c2a199e6aee8c24bdccb85dc1b615c2ed8
parent1d30c9eebc8bc4efcd8da8c479040389edd0cfe3 (diff)
downloadglib-eb2196e89d1700941b35c604bf6b657660b3b2c8.tar.gz
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
-rw-r--r--gio/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/meson.build b/gio/meson.build
index 603b0b3af..31153bb1f 100644
--- a/gio/meson.build
+++ b/gio/meson.build
@@ -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@'])