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

commit 4957c2be8df3b34d7c3c832b34f182e45b555150
Author: SPRESENSE <[email protected]>
AuthorDate: Tue Jun 25 20:20:50 2024 +0900

    lte: Add CMakeLists.txt
    
    Add CMakeLists.txt to lte alt1250 and lapi.
---
 lte/alt1250/CMakeLists.txt | 86 ++++++++++++++++++++++++++++++++++++++++++++++
 lte/lapi/CMakeLists.txt    | 38 ++++++++++++++++++++
 2 files changed, 124 insertions(+)

diff --git a/lte/alt1250/CMakeLists.txt b/lte/alt1250/CMakeLists.txt
new file mode 100644
index 000000000..9ed2f85ec
--- /dev/null
+++ b/lte/alt1250/CMakeLists.txt
@@ -0,0 +1,86 @@
+# 
##############################################################################
+# apps/lte/alt1250/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_LTE_ALT1250)
+
+  set(INCDIR
+      ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_LIST_DIR}/callback_handlers
+      ${CMAKE_CURRENT_LIST_DIR}/usock_handlers)
+
+  # Application info
+
+  nuttx_add_application(
+    NAME
+    ${CONFIG_LTE_ALT1250_PROGNAME}
+    SRCS
+    alt1250_main.c
+    STACKSIZE
+    ${CONFIG_LTE_ALT1250_STACKSIZE}
+    PRIORITY
+    ${CONFIG_LTE_ALT1250_PRIORITY}
+    INCLUDE_DIRECTORIES
+    ${INCDIR})
+
+  set(CSRCS
+      # Framework source files
+      alt1250_container.c
+      alt1250_devevent.c
+      alt1250_devif.c
+      alt1250_select.c
+      alt1250_socket.c
+      alt1250_usockevent.c
+      alt1250_usockif.c
+      alt1250_netdev.c
+      alt1250_util.c
+      alt1250_reset_seq.c
+      alt1250_atcmd.c
+      # Callback task sources
+      callback_handlers/alt1250_evt.c
+      # Usersock request handling source files
+      usock_handlers/alt1250_sockethdlr.c
+      usock_handlers/alt1250_closehdlr.c
+      usock_handlers/alt1250_connecthdlr.c
+      usock_handlers/alt1250_sendtohdlr.c
+      usock_handlers/alt1250_recvfromhdlr.c
+      usock_handlers/alt1250_setsockopthdlr.c
+      usock_handlers/alt1250_getsockopthdlr.c
+      usock_handlers/alt1250_getsocknamehdlr.c
+      usock_handlers/alt1250_getpeernamehdlr.c
+      usock_handlers/alt1250_bindhdlr.c
+      usock_handlers/alt1250_listenhdlr.c
+      usock_handlers/alt1250_accepthdlr.c
+      usock_handlers/alt1250_ioctlhdlr.c
+      usock_handlers/alt1250_shutdownhdlr.c
+      usock_handlers/alt1250_sms.c
+      # Usersock ioctl LAPI command handling source files
+      usock_handlers/alt1250_ioctl_ltecmd.c
+      usock_handlers/alt1250_ioctl_ifreq.c
+      usock_handlers/alt1250_ioctl_normal.c
+      usock_handlers/alt1250_ioctl_event.c
+      usock_handlers/alt1250_ioctl_other.c
+      usock_handlers/alt1250_ioctl_power.c
+      usock_handlers/alt1250_ioctl_fwupdate.c
+      usock_handlers/alt1250_ioctl_denyinetsock.c
+      usock_handlers/alt1250_ioctl_lwm2m.c)
+
+  nuttx_add_library(alt1250)
+  target_sources(alt1250 PRIVATE ${CSRCS})
+  target_include_directories(alt1250 PRIVATE ${INCDIR})
+endif()
diff --git a/lte/lapi/CMakeLists.txt b/lte/lapi/CMakeLists.txt
new file mode 100644
index 000000000..53ea4de4a
--- /dev/null
+++ b/lte/lapi/CMakeLists.txt
@@ -0,0 +1,38 @@
+# 
##############################################################################
+# apps/lte/lapi/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_LTE_LAPI)
+
+  set(CSRCS
+      src/lapi_evt.c
+      src/lapi_firmware.c
+      src/lapi_net.c
+      src/lapi_other.c
+      src/lapi_pdn.c
+      src/lapi_pin.c
+      src/lapi_power.c
+      src/lapi_psave.c
+      src/lapi_radio.c
+      src/lapi_sim.c
+      src/lapi_lwm2m.c
+      src/lapi_log.c)
+
+  target_sources(apps PRIVATE ${CSRCS})
+endif()

Reply via email to