diff options
| author | Patrick | 2023-11-13 22:25:32 +0100 |
|---|---|---|
| committer | Patrick | 2023-11-13 22:25:32 +0100 |
| commit | 22b9954c1582649310fbc49f54653996d24e5ab7 (patch) | |
| tree | 565fda60211e2e59bfcf707179ac120398db1752 /esp32/esp_project_risc_v/components | |
| parent | 0326538d115050abe9a57c7517715ab5642d85eb (diff) | |
| download | matrix_esp_thesis-22b9954c1582649310fbc49f54653996d24e5ab7.tar.gz matrix_esp_thesis-22b9954c1582649310fbc49f54653996d24e5ab7.zip | |
esp32 project for riscv
Diffstat (limited to 'esp32/esp_project_risc_v/components')
| -rw-r--r-- | esp32/esp_project_risc_v/components/matrix/CMakeLists.txt | 16 | ||||
| -rw-r--r-- | esp32/esp_project_risc_v/components/olm/CMakeLists.txt | 37 |
2 files changed, 53 insertions, 0 deletions
diff --git a/esp32/esp_project_risc_v/components/matrix/CMakeLists.txt b/esp32/esp_project_risc_v/components/matrix/CMakeLists.txt new file mode 100644 index 0000000..bf7da7a --- /dev/null +++ b/esp32/esp_project_risc_v/components/matrix/CMakeLists.txt @@ -0,0 +1,16 @@ +idf_component_register(SRCS
+ "../../../../src/matrix.c"
+ "../../../../src/matrix_http_esp32.c"
+ "../../../../ext/mjson/src/mjson.c"
+ INCLUDE_DIRS
+ "../../../../ext/olm/include"
+ "../../../../ext/olm/lib"
+ "../../../../ext/mjson/src"
+ "../../../../src"
+ REQUIRES
+ esp-tls
+ esp_http_client
+ esp_netif
+ nvs_flash)
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive")
diff --git a/esp32/esp_project_risc_v/components/olm/CMakeLists.txt b/esp32/esp_project_risc_v/components/olm/CMakeLists.txt new file mode 100644 index 0000000..07bb160 --- /dev/null +++ b/esp32/esp_project_risc_v/components/olm/CMakeLists.txt @@ -0,0 +1,37 @@ +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/ratchet.cpp"
+ "../../../../ext/olm/src/sas.c"
+ "../../../../ext/olm/src/session.cpp"
+ "../../../../ext/olm/lib/crypto-algorithms/sha256.c"
+ "../../../../ext/olm/src/utility.cpp"
+ INCLUDE_DIRS
+ "../../../../ext/olm/include"
+ "../../../../ext/olm/lib"
+ "../../../../src"
+ REQUIRES
+ esp_timer)
+
+add_definitions(-DOLM_STATIC_DEFINE)
+add_definitions(-DOLMLIB_VERSION_MAJOR=3)
+add_definitions(-DOLMLIB_VERSION_MINOR=2)
+add_definitions(-DOLMLIB_VERSION_PATCH=15)
+
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -Wl,--allow-multiple-definition")
+
|
