添加BUILD.gn 文件 能生成ninja脚本 但编译不过
This commit is contained in:
68
common/BUILD.gn
Normal file
68
common/BUILD.gn
Normal file
@@ -0,0 +1,68 @@
|
||||
#Copyright(c) 2024 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||||
|
||||
#This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||||
#be copied by any method or incorporated into another program without
|
||||
#the express written consent of Aerospace C.Power. This Information or any portion
|
||||
#thereof remains the property of Aerospace C.Power. The Information contained herein
|
||||
#is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||||
#liability for its use in any way and conveys no license or title under
|
||||
#any patent or copyright and makes no representation or warranty that this
|
||||
#Information is free from patent or copyright infringement.
|
||||
|
||||
import("//build/buildcfg.gni")
|
||||
|
||||
module_name = "kl_sdk"
|
||||
|
||||
kernel_module(module_name) {
|
||||
sources = [
|
||||
"app/src/iot_app.c",
|
||||
"compiler/gcc/src/cpl_utils.c",
|
||||
"io_lib/src/iot_printf.c",
|
||||
"io_lib/src/iot_string.c",
|
||||
"io_lib/src/iot_mem.c",
|
||||
"io_lib/src/iot_strformat.c",
|
||||
"io_lib/src/iot_sprintf.c",
|
||||
"io_lib/src/iot_snprintf.c",
|
||||
"os_shim/freertos/src/os_mem.c",
|
||||
"os_shim/freertos/src/os_malloc.c",
|
||||
"os_shim/freertos/src/os_lock.c",
|
||||
"os_shim/freertos/src/os_event.c",
|
||||
"os_shim/freertos/src/os_timer.c",
|
||||
"os_shim/freertos/src/os_utils.c",
|
||||
"os_shim/freertos/src/os_task.c",
|
||||
"share_task/iot_share_task.c",
|
||||
"socket/iot_socket_api.c",
|
||||
"pkt/iot_pkt.c",
|
||||
"utils/iot_mem_pool.c",
|
||||
"utils/iot_frame_parse.c",
|
||||
"utils/iot_queue.c",
|
||||
# "utils/iot_version.c",
|
||||
"utils/iot_crc.c",
|
||||
"utils/iot_utils.c",
|
||||
"utils/iot_bitmap.c",
|
||||
"utils/iot_meter_addr_hash_table.c",
|
||||
"utils/iot_sha1.c",
|
||||
"utils/iot_ntoh.c",
|
||||
"utils/iot_bitops.c",
|
||||
"utils/iot_ringbuf.c",
|
||||
"utils/iot_task.c",
|
||||
"utils/iot_addr_hash_table.c",
|
||||
# "utils/iot_hook.c",
|
||||
"lzma/decomp.c",
|
||||
"lzma/7zAlloc.c",
|
||||
"lzma/LzmaTools.c",
|
||||
"lzma/LzmaDec.c",
|
||||
"dbglog/iot_dbglog.c",
|
||||
"dbglog/plc/iot_plc_dbglog_module_entry.c",
|
||||
"ipc/itc/src/iot_ipc.c",
|
||||
"plc_lib/src/iot_plc_api.c",
|
||||
"plc_lib/src/iot_plc_api_cco.c",
|
||||
"plc_lib/src/iot_plc_api_sta.c",
|
||||
"plc_lib/src/iot_plc_lib.c",
|
||||
]
|
||||
include_dirs = [
|
||||
"//import/mbedtls/include",
|
||||
"//common/lzma",
|
||||
"//common/plc_lib/inc",
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user