4a09e9b54f
This patch introduces the luainterpreter virtual package, which is provided either by 'lua' or by 'lua-jit'. Packages that require a Lua interpreter can then depend on BR2_PACKAGE_LUAINTERPRETER (in their Config.in) and luainterpreter (in their .mk). Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [yann.morin.1998@free.fr: switch to package-defined providers, apply Thomas' comments] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
39 lines
811 B
Plaintext
39 lines
811 B
Plaintext
config BR2_PACKAGE_LUA
|
|
bool "lua"
|
|
select BR2_PACKAGE_HAS_LUA_INTERPRETER
|
|
help
|
|
Lua is a powerful, fast, light-weight, embeddable scripting language.
|
|
|
|
http://www.lua.org/
|
|
|
|
if BR2_PACKAGE_LUA
|
|
|
|
config BR2_PACKAGE_PROVIDES_LUA_INTERPRETER
|
|
default "lua"
|
|
|
|
choice
|
|
prompt "Lua Interpreter command-line editing"
|
|
default BR2_PACKAGE_LUA_INTERPRETER_EDITING_NONE
|
|
|
|
config BR2_PACKAGE_LUA_INTERPRETER_EDITING_NONE
|
|
bool "none"
|
|
help
|
|
None.
|
|
|
|
config BR2_PACKAGE_LUA_INTERPRETER_READLINE
|
|
bool "readline support"
|
|
select BR2_PACKAGE_READLINE
|
|
select BR2_PACKAGE_NCURSES
|
|
help
|
|
Enables command-line editing in the Lua interpreter.
|
|
|
|
config BR2_PACKAGE_LUA_INTERPRETER_LINENOISE
|
|
bool "linenoise support"
|
|
select BR2_PACKAGE_LINENOISE
|
|
help
|
|
Enables command-line editing in the Lua interpreter.
|
|
|
|
endchoice
|
|
|
|
endif
|