Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
tools-mirror
Micropython
提交
212fe7f3
M
Micropython
项目概览
tools-mirror
/
Micropython
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
Micropython
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
212fe7f3
编写于
4月 08, 2021
作者:
D
Damien George
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
extmod/extmod.cmake: Add support to build btree module with CMake.
Signed-off-by:
N
Damien George
<
damien@micropython.org
>
上级
5dcc9b3b
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
49 addition
and
1 deletion
+49
-1
extmod/extmod.cmake
extmod/extmod.cmake
+48
-0
ports/esp32/main/CMakeLists.txt
ports/esp32/main/CMakeLists.txt
+1
-1
未找到文件。
extmod/extmod.cmake
浏览文件 @
212fe7f3
...
...
@@ -4,6 +4,8 @@ set(MICROPY_EXTMOD_DIR "${MICROPY_DIR}/extmod")
set
(
MICROPY_OOFATFS_DIR
"
${
MICROPY_DIR
}
/lib/oofatfs"
)
set
(
MICROPY_SOURCE_EXTMOD
${
MICROPY_DIR
}
/lib/embed/abort_.c
${
MICROPY_DIR
}
/lib/utils/printf.c
${
MICROPY_EXTMOD_DIR
}
/machine_i2c.c
${
MICROPY_EXTMOD_DIR
}
/machine_mem.c
${
MICROPY_EXTMOD_DIR
}
/machine_pulse.c
...
...
@@ -43,3 +45,49 @@ set(MICROPY_SOURCE_EXTMOD
${
MICROPY_EXTMOD_DIR
}
/virtpin.c
${
MICROPY_EXTMOD_DIR
}
/nimble/modbluetooth_nimble.c
)
# Library for btree module and associated code
set
(
MICROPY_LIB_BERKELEY_DIR
"
${
MICROPY_DIR
}
/lib/berkeley-db-1.xx"
)
if
(
EXISTS
"
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_close.c"
)
add_library
(
micropy_extmod_btree OBJECT
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_close.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_conv.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_debug.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_delete.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_get.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_open.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_overflow.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_page.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_put.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_search.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_seq.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_split.c
${
MICROPY_LIB_BERKELEY_DIR
}
/btree/bt_utils.c
${
MICROPY_LIB_BERKELEY_DIR
}
/mpool/mpool.c
)
target_include_directories
(
micropy_extmod_btree PRIVATE
${
MICROPY_LIB_BERKELEY_DIR
}
/PORT/include
)
target_compile_definitions
(
micropy_extmod_btree PRIVATE
__DBINTERFACE_PRIVATE=1
mpool_error=printf
abort=abort_
"virt_fd_t=void*"
)
# The include directories and compile definitions below are needed to build
# modbtree.c and should be added to the main MicroPython target.
list
(
APPEND MICROPY_INC_CORE
"
${
MICROPY_LIB_BERKELEY_DIR
}
/PORT/include"
)
list
(
APPEND MICROPY_DEF_CORE
__DBINTERFACE_PRIVATE=1
"virt_fd_t=void*"
)
endif
()
ports/esp32/main/CMakeLists.txt
浏览文件 @
212fe7f3
...
...
@@ -3,10 +3,10 @@ get_filename_component(MICROPY_DIR ${PROJECT_DIR}/../.. ABSOLUTE)
# Include core source components.
include
(
${
MICROPY_DIR
}
/py/py.cmake
)
include
(
${
MICROPY_DIR
}
/extmod/extmod.cmake
)
if
(
NOT CMAKE_BUILD_EARLY_EXPANSION
)
include
(
${
MICROPY_DIR
}
/py/usermod.cmake
)
include
(
${
MICROPY_DIR
}
/extmod/extmod.cmake
)
endif
()
set
(
MICROPY_QSTRDEFS_PORT
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录