From 10325eaf40c80eb91f1c1eceea880c3abd54efd7 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 13 Jul 2023 13:44:26 +0200 Subject: added esp project --- esp32/esp_project/components/olm/CMakeLists.txt | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 esp32/esp_project/components/olm/CMakeLists.txt (limited to 'esp32/esp_project/components') diff --git a/esp32/esp_project/components/olm/CMakeLists.txt b/esp32/esp_project/components/olm/CMakeLists.txt new file mode 100644 index 0000000..8ce9b41 --- /dev/null +++ b/esp32/esp_project/components/olm/CMakeLists.txt @@ -0,0 +1,44 @@ +idf_component_register(SRCS + "../../../../ext/olm/src/account.cpp" + "../../../../ext/olm/lib/crypto-algorithms/aes.c" + "../../../../ext/olm/src/base64.cpp" + "../../../../ext/olm/src/cipher.cpp" + "../../../../ext/olm/src/crypto.cpp" + "../../../../ext/olm/lib/curve25519-donna/curve25519-donna.c" + "../../../../ext/olm/src/ed25519.c" + "../../../../ext/olm/src/error.c" + "../../../../ext/olm/src/inbound_group_session.c" + "../../../../ext/olm/src/megolm.c" + "../../../../ext/olm/src/memory.cpp" + "../../../../ext/olm/src/message.cpp" + "../../../../ext/olm/src/olm.cpp" + "../../../../ext/olm/src/outbound_group_session.c" + "../../../../ext/olm/src/pickle.cpp" + "../../../../ext/olm/src/pickle_encoding.c" + "../../../../ext/olm/src/pk.cpp" + "../../../../ext/olm/src/sas.c" + "../../../../ext/olm/src/session.cpp" + "../../../../ext/olm/lib/crypto-algorithms/sha256.c" + "../../../../ext/olm/src/utility.cpp" + "../../../../src/matrix.c" + "../../../../src/matrix_http_mongoose.c" + "../../../../ext/mongoose/mongoose.c" + "../../../../ext/mjson/src/mjson.c" + INCLUDE_DIRS + "../../../../ext/olm/include" + "../../../../ext/olm/lib" + "../../../../ext/mongoose" + "../../../../ext/mjson/src" + "../../../../src" + REQUIRES + esp_timer + mbedtls) + +add_definitions(-DOLM_STATIC_DEFINE) +add_definitions(-DOLMLIB_VERSION_MAJOR=3) +add_definitions(-DOLMLIB_VERSION_MINOR=2) +add_definitions(-DOLMLIB_VERSION_PATCH=15) +add_definitions(-DMG_ENABLE_MBEDTLS=1) + +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") + -- cgit v1.2.3