Commit 709687a7 authored by poljar's avatar poljar Committed by Hubert Chathi
Browse files

python: Build the build headers with

This allows downstream users to install this python module with pip as
well as allowing people to declare it as a dependency in their
Signed-off-by: poljar's avatarDamir Jelić <>
parent f1d45c2c
...@@ -12,10 +12,12 @@ include/olm/olm.h: $(OLM_HEADERS) ...@@ -12,10 +12,12 @@ include/olm/olm.h: $(OLM_HEADERS)
include/olm/pk.h: include/olm/olm.h ../include/olm/pk.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 $(CPP) -I dummy -I ../include ../include/olm/pk.h -o include/olm/pk.h
olm-python2: include/olm/olm.h include/olm/pk.h headers: include/olm/olm.h include/olm/pk.h
olm-python2: headers
DEVELOP=$(DEVELOP) python2 build DEVELOP=$(DEVELOP) python2 build
olm-python3: include/olm/olm.h include/olm/pk.h olm-python3: headers
DEVELOP=$(DEVELOP) python3 build DEVELOP=$(DEVELOP) python3 build
install: install-python2 install-python3 install: install-python2 install-python3
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import os import os
import subprocess
from cffi import FFI from cffi import FFI
...@@ -32,6 +33,8 @@ link_args = ["-L../build"] ...@@ -32,6 +33,8 @@ link_args = ["-L../build"]
if DEVELOP and DEVELOP.lower() in ["yes", "true", "1"]: if DEVELOP and DEVELOP.lower() in ["yes", "true", "1"]:
link_args.append('-Wl,-rpath=../build') link_args.append('-Wl,-rpath=../build')
headers_build = subprocess.Popen("make headers", shell=True)
ffibuilder.set_source( ffibuilder.set_source(
"_libolm", "_libolm",
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