feat(omemo): WIP signal-protocol-c cpp wrapper

This commit is contained in:
vae 2021-05-11 00:32:44 +03:00
parent 04e745fad4
commit 7c1ae4737e
Signed by: vae
GPG Key ID: A9A33351400E00E5
2 changed files with 23 additions and 1 deletions

View File

@ -8,7 +8,7 @@ find_package(Qt5Core CONFIG REQUIRED)
find_package(Qt5Xml CONFIG REQUIRED)
find_package(LMDB REQUIRED)
set(qomemo_SRC)
set(qomemo_SRC signal.h)
add_library(qomemo STATIC ${qomemo_SRC})
@ -17,6 +17,8 @@ if(SYSTEM_QXMPP)
target_include_directories(qomemo PUBLIC ${QXMPP_INTERFACE_INCLUDE_DIRECTORIES})
endif()
target_include_directories(qomemo PUBLIC ${CMAKE_SOURCE_DIR}/external/signal-protocol-c/src)
target_link_libraries(qomemo Qt5::Core)
target_link_libraries(qomemo Qt5::Xml)
target_link_libraries(qomemo qxmpp)

20
qomemo/signal.h Normal file
View File

@ -0,0 +1,20 @@
/*
* Created by victoria on 2021-05-11.
*/
#pragma once
#include <signal_protocol.h>
namespace Signal
{
class Context {};
class RatchetIdentityPair {};
class SessionSignedPreKey {};
class ProtocolKeyHelper {};
class ProtocolStoreContext {};
class SessionBuilder {};
class SessionCipher {};
}