aboutsummaryrefslogtreecommitdiff
path: root/python/Makefile
diff options
context:
space:
mode:
authorDamir Jelić <poljar@termina.org.uk>2018-11-28 14:54:09 +0100
committerHubert Chathi <hubert@uhoreg.ca>2019-04-08 15:04:32 -0400
commitf160d693b627a1159ed5837a4e9630100ab3f67e (patch)
tree140bd42754fa01744957d8f3da05fcd3f66a02ac /python/Makefile
parent0883a922ff39981e27cff7e677a6f79a5f324fab (diff)
python: Add PK bindings.
This patch adds bindings to the PK part of the Olm library contained in the pk.h header file. Encryption, decryption as well as pickling/unpickling of the decryption object is supported. Signed-off-by: Damir Jelić <poljar@termina.org.uk>
Diffstat (limited to 'python/Makefile')
-rw-r--r--python/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/python/Makefile b/python/Makefile
index 5da703a..546de13 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -1,15 +1,21 @@
all: olm-python2 olm-python3
-include/olm/olm.h: ../include/olm/olm.h ../include/olm/inbound_group_session.h ../include/olm/outbound_group_session.h
+OLM_HEADERS = ../include/olm/olm.h ../include/olm/inbound_group_session.h \
+ ../include/olm/outbound_group_session.h \
+
+include/olm/olm.h: $(OLM_HEADERS)
mkdir -p include/olm
$(CPP) -I dummy -I ../include ../include/olm/olm.h -o include/olm/olm.h
# add memset to the header so that we can use it to clear buffers
echo 'void *memset(void *s, int c, size_t n);' >> include/olm/olm.h
-olm-python2: include/olm/olm.h
+include/olm/pk.h: include/olm/olm.h ../include/olm/pk.h
+ $(CPP) -I dummy -I ../include ../include/olm/pk.h -o include/olm/pk.h
+
+olm-python2: include/olm/olm.h include/olm/pk.h
DEVELOP=$(DEVELOP) python2 setup.py build
-olm-python3: include/olm/olm.h
+olm-python3: include/olm/olm.h include/olm/pk.h
DEVELOP=$(DEVELOP) python3 setup.py build
install: install-python2 install-python3