7 Star 17 Fork 18

乐鑫开源/esp-mdf

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mdf_functions.cmake 607 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhanghuifeng 提交于 2020-05-21 16:32 +08:00 . feature: support esp-idf master branch
# Some MDF-specific functions and functions
# mdf_get_git_revision
#
# Set global MDF_VER to the git revision of ESP-MDF.
#
# Running git_describe() here automatically triggers rebuilds
# if the ESP-MDF git version changes
function(mdf_get_git_revision)
if(EXISTS "$ENV{MDF_PATH}/version.txt")
file(STRINGS "$ENV{MDF_PATH}/version.txt" MDF_VER)
else()
git_describe(MDF_VER "$ENV{MDF_PATH}")
endif()
idf_build_set_property(COMPILE_DEFINITIONS "-DMDF_VER=\"${MDF_VER}\"" APPEND)
git_submodule_check("$ENV{MDF_PATH}")
set(MDF_VER ${MDF_VER} PARENT_SCOPE)
endfunction()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/EspressifSystems/esp-mdf.git
git@gitee.com:EspressifSystems/esp-mdf.git
EspressifSystems
esp-mdf
esp-mdf
master

搜索帮助