7290dc1e87
pulseaudio is able to either use the atomic __sync builtins from the compiler, or to rely on libatomic_ops for atomic operations. However, since it anyway selects json-c which requires the __sync built-ins, it means using libatomic_ops is useless: even if you use libatomic_ops for pulseaudio, you'd still get a link error in pulseaudio due to the missing __sync built-in for the json-c library. Also, since pulseaudio now inherits the BR2_TOOLCHAIN_HAS_SYNC_4 from json-c, which matches the __sync built-in from pulseaudio, this commit: - Drops the BR2_ARCH_HAS_ATOMICS dependency - Forces pulseaudio to not detect libatomic_ops - Propagates the removal of BR2_ARCH_HAS_ATOMICS dependency to pulseaudio's reverse dependencies. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
comment "espeak needs a toolchain w/ C++, wchar, threads, dynamic library"
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || BR2_STATIC_LIBS
|
|
depends on BR2_USE_MMU
|
|
|
|
config BR2_PACKAGE_ESPEAK
|
|
bool "espeak"
|
|
depends on BR2_INSTALL_LIBSTDCPP
|
|
depends on BR2_USE_WCHAR
|
|
depends on BR2_TOOLCHAIN_HAS_THREADS
|
|
depends on BR2_USE_MMU # fork()
|
|
# does not properly support building only a static version
|
|
depends on !BR2_STATIC_LIBS
|
|
help
|
|
espeak is a speech synthesizer software for English and
|
|
other languages.
|
|
|
|
http://espeak.sourceforge.net/
|
|
|
|
if BR2_PACKAGE_ESPEAK
|
|
|
|
choice
|
|
prompt "choose audio backend"
|
|
default BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE
|
|
|
|
config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_NONE
|
|
bool "No sound backend, only produce wav files"
|
|
|
|
config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_ALSA
|
|
bool "alsa via portaudio"
|
|
select BR2_PACKAGE_PORTAUDIO
|
|
select BR2_PACKAGE_PORTAUDIO_CXX
|
|
|
|
config BR2_PACKAGE_ESPEAK_AUDIO_BACKEND_PULSEAUDIO
|
|
bool "pulseaudio"
|
|
depends on BR2_TOOLCHAIN_HAS_SYNC_4 # pulseaudio -> json-c
|
|
select BR2_PACKAGE_PULSEAUDIO
|
|
|
|
endchoice
|
|
|
|
endif # BR2_PACKAGE_ESPEAK
|