2020-08-17 15:15:57 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config INTERPRETERS_QUICKJS
|
|
|
|
tristate "QuickJS JavaScript interpreter"
|
|
|
|
default n
|
|
|
|
|
|
|
|
if INTERPRETERS_QUICKJS
|
|
|
|
|
2022-09-09 10:07:44 +02:00
|
|
|
choice
|
|
|
|
prompt "QuickJS command line interpreter"
|
|
|
|
default INTERPRETERS_QUICKJS_NONE
|
|
|
|
|
|
|
|
config INTERPRETERS_QUICKJS_NONE
|
|
|
|
bool "distable quickjs interpreter"
|
|
|
|
|
2021-03-15 11:56:18 +01:00
|
|
|
config INTERPRETERS_QUICKJS_MINI
|
2022-09-09 10:07:44 +02:00
|
|
|
bool "Minimal quickjs interpreter"
|
|
|
|
|
|
|
|
config INTERPRETERS_QUICKJS_FULL
|
|
|
|
bool "normal quickjs interpreter"
|
|
|
|
|
|
|
|
endchoice # QuickJS command line interpreter
|
2021-03-15 11:56:18 +01:00
|
|
|
|
2020-08-17 15:15:57 +02:00
|
|
|
config INTERPRETERS_QUICKJS_BIGNUM
|
|
|
|
bool "Bignum support"
|
2021-03-12 10:10:54 +01:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
It's depend on libatomic,
|
|
|
|
Not all platform support it.
|
2020-08-17 15:15:57 +02:00
|
|
|
|
|
|
|
config INTERPRETERS_QUICKJS_PRIORITY
|
|
|
|
int "QuickJS interpreter priority"
|
|
|
|
default 100
|
|
|
|
|
|
|
|
config INTERPRETERS_QUICKJS_STACKSIZE
|
|
|
|
int "QuickJS interpreter stack size"
|
|
|
|
default 8192
|
|
|
|
|
2021-03-15 11:56:18 +01:00
|
|
|
config INTERPRETERS_QUICKJS_EXT_HOOK
|
|
|
|
bool "External init/destory hook"
|
|
|
|
default n
|
|
|
|
depends on INTERPRETERS_QUICKJS_MINI
|
|
|
|
---help---
|
|
|
|
Since minimal interpreter only support 'console.log',
|
|
|
|
you can export custom module by implement init/destory hook.
|
|
|
|
|
2020-08-17 15:15:57 +02:00
|
|
|
endif
|