Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Expose libsignal version in headers #126

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ set(protobuf_SRCS
FingerprintProtocol.pb-c.c
)

configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
${CMAKE_CURRENT_BINARY_DIR}/version.h @ONLY)

set(signal_protocol_SRCS
vpool.c
vpool.h
Expand Down Expand Up @@ -59,6 +62,7 @@ set(signal_protocol_SRCS
fingerprint.h
device_consistency.c
device_consistency.h
version.h
)

add_subdirectory(curve25519)
Expand Down Expand Up @@ -100,6 +104,7 @@ INSTALL(
group_cipher.h
fingerprint.h
device_consistency.h
${CMAKE_CURRENT_BINARY_DIR}/version.h
DESTINATION ${INCLUDE_INSTALL_DIR}/signal
)

Expand Down
6 changes: 6 additions & 0 deletions src/version.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#ifndef SIGNAL_VERSION_H
#define SIGNAL_VERSION_H

#cmakedefine SIGNAL_PROTOCOL_C_VERSION "@SIGNAL_PROTOCOL_C_VERSION@"

#endif /* SIGNAL_VERSION_H */