mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Add complete integration for the MicroQuickJS JavaScript interpreter, supporting both CMake and Make build systems with automatic source acquisition. Key features: * FetchContent downloads mquickjs from bellard/mquickjs if local git repository is not available in interpreters/mquickjs/mquickjs/ * Builds mqjs_stdlib host tool to generate mqjs_stdlib.h and mquickjs_atom.h headers during build * Creates libmquickjs library with proper header generation dependencies to prevent parallel build failures * Provides mqjs NSH application for interactive JavaScript execution * Configurable task priority and stack size via Kconfig options (INTERPRETERS_MQJS_PRIORITY, INTERPRETERS_MQJS_STACKSIZE) * Supports both 32-bit and 64-bit architectures with appropriate build flags Files added: * CMakeLists.txt - CMake build configuration with FetchContent support * Kconfig - Configuration options for interpreter features * Make.defs - Make build definitions * Makefile - Alternative Make-based build support * .gitignore - Ignores generated files and local mquickjs source directory Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
24 lines
588 B
Text
24 lines
588 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config INTERPRETERS_MQJS
|
|
tristate "MicroQuickJS JavaScript interpreter"
|
|
default n
|
|
|
|
if INTERPRETERS_MQJS
|
|
|
|
config INTERPRETERS_MQJS_PRIORITY
|
|
int "MicroQuickJS interpreter priority"
|
|
default 100
|
|
---help---
|
|
Task priority of the MicroQuickJS interpreter.
|
|
|
|
config INTERPRETERS_MQJS_STACKSIZE
|
|
int "MicroQuickJS interpreter stack size"
|
|
default 8192
|
|
---help---
|
|
Size of the stack allocated for MicroQuickJS interpreter.
|
|
|
|
endif # INTERPRETERS_MQJS
|