summaryrefslogtreecommitdiff
path: root/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* build-sys: Fix macOS buildShunsuke Shimizu2022-12-071-2/+8
| | | | | | | | | | | | | * Enable macOS specific modules (module-bonjour-publish, module-coreaudio-detect and module-coreaudio-device) * Correctly set `PA_SOEXT` (.so, .dylib and .dll) * Build `poll-posix.c` and `semaphore-osx.c` * Drop linker flag `-Wl,-z,nodelete` on Darwin * Drop linker flag `-Wl,--no-undefined` on Darwin * Prefer to `clock_gettime` over compat impl for old Darwin * Disable SCM credential on Darwin Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/746>
* Make gio-2.0 optional when gsettings is disabledYureka2022-08-151-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/654>
* meson.build: fix build without C++Fabrice Fontaine2022-08-151-1/+2
| | | | | | | | | | | | | | Fix the following build failure without C++: ../output-1/build/pulseaudio-16.1/meson.build:1:0: ERROR: Unknown compiler(s): [['/home/autobuild/autobuild/instance-1/output-1/per-package/pulseaudio/host/bin/powerpc64-buildroot-linux-gnu-g++']] The following exception(s) were encountered: Running "/home/autobuild/autobuild/instance-1/output-1/per-package/pulseaudio/host/bin/powerpc64-buildroot-linux-gnu-g++ --version" gave "[Errno 2] No such file or directory: '/home/autobuild/autobuild/instance-1/output-1/per-package/pulseaudio/host/bin/powerpc64-buildroot-linux-gnu-g++'" Fixes: - http://autobuild.buildroot.org/results/6526a21bd4da3b8458188f27c1ec04c381e4b673 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/737>
* meson: fix meson warningsRosen Penev2022-08-011-2/+4
| | | | | Signed-off-by: Rosen Penev <rosenp@gmail.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/739>
* build-sys: Fix atomic support detectionNicolas Cavallari2022-07-181-4/+6
| | | | | | | | | | | | | | | | | Attempting to use atomics operations on an architecture that does not support them generally results in a link error: ld: /tmp/ccjYcMPP.o: in function `func': testfile.c:(.text+0x1c): undefined reference to `__sync_bool_compare_and_swap_4' The current build system uses cc.compiles() to check if atomic ops are supported, but cc.compiles() does not attempt to link, so the test fails to enable libatomics_opts. Fix this by using cc.links() instead of cc.compiles(). Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/732>
* build-sys: meson: Make module-console-kit optionalIgor V. Kovalenko2022-06-131-0/+5
| | | | | | | | | | Default build configuration would fail to run on a system without systemd-logind (or elogind) and without ConsoleKit daemon responding on dbus interface. Here, module-console-kit would fail to initialize, preventing daemon from starting. Make module-console-kit an optional build feature to allow opt-out. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/719>
* build-sys: Bump soversion for 16.0 releasev16.0Arun Raghavan2022-05-281-1/+1
| | | | | | Just a minor time smoother 2 related change in libpulse implementation. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/714>
* build-sys: Bump libpulse soversion for 16.0Arun Raghavan2022-02-211-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/690>
* build-sys: meson: Make glib and fftw common dependenciesIgor V. Kovalenko2021-11-171-13/+13
| | | | | | | GSettings module (daemon) requires both gio and glib, move glib to common block. qpaeq requires fftw, move fftw to common block. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
* build-sys: meson: Fix indentation in daemon/client blocksIgor V. Kovalenko2021-11-171-55/+55
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
* build-sys: meson: Rearrange shell completion between daemon and clientIgor V. Kovalenko2021-11-171-3/+1
| | | | | | | | Rename bash completion file to pactl and install it with client build. Completions specific to daemon are now just symlinks, create target directory first to install them. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
* build-sys: meson: Rearrange dependencies under client and daemon optionsIgor V. Kovalenko2021-11-171-237/+261
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
* build-sys: meson: change daemon-only to clientIgor V. Kovalenko2021-11-171-7/+7
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
* build-sys: meson: Allow building the daemon onlyMart Raudsepp2021-11-171-3/+20
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
* build-sys: meson: Relax sanity checks for daemonless buildsMart Raudsepp2021-11-171-3/+3
| | | | | | | Echo canceller, udev and speex resampling is only used by the daemon, so don't error or warn about those in -Ddaemon=false builds. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
* Add configuration option enable-smoother-2 to enable alternative smoother codeGeorg Chini2021-11-031-0/+4
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/55>
* Install modules in bindir for WindowsBiswapriyo Nath2021-09-221-0/+5
| | | | | | | Windows only loads DLLs from the same directory as the executable. This fixes module loading failure by putting it in same directory. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/633>
* build-sys: Remove version number from the module pathTanu Kaskinen2021-08-251-1/+1
| | | | | | | | | | | | | | | | | When packaging a new version for OpenEmbedded, I use the buildhistory-diff tool to check what changed between the versions. The version number in the module directory means that I get tons of diff output due to changes in file paths. There are many removed and added files and it's hard to see if something else than just the version number changed. That motivated me to write this patch. Removing the version number has the downside that it makes it easier to have version mismatches between the daemon and the modules, but https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/249 will make the handling of such situations better. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/230>
* build-sys: meson: Check if cpuid.h header is usableIgor V. Kovalenko2021-08-111-1/+13
| | | | | | | | | | With clang compiler including cpuid.h will produce error if architecture is not x86-based, and cheching if cpuid.h exists via Meson has_header() is not enough. Fix this by creating a list of headers checked to be usable via Meson check_header() function, and move cpuid.h to that list. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/614>
* build-sys: meson: Require xice, xsm and xtst for daemon onlyIgor V. Kovalenko2021-08-111-3/+3
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/613>
* build-sys: Fix a warning related to avahi and config datav15.0Arun Raghavan2021-07-271-0/+2
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/608>
* build-sys: Fix a warning related to gsettings and config dataArun Raghavan2021-07-271-0/+2
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/607>
* build-sys: meson: Require bluez dependency if bluez5 feature is enabledIgor V. Kovalenko2021-06-211-4/+6
| | | | | | | | | Build breaks if bluez5 and bluez5-native-headset are both enabled but bluez headers are not available. Fix this by changing `bluez5` to Meson feature requiring `bluez` dependency. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/583>
* build-sys: meson: require GIO dependency for RTP-GStreamerIgor V. Kovalenko2021-06-211-2/+4
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/584>
* build-sys: meson: restore big endian detectionIgor V. Kovalenko2021-06-031-0/+4
| | | | | | Autotools used AC_C_BIGENDIAN to set WORDS_BIGENDIAN, add Meson implementation. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/572>
* build-sys: meson: make doxygen optionalIgor V. Kovalenko2021-05-191-1/+3
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/558>
* build-sys: meson: only require libltdl if daemon is builtIgor V. Kovalenko2021-05-181-2/+5
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/557>
* build-sys: Fix a couple of meson warningsv14.99.1Arun Raghavan2021-05-171-0/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/556>
* build-sys: Bump libpulse soversionArun Raghavan2021-05-171-1/+1
| | | | | | Lots of changes, particularly related to the messaging API. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/555>
* build-sys: meson: allow building client libraries onlyIgor V. Kovalenko2021-04-191-0/+2
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/540>
* bluetooth: add support for mSBC codecJames Bottomley2021-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Adding processing support for the mSBC codec is somewhat problematic, because, although it is a SBC codec, the a2dp handling can't simply be reused because the codec is used on an eSCO link with transparent data, meaning the transmission unit has to be 48 bytes (fragmenting the codec packets) and reassembly and boundary detection is required to be done by the implementation. Therefore we have to implement separate render and push routines for msbc that do this fragmentation. Fragmentation is done by emulating circular buffers. The receive (push) buffer is easy, since the mSBC packet size is 60, simply have a buffer of this size in the sbc_info area where the fragments are reassembled. Once we have a full 60 bytes, decode and restart from zero. The send (render) buffer is more problematic, since the transmit must be done from contiguous memory. This means that the buffer must be the lowest common multiple of the transmission unit and the packet size. This value is 240 since 240/48 == 5 and 240/60 == 4. So the buffer pointers are reset at 240 which is a whole number of both rendered packets and eSCO transmission units. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/507>
* build-sys: meson: fix meson dist versionIgor V. Kovalenko2021-03-151-0/+2
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/516>
* build-sys: meson: support elogind alternative for module-systemd-loginIgor V. Kovalenko2021-02-121-0/+6
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/502>
* build-sys: meson: add tcp-wrappersIgor V. Kovalenko2021-02-121-1/+6
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/498>
* build-sys: drop gconf supportIgor V. Kovalenko2021-02-121-1/+0
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/499>
* bluetooth: Add aptX support via GStreamerSanchayan Maity2021-01-191-0/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/440>
* bluetooth: Add LDAC support via GStreamerSanchayan Maity2021-01-191-0/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/440>
* bluetooth: Add a generic GStreamer codec moduleSanchayan Maity2021-01-191-0/+8
| | | | | | | | | | | | | | This adds a generic gstreamer codec module based on which other bluetooth codecs viz. aptX, aptX-HD, LDAC and AAC can be supported. The GStreamer codec plugins used here themselves depend on the native codec implementation. aptX/aptX-HD -> libopenaptx LDAC -> libldac AAC -> Fraunhofer FDK AAC Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/440>
* build-sys: meson: only warn about lack of udev on LinuxGreg V2021-01-181-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
* module-devd-detect: new module for soundcard hotplug on FreeBSDGreg V2021-01-181-0/+2
| | | | | | Used in addition to module-detect, since devd only provides hotplug events. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
* build-sys: meson: support memfd without SYS_memfd_create (FreeBSD 13)Greg V2021-01-181-1/+2
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
* build-sys: meson: add execinfo dependency for FreeBSDGreg V2021-01-181-0/+3
| | | | | | For 'backtrace' and related symbols Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
* build-sys: meson: check for shm_open even if it's in libc (FreeBSD), not librtGreg V2021-01-181-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
* build-sys: meson: when libc iconv is used, tell libiconv header to pretend ↵Greg V2021-01-181-0/+2
| | | | | | | | | | to be libc's iconv The libiconv header on FreeBSD would be preferred by include path, but we don't want to link to libiconv, so tell its header to act like the system header. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
* build-sys: meson: set HAVE_DLADDR even if it's in libc (FreeBSD), not libdlGreg V2021-01-181-1/+1
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
* win32: Fix privlibdir for running on WindowsPatrick Gaskin2021-01-131-0/+5
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/458>
* database: clean up remaining references to CANONICAL_HOSTIgor V. Kovalenko2021-01-071-1/+0
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/425>
* x11: gracefully handle X11 connection errorIgor V. Kovalenko2021-01-041-0/+4
| | | | | | | | | Perform X11 connection recovery via XSetIOErrorExitHandler mechanism. Implementation is largely inspired by this change to GNOME/mutter https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1447 Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/441>
* win32: Fix meson build system for Windows.Edward Lee2020-12-161-5/+42
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/360>
* build-sys: meson: change oss-output boolean to Meson featureIgor V. Kovalenko2020-12-141-4/+3
| | | | Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/437>