mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-28 09:01:24 +02:00
Add support for emulation env.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -397,6 +397,7 @@ set(SYSTEM_INCLUDES
|
|||||||
${SYSTEM_INCLUDES}
|
${SYSTEM_INCLUDES}
|
||||||
${CMAKE_CURRENT_LIST_DIR}/third-party/mbedtls/include
|
${CMAKE_CURRENT_LIST_DIR}/third-party/mbedtls/include
|
||||||
${CMAKE_CURRENT_LIST_DIR}/third-party/tinycbor/src
|
${CMAKE_CURRENT_LIST_DIR}/third-party/tinycbor/src
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/third-party/cjson
|
||||||
)
|
)
|
||||||
|
|
||||||
if(USB_ITF_HID)
|
if(USB_ITF_HID)
|
||||||
@@ -416,6 +417,10 @@ set(CBOR_SOURCES
|
|||||||
${CMAKE_CURRENT_LIST_DIR}/third-party/tinycbor/src/cborparser_dup_string.c
|
${CMAKE_CURRENT_LIST_DIR}/third-party/tinycbor/src/cborparser_dup_string.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(CJSON_SOURCES
|
||||||
|
${CMAKE_CURRENT_LIST_DIR}/third-party/cjson/cJSON.c
|
||||||
|
)
|
||||||
|
|
||||||
set(LIBRARIES)
|
set(LIBRARIES)
|
||||||
if(NOT SKIP_MBEDTLS_FOR_OPENSSL_EMULATION)
|
if(NOT SKIP_MBEDTLS_FOR_OPENSSL_EMULATION)
|
||||||
list(APPEND LIBRARIES mbedtls)
|
list(APPEND LIBRARIES mbedtls)
|
||||||
@@ -434,6 +439,11 @@ if(NOT ESP_PLATFORM)
|
|||||||
target_include_directories(tinycbor SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/third-party/tinycbor/src)
|
target_include_directories(tinycbor SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/third-party/tinycbor/src)
|
||||||
list(APPEND LIBRARIES tinycbor)
|
list(APPEND LIBRARIES tinycbor)
|
||||||
endif()
|
endif()
|
||||||
|
if(USB_ITF_LWIP)
|
||||||
|
add_library(cjson STATIC ${CJSON_SOURCES})
|
||||||
|
target_include_directories(cjson SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/third-party/cjson)
|
||||||
|
list(APPEND LIBRARIES cjson)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(PICO_PLATFORM)
|
if(PICO_PLATFORM)
|
||||||
|
|||||||
Reference in New Issue
Block a user