build: Port meson-make-symlink script to Python

Instead of using non-portable features of GNU ln command, such as -T
and --relative, use Python os.path.relpath function to handle it. This
fixes installation failure on FreeBSD.
This commit is contained in:
Ting-Wei Lan 2019-12-02 22:33:59 +08:00
parent aaa141f28b
commit 8b7d4e46de
3 changed files with 36 additions and 13 deletions

View file

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