This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 1fdf13478 build: Missing CMakeLists.txt for bas
1fdf13478 is described below
commit 1fdf13478f75ad93191d5046f66d86d1f4ab70f7
Author: Daniel Jasinski <[email protected]>
AuthorDate: Sat Aug 10 08:22:51 2024 -0400
build: Missing CMakeLists.txt for bas
This correctly enables BASIC interpreter in CMake based
build for at least sim:bas board configuration.
Signed-off-by: Daniel Jasinski <[email protected]>
---
interpreters/CMakeLists.txt | 2 ++
interpreters/{ => bas}/CMakeLists.txt | 32 ++++++++++++++++++++++++++++++--
2 files changed, 32 insertions(+), 2 deletions(-)
diff --git a/interpreters/CMakeLists.txt b/interpreters/CMakeLists.txt
index f48cce189..3141c6812 100644
--- a/interpreters/CMakeLists.txt
+++ b/interpreters/CMakeLists.txt
@@ -18,4 +18,6 @@
#
#
##############################################################################
+nuttx_add_subdirectory()
+
nuttx_generate_kconfig(MENUDESC "Interpreters")
diff --git a/interpreters/CMakeLists.txt b/interpreters/bas/CMakeLists.txt
similarity index 63%
copy from interpreters/CMakeLists.txt
copy to interpreters/bas/CMakeLists.txt
index f48cce189..18aa8cfc2 100644
--- a/interpreters/CMakeLists.txt
+++ b/interpreters/bas/CMakeLists.txt
@@ -1,5 +1,5 @@
#
##############################################################################
-# apps/interpreters/CMakeLists.txt
+# apps/interpreters/bas/CMakeLists.txt
#
# Licensed to the Apache Software Foundation (ASF) under one or more
contributor
# license agreements. See the NOTICE file distributed with this work for
@@ -18,4 +18,32 @@
#
#
##############################################################################
-nuttx_generate_kconfig(MENUDESC "Interpreters")
+if(CONFIG_INTERPRETERS_BAS)
+ nuttx_add_application(
+ NAME
+ bas
+ SRCS
+ bas_main.c
+ STACKSIZE
+ ${CONFIG_INTERPRETER_BAS_STACKSIZE}
+ PRIORITY
+ ${CONFIG_INTERPRETER_BAS_PRIORITY})
+
+ set(CSRCS
+ bas_str.c
+ bas_token.c
+ bas_value.c
+ bas_var.c
+ bas.c
+ bas_auto.c
+ bas_fs.c
+ bas_global.c
+ bas_program.c)
+
+ if(CONFIG_INTERPRETER_BAS_VT100)
+ list(APPEND CSRCS bas_vt100.c)
+ endif()
+
+ target_sources(apps PRIVATE ${CSRCS})
+
+endif()