xref: /OK3568_Linux_fs/buildroot/package/libsigrok/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_LIBSIGROK
2	bool "libsigrok"
3	# libglib2
4	depends on BR2_USE_WCHAR
5	depends on BR2_TOOLCHAIN_HAS_THREADS
6	depends on BR2_USE_MMU
7	depends on BR2_ENABLE_LOCALE
8	depends on !BR2_STATIC_LIBS # libzip
9	# std=c11
10	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
11	select BR2_PACKAGE_LIBZIP
12	select BR2_PACKAGE_LIBGLIB2
13	help
14	  Libsigrok is a shared library written in C, which provides
15	  the basic hardware access drivers for logic analyzers and
16	  other supported devices, as well as input/output file format
17	  support.
18
19	  This library is a part of the sigrok software suite.
20
21	  http://sigrok.org/wiki/Libsigrok
22
23if BR2_PACKAGE_LIBSIGROK
24
25config BR2_PACKAGE_LIBSIGROKCXX
26	bool "build C++ bindings"
27	depends on BR2_INSTALL_LIBSTDCPP
28	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # glibmm
29	depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-doxygen
30	select BR2_PACKAGE_GLIBMM
31	select BR2_PACKAGE_HOST_DOXYGEN
32	help
33	  Build libsigrok C++ bindings as well.
34
35comment "C++ bindings need a toolchain w/ C++, gcc >= 4.9, host gcc >= 4.9"
36	depends on !BR2_INSTALL_LIBSTDCPP || \
37		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
38		!BR2_HOST_GCC_AT_LEAST_4_9
39
40endif
41
42comment "libsigrok needs a toolchain w/ wchar, locale, threads, dynamic library, gcc >= 4.7"
43	depends on BR2_USE_MMU
44	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS \
45		|| !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 || BR2_STATIC_LIBS \
46		|| !BR2_ENABLE_LOCALE
47