From acae9f46673b7304983fd82598c35157cbe22f8c Mon Sep 17 00:00:00 2001 From: xuxin19 Date: Mon, 18 Nov 2024 10:29:56 +0800 Subject: [PATCH] cmake(build):add missing basic and nxlooper cmake script Signed-off-by: xuxin19 --- interpreters/minibasic/CMakeLists.txt | 32 +++++++++++++++++++++++++++ system/nxlooper/CMakeLists.txt | 30 +++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 interpreters/minibasic/CMakeLists.txt create mode 100644 system/nxlooper/CMakeLists.txt diff --git a/interpreters/minibasic/CMakeLists.txt b/interpreters/minibasic/CMakeLists.txt new file mode 100644 index 0000000000..cead0f358c --- /dev/null +++ b/interpreters/minibasic/CMakeLists.txt @@ -0,0 +1,32 @@ +# ############################################################################## +# apps/interpreters/minibasic/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 +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_INTERPRETERS_MINIBASIC) + nuttx_add_application( + NAME + basic + SRCS + script.c + basic.c + STACKSIZE + ${CONFIG_INTERPRETER_MINIBASIC_STACKSIZE} + PRIORITY + ${CONFIG_INTERPRETER_MINIBASIC_PRIORITY}) +endif() diff --git a/system/nxlooper/CMakeLists.txt b/system/nxlooper/CMakeLists.txt new file mode 100644 index 0000000000..76ab06f07c --- /dev/null +++ b/system/nxlooper/CMakeLists.txt @@ -0,0 +1,30 @@ +# ############################################################################## +# apps/system/nxlooper/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 +# additional information regarding copyright ownership. The ASF licenses this +# file to you under the Apache License, Version 2.0 (the "License"); you may not +# use this file except in compliance with the License. You may obtain a copy of +# the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations under +# the License. +# +# ############################################################################## + +if(CONFIG_SYSTEM_NXLOOPER) + + target_sources(apps PRIVATE nxlooper.c) + + if(CONFIG_NXLOOPER_COMMAND_LINE) + nuttx_add_application(NAME nxlooper SRCS nxlooper_main.c STACKSIZE + ${CONFIG_NXLOOPER_MAINTHREAD_STACKSIZE}) + endif() + +endif()