]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - esp32/esp_project/components/olm/CMakeLists.txt
HTTP layer for ESP32, make static specifier in matrix.c optional by defining it as...
[matrix_esp_thesis] / esp32 / esp_project / components / olm / CMakeLists.txt
index 8ce9b41efbf876e915a819665e24563b6625bc30..e17b8ad955fa1e9afbfc37d1a4ad4b96b36d90a5 100644 (file)
@@ -16,29 +16,23 @@ idf_component_register(SRCS
                             "../../../../ext/olm/src/pickle.cpp"\r
                             "../../../../ext/olm/src/pickle_encoding.c"\r
                             "../../../../ext/olm/src/pk.cpp"\r
+                            "../../../../ext/olm/src/ratchet.cpp"\r
                             "../../../../ext/olm/src/sas.c"\r
                             "../../../../ext/olm/src/session.cpp"\r
                             "../../../../ext/olm/lib/crypto-algorithms/sha256.c"\r
                             "../../../../ext/olm/src/utility.cpp"\r
-                            "../../../../src/matrix.c"\r
-                            "../../../../src/matrix_http_mongoose.c"\r
-                            "../../../../ext/mongoose/mongoose.c"\r
-                            "../../../../ext/mjson/src/mjson.c"\r
                        INCLUDE_DIRS\r
                             "../../../../ext/olm/include"\r
                             "../../../../ext/olm/lib"\r
-                            "../../../../ext/mongoose"\r
-                            "../../../../ext/mjson/src"\r
                             "../../../../src"\r
                        REQUIRES\r
-                            esp_timer\r
-                            mbedtls)\r
+                            esp_timer)\r
 \r
 add_definitions(-DOLM_STATIC_DEFINE)\r
 add_definitions(-DOLMLIB_VERSION_MAJOR=3)\r
 add_definitions(-DOLMLIB_VERSION_MINOR=2)\r
 add_definitions(-DOLMLIB_VERSION_PATCH=15)\r
-add_definitions(-DMG_ENABLE_MBEDTLS=1)\r
 \r
-SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -fpermissive")\r
+SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} -fpermissive -Wl,--allow-multiple-definition")\r
+SET(CMAKE_CXX_COMPILER  "C:/Espressif/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe")\r
 \r