Commit 2aad86ea authored by Hubert Chathi's avatar Hubert Chathi
Browse files

fix Python build

parent 9a8b4219
Pipeline #6512 passed with stages
in 2 minutes and 43 seconds
all: olm-python2 olm-python3
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
......@@ -10,12 +10,15 @@ include/olm/olm.h: $(OLM_HEADERS)
echo 'void *memset(void *s, int c, size_t n);' >> include/olm/olm.h
include/olm/pk.h: include/olm/olm.h ../include/olm/pk.h
$(CPP) -I dummy -I ../include -o include/olm/pk.h ../include/olm/pk.h
$(CPP) -I dummy -I ../include -o include/olm/pk.h ../include/olm/pk.h
include/olm/sas.h: include/olm/olm.h ../include/olm/sas.h
$(CPP) -I dummy -I ../include -o include/olm/sas.h ../include/olm/sas.h
headers: include/olm/olm.h include/olm/pk.h include/olm/sas.h
include/olm/error.h: include/olm/olm.h ../include/olm/error.h
$(CPP) -I dummy -I ../include -o include/olm/error.h ../include/olm/error.h
headers: include/olm/olm.h include/olm/pk.h include/olm/sas.h include/olm/error.h
olm-python2: headers
DEVELOP=$(DEVELOP) python2 build
......@@ -49,6 +49,9 @@ ffibuilder.set_source(
with open(os.path.join(PATH, "include/olm/error.h")) as f:
ffibuilder.cdef(, override=True)
with open(os.path.join(PATH, "include/olm/olm.h")) as f:
ffibuilder.cdef(, override=True)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment