1config BR2_PACKAGE_LUA_CFFI
2	bool "lua-cffi"
3	depends on BR2_TOOLCHAIN_HAS_THREADS # libffi
4	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
5	depends on BR2_INSTALL_LIBSTDCPP
6	select BR2_PACKAGE_LIBFFI
7	help
8	  This is a portable C FFI for Lua, based on libffi and aiming
9	  to be mostly compatible with LuaJIT FFI, but written from
10	  scratch.
11
12	  https://github.com/q66/cffi-lua
13
14comment "lua-cffi needs a toolchain w/ C++, gcc >= 4.8, threads"
15	depends on !BR2_INSTALL_LIBSTDCPP || \
16		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
17		!BR2_TOOLCHAIN_HAS_THREADS
18