xref: /OK3568_Linux_fs/buildroot/package/openal/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# openal can:
2*4882a593Smuzhiyun# - use __atomic_*() intrinsics when available
3*4882a593Smuzhiyun# - otherwise use __sync_*() intrinsics when available. It needs the
4*4882a593Smuzhiyun#   4-byte ones on 32 bits architectures, and the 4-byte and 8-byte
5*4882a593Smuzhiyun#   one on 64 bits architecture
6*4882a593Smuzhiyun# - it also provides its one implementation of atomic operations on
7*4882a593Smuzhiyun#   x86 and x86_64, but we dont take those into account since in most
8*4882a593Smuzhiyun#   situations __atomic_*() or __sync_*() will be available, and not
9*4882a593Smuzhiyun#   all x86 CPUs provide the necessary assembly instructions.
10*4882a593Smuzhiyunconfig BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
11*4882a593Smuzhiyun	bool
12*4882a593Smuzhiyun	default y if BR2_TOOLCHAIN_HAS_ATOMIC
13*4882a593Smuzhiyun	default y if BR2_TOOLCHAIN_HAS_SYNC_4 && !BR2_ARCH_IS_64
14*4882a593Smuzhiyun	default y if BR2_TOOLCHAIN_HAS_SYNC_4 && BR2_TOOLCHAIN_HAS_SYNC_8 && BR2_ARCH_IS_64
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunconfig BR2_PACKAGE_OPENAL
17*4882a593Smuzhiyun	bool "openal"
18*4882a593Smuzhiyun	depends on BR2_INSTALL_LIBSTDCPP
19*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11 PR56019
20*4882a593Smuzhiyun	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
21*4882a593Smuzhiyun	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
22*4882a593Smuzhiyun	help
23*4882a593Smuzhiyun	  OpenAL provides capabilities for playing audio in a virtual
24*4882a593Smuzhiyun	  3D environment. Distance attenuation, doppler shift, and
25*4882a593Smuzhiyun	  directional sound emitters are among the features handled by
26*4882a593Smuzhiyun	  the API.
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	  http://kcat.strangesoft.net/openal.html
29*4882a593Smuzhiyun
30*4882a593Smuzhiyuncomment "openal needs a toolchain w/ NPTL, C++, gcc >= 4.9"
31*4882a593Smuzhiyun	depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS
32*4882a593Smuzhiyun	depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \
33*4882a593Smuzhiyun		|| !BR2_INSTALL_LIBSTDCPP \
34*4882a593Smuzhiyun		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
35