[PATCH] meson: create a symlink for pipewire-pulse instead of building binary twice

Because meson does not have native support for symlinks.
See https://github.com/mesonbuild/meson/issues/1602

Inspired by xserver:
a3931ec6f4

Signed-off-by: Dylan Aïssi <dylan.aissi@collabora.com>

Gbp-Pq: Name Don-t-build_same_binary_twice.patch
This commit is contained in:
Dylan Aïssi 2021-11-04 16:01:36 +01:00 committed by Lu zhiping
parent df4240d326
commit c5863c822e
1 changed files with 5 additions and 6 deletions

View File

@ -91,12 +91,11 @@ pipewire_exec = executable('pipewire',
dependencies : [ spa_dep, pipewire_dep, ], dependencies : [ spa_dep, pipewire_dep, ],
) )
executable('pipewire-pulse', meson.add_install_script(
pipewire_daemon_sources, 'sh', '-c',
install: true, 'ln -fs pipewire @0@@1@'.format(
c_args : pipewire_c_args, '${DESTDIR}',
include_directories : [ configinc ], join_paths(get_option('prefix'), get_option('bindir'), 'pipewire-pulse'))
dependencies : [ spa_dep, pipewire_dep, ],
) )
ln = find_program('ln') ln = find_program('ln')