win32: Fix meson build system for Windows.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/360>
This commit is contained in:
Edward Lee 2020-10-01 10:24:40 -04:00 committed by Arun Raghavan
parent 7bc559fe26
commit b892e327a9
7 changed files with 127 additions and 55 deletions

View file

@ -19,12 +19,14 @@ executable('pacat',
c_args : pa_c_args,
)
foreach alias : pacat_aliases
# FIXME How to handle extension (.exe on windows)?
dst = join_paths(bindir, alias)
cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pacat', dst)
meson.add_install_script('sh', '-c', cmd)
endforeach
# Windows doesn't support symbolic links.
if host_machine.system() != 'windows'
foreach alias : pacat_aliases
dst = join_paths(bindir, alias)
cmd = 'ln -fs @0@ $DESTDIR@1@'.format('pacat', dst)
meson.add_install_script('sh', '-c', cmd)
endforeach
endif
pactl_sources = [
'pactl.c',
@ -40,33 +42,35 @@ executable('pactl',
c_args : pa_c_args,
)
pasuspender_sources = [
'pasuspender.c',
]
if host_machine.system() != 'windows'
pasuspender_sources = [
'pasuspender.c',
]
executable('pasuspender',
pasuspender_sources,
install: true,
install_rpath : privlibdir,
include_directories : [configinc, topinc],
link_with : [libpulsecommon, libpulse],
dependencies: [libintl_dep],
c_args : pa_c_args,
)
executable('pasuspender',
pasuspender_sources,
install: true,
install_rpath : privlibdir,
include_directories : [configinc, topinc],
link_with : [libpulsecommon, libpulse],
dependencies: [libintl_dep],
c_args : pa_c_args,
)
pacmd_sources = [
'pacmd.c',
]
pacmd_sources = [
'pacmd.c',
]
executable('pacmd',
pacmd_sources,
install: true,
install_rpath : privlibdir,
include_directories : [configinc, topinc],
link_with : [libpulsecommon, libpulse],
dependencies: [libintl_dep],
c_args : pa_c_args,
)
executable('pacmd',
pacmd_sources,
install: true,
install_rpath : privlibdir,
include_directories : [configinc, topinc],
link_with : [libpulsecommon, libpulse],
dependencies: [libintl_dep],
c_args : pa_c_args,
)
endif
if x11_dep.found()
pax11publish_sources = [