1 Star 0 Fork 1

流水源/StratifyOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
bootstrap.cmake 1.96 KB
一键复制 编辑 原始数据 按行查看 历史
Tyler Gilbert 提交于 2022-08-04 09:10 +08:00 . port to CMakeSDK v2.0
cmake_minimum_required (VERSION 3.6)
set(SOS_TOOLCHAIN_CMAKE_PATH ${CMAKE_SOURCE_DIR}/cmake)
include(${SOS_TOOLCHAIN_CMAKE_PATH}/sos-sdk.cmake)
option(CLONE "Clone SDK Libraries" ON)
option(BUILD "Build SDK Libraries " ON)
if(CLONE)
file(REMOVE_RECURSE ../sgfx)
file(REMOVE_RECURSE ../StratifyOS-mbedtls)
file(REMOVE_RECURSE ../StratifyOS-jansson)
file(REMOVE_RECURSE ../StratifyAPI)
file(REMOVE_RECURSE ../UsbAPI)
file(REMOVE_RECURSE ../StratifyOS-libusb)
file(REMOVE_RECURSE ../CloudAPI)
file(REMOVE_RECURSE ../ServiceAPI)
file(REMOVE_RECURSE ../sl)
cmsdk_clone(https://github.com/StratifyLabs/sgfx.git ..)
cmsdk_clone(https://github.com/StratifyLabs/StratifyOS-mbedtls.git ..)
cmsdk_clone(https://github.com/StratifyLabs/StratifyOS-jansson.git ..)
cmsdk_clone(https://github.com/StratifyLabs/StratifyAPI.git ..)
cmsdk_clone(https://github.com/StratifyLabs/UsbAPI.git ..)
cmsdk_clone(https://github.com/StratifyLabs/StratifyOS-libusb.git ..)
cmsdk_clone(ssh://git@github.com/StratifyLabs/CloudAPI.git ..)
cmsdk_clone(ssh://git@github.com/StratifyLabs/ServiceAPI.git ..)
cmsdk_clone(ssh://git@github.com/tyler-gilbert/sl.git ..)
endif()
if(BUILD)
cmsdk_build_lib(. ON link)
cmsdk_build_lib(../sgfx ON link)
execute_process(COMMAND cmake -P bootstrap.cmake WORKING_DIRECTORY ../StratifyOS-mbedtls)
execute_process(COMMAND cp -f ../StratifyOS-mbedtls/config/mbedtls/config.h ../StratifyOS-mbedtls/mbedtls/include/mbedtls/config.h)
cmsdk_build_lib(../StratifyOS-mbedtls ON link)
execute_process(COMMAND cmake -P bootstrap.cmake WORKING_DIRECTORY ../StratifyOS-jansson)
cmsdk_build_lib(../StratifyOS-jansson ON link)
cmsdk_build_lib(../StratifyAPI ON link)
cmsdk_build_lib(../CloudAPI ON link)
cmsdk_build_lib(../ServiceAPI ON link)
execute_process(COMMAND cmake -P bootstrap.cmake WORKING_DIRECTORY ../StratifyOS-libusb)
cmsdk_build_lib(../UsbAPI ON link)
cmsdk_build_lib(../sl ON link)
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/water_source/StratifyOS.git
git@gitee.com:water_source/StratifyOS.git
water_source
StratifyOS
StratifyOS
main

搜索帮助