提交 081bdcff 编写于 作者: C Carsten Gregersen

Adjustments to be compatible with esp-idf v4.0

上级 426aa485
[submodule "components/unabto"]
path = components/unabto
path = unabto
url = https://github.com/nabto/unabto.git
# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.5)
set(UNABTO_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/unabto)
include(./unabto/build/cmake/unabto_files.cmake)
set(ENV{EXTRA_CFLAGS} -Wno-maybe-uninitialized)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32_nabto)
set(COMPONENTS esp32-camera nabtotunnel unabto-esp-fingerprint unabto-esp-idf)
idf_component_register(SRCS ./unabto_tunnel.c ./unabto_tunnel_common.c ./unabto_tunnel_select.c ./unabto_tunnel_tcp.c ./esp32tcp/unabto_tcp.c
INCLUDE_DIRS . ../unabto-esp-idf ../../unabto/src ../../unabto/src/modules/network/tcp/
REQUIRES )
idf_component_register(SRCS ../../unabto/src/modules/fingerprint_acl/fp_acl.c ../../unabto/src/modules/fingerprint_acl/fp_acl_ae.c ../../unabto/src/modules/fingerprint_acl/fp_acl_memory.c
INCLUDE_DIRS . ../unabto-esp-idf ../../unabto/src ../../unabto/src/modules/network/tcp/
REQUIRES )
set(esp-idf-nabto-src "./dns_adapter.c"
"./network_adapter.c"
"./random_adapter.c"
"./time_adapter.c"
"./unabto_aes_cbc_test.c"
"./unabto_basename.c"
"./unabto_log_header_unix.c"
"./crypto/unabto_aes.c"
"./crypto/unabto_aes_cbc.c"
"./crypto/unabto_hmac_sha256.c"
"./crypto/unabto_sha256.c")
idf_component_register(SRCS ${esp-idf-nabto-src} ${unabto_core_src}
INCLUDE_DIRS "." "../../../unabto/src"
REQUIRES mbedtls)
idf_component_register(SRCS ./fp_acl_esp32_nvs.c ./main.c ./unabto_application.c
INCLUDE_DIRS "." "../unabto/src" "../components/unabto-esp-idf" "../components/nabtotunnel" "../unabto/src/modules/log"
REQUIRES )
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册