mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-08 13:30:08 -05:00
meson.build: install symbolic links instead of compiling multiple times
Currently, among others, the `pipewire-pulse` executable is an exact copy of the `pipewire` executable. Use meson's `install_symlink()` to avoid the need for compiling the same thing multiple times. Also use `custom_target()` so that the aliases are available in an uninstalled environment. Do the same for `pw-cat`. The benefit is that all aliases of `pw-cat` are now available in an uninstalled environment. This commit increasese the minimum meson version to 0.61.1 as that is needed for `install_symlink()`. The reason for using 0.61.1 instead of 0.61.0 is the following bug: https://github.com/mesonbuild/meson/issues/9820
This commit is contained in:
parent
f3230ca2e6
commit
1ef43a5255
3 changed files with 32 additions and 29 deletions
|
|
@ -89,30 +89,7 @@ configure_file(input : 'pipewire.conf.in',
|
|||
pipewire_exec = executable('pipewire',
|
||||
pipewire_daemon_sources,
|
||||
install: true,
|
||||
c_args : pipewire_c_args,
|
||||
include_directories : [ configinc ],
|
||||
dependencies : [ spa_dep, pipewire_dep, ],
|
||||
)
|
||||
|
||||
executable('pipewire-pulse',
|
||||
pipewire_daemon_sources,
|
||||
install: true,
|
||||
c_args : pipewire_c_args,
|
||||
include_directories : [ configinc ],
|
||||
dependencies : [ spa_dep, pipewire_dep, ],
|
||||
)
|
||||
|
||||
executable('pipewire-avb',
|
||||
pipewire_daemon_sources,
|
||||
install: true,
|
||||
c_args : pipewire_c_args,
|
||||
include_directories : [ configinc ],
|
||||
dependencies : [ spa_dep, pipewire_dep, ],
|
||||
)
|
||||
|
||||
executable('pipewire-aes67',
|
||||
pipewire_daemon_sources,
|
||||
install: true,
|
||||
install_dir: pipewire_bindir,
|
||||
c_args : pipewire_c_args,
|
||||
include_directories : [ configinc ],
|
||||
dependencies : [ spa_dep, pipewire_dep, ],
|
||||
|
|
@ -120,6 +97,22 @@ executable('pipewire-aes67',
|
|||
|
||||
ln = find_program('ln')
|
||||
|
||||
foreach alias : ['pipewire-pulse', 'pipewire-avb', 'pipewire-aes67']
|
||||
custom_target(
|
||||
alias,
|
||||
build_by_default: true,
|
||||
install: false,
|
||||
command: [ln, '-sf', meson.project_build_root() + '/@INPUT@', '@OUTPUT@'],
|
||||
input: pipewire_exec,
|
||||
output: alias,
|
||||
)
|
||||
install_symlink(
|
||||
alias,
|
||||
pointing_to: pipewire_exec.name(),
|
||||
install_dir: pipewire_bindir,
|
||||
)
|
||||
endforeach
|
||||
|
||||
custom_target('pipewire-uninstalled',
|
||||
build_by_default: true,
|
||||
install: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue