build: Use meson.current_source_dir() instead of source_root()

The latter doesn’t work well when building as a subproject — it
explicitly refers to the parent project root.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
Philip Withnall 2020-07-06 10:59:45 +01:00
parent c4853f0f02
commit d085c7f585
4 changed files with 9 additions and 9 deletions

View file

@ -13,8 +13,8 @@ gnome = import('gnome')
i18n = import('i18n')
pkgconfig = import('pkgconfig')
meson_make_symlink = join_paths(meson.source_root(), 'tools', 'meson-make-symlink.py')
po_dir = join_paths(meson.source_root(), 'po')
meson_make_symlink = join_paths(meson.current_source_dir(), 'tools', 'meson-make-symlink.py')
po_dir = join_paths(meson.current_source_dir(), 'po')
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))