meson: Fix building with meson 0.34 when using subprojects

When using subproject meson.source_root() returns the root
directory of the toplevel project which break build.

Upstream meson bug: https://github.com/mesonbuild/meson/issues/722
This commit is contained in:
Thibault Saunier 2016-09-05 22:30:01 -03:00
parent ee46fba6c1
commit f5c547063c

View file

@ -340,7 +340,7 @@ gst_plugins_bad_args = ['-DHAVE_CONFIG_H']
configinc = include_directories('.')
libsinc = include_directories('gst-libs')
vs_module_defs_dir = meson.source_root() + '/win32/common/'
vs_module_defs_dir = meson.current_source_dir() + '/win32/common/'
# Used by the *_mkenum.py helper scripts
glib_mkenums = find_program('glib-mkenums')