summaryrefslogtreecommitdiffstats
path: root/src/utils/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:03:18 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:03:18 +0000
commit2dd5bc6a074165ddfbd57c4bd52c2d2dac8f47a1 (patch)
tree465b29cb405d3af0b0ad50c78e1dccc636594fec /src/utils/meson.build
parentInitial commit. (diff)
downloadpulseaudio-2dd5bc6a074165ddfbd57c4bd52c2d2dac8f47a1.tar.xz
pulseaudio-2dd5bc6a074165ddfbd57c4bd52c2d2dac8f47a1.zip
Adding upstream version 14.2.upstream/14.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/utils/meson.build')
-rw-r--r--src/utils/meson.build117
1 files changed, 117 insertions, 0 deletions
diff --git a/src/utils/meson.build b/src/utils/meson.build
new file mode 100644
index 0000000..dedf4e4
--- /dev/null
+++ b/src/utils/meson.build
@@ -0,0 +1,117 @@
+pacat_sources = [
+ 'pacat.c',
+]
+
+pacat_aliases = [
+ 'pamon',
+ 'paplay',
+ 'parec',
+ 'parecord',
+]
+
+executable('pacat',
+ pacat_sources,
+ install: true,
+ install_rpath : privlibdir,
+ include_directories : [configinc, topinc],
+ link_with : [libpulsecommon, libpulse],
+ dependencies : [sndfile_dep, libintl_dep],
+ 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
+
+pactl_sources = [
+ 'pactl.c',
+]
+
+executable('pactl',
+ pactl_sources,
+ install: true,
+ install_rpath : privlibdir,
+ include_directories : [configinc, topinc],
+ link_with : [libpulsecommon, libpulse],
+ dependencies : [sndfile_dep, libintl_dep],
+ c_args : pa_c_args,
+)
+
+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,
+)
+
+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,
+)
+
+if x11_dep.found()
+ pax11publish_sources = [
+ 'pax11publish.c',
+ ]
+
+ executable('pax11publish',
+ pax11publish_sources,
+ install: true,
+ install_rpath : privlibdir,
+ include_directories : [configinc, topinc],
+ link_with : [libpulsecommon, libpulse],
+ dependencies : [x11_dep, libintl_dep],
+ c_args : pa_c_args,
+ )
+endif
+
+if cc.has_header('sys/soundcard.h')
+ libpulsecommon_sources = [
+ 'padsp.c',
+ ]
+
+ libpulsedsp = shared_library('pulsedsp',
+ libpulsecommon_sources,
+ install: true,
+ install_dir : padsplibdir,
+ install_rpath : privlibdir,
+ include_directories : [configinc, topinc],
+ link_with : [libpulsecommon, libpulse],
+ link_args : [nodelete_link_args],
+ dependencies: [thread_dep, dl_dep],
+ c_args : [pa_c_args, '-Wno-nonnull-compare']
+ )
+
+ configure_file(
+ input : 'padsp.in',
+ output : 'padsp',
+ configuration : cdata,
+ install : true,
+ install_dir : bindir,
+ )
+endif
+
+if dbus_dep.found() and fftw_dep.found()
+ install_data('qpaeq', install_dir : bindir)
+endif
+
+install_data('pa-info', install_dir : bindir)