Skip to content

Commit fee82bd

Browse files
xuxin930xiaoxiang781216
authored andcommitted
cmake(build):add missing basic and nxlooper cmake script
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
1 parent 4d30198 commit fee82bd

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

interpreters/minibasic/CMakeLists.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ##############################################################################
2+
# apps/interpreters/minibasic/CMakeLists.txt
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
5+
# license agreements. See the NOTICE file distributed with this work for
6+
# additional information regarding copyright ownership. The ASF licenses this
7+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
8+
# use this file except in compliance with the License. You may obtain a copy of
9+
# the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations under
17+
# the License.
18+
#
19+
# ##############################################################################
20+
21+
if(CONFIG_INTERPRETERS_MINIBASIC)
22+
nuttx_add_application(
23+
NAME
24+
basic
25+
SRCS
26+
script.c
27+
basic.c
28+
STACKSIZE
29+
${CONFIG_INTERPRETER_MINIBASIC_STACKSIZE}
30+
PRIORITY
31+
${CONFIG_INTERPRETER_MINIBASIC_PRIORITY})
32+
endif()

system/nxlooper/CMakeLists.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# ##############################################################################
2+
# apps/system/nxlooper/CMakeLists.txt
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
5+
# license agreements. See the NOTICE file distributed with this work for
6+
# additional information regarding copyright ownership. The ASF licenses this
7+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
8+
# use this file except in compliance with the License. You may obtain a copy of
9+
# the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations under
17+
# the License.
18+
#
19+
# ##############################################################################
20+
21+
if(CONFIG_SYSTEM_NXLOOPER)
22+
23+
target_sources(apps PRIVATE nxlooper.c)
24+
25+
if(CONFIG_NXLOOPER_COMMAND_LINE)
26+
nuttx_add_application(NAME nxlooper SRCS nxlooper_main.c STACKSIZE
27+
${CONFIG_NXLOOPER_MAINTHREAD_STACKSIZE})
28+
endif()
29+
30+
endif()

0 commit comments

Comments
 (0)