Allow selecting the target to build

This is useful to investiage coredumps.
This commit is contained in:
Floris Bruynooghe
2019-06-10 18:07:23 +02:00
parent 5090b4d24b
commit 12e74a0645
3 changed files with 12 additions and 6 deletions

View File

@@ -8,9 +8,10 @@ import cffi
def ffibuilder():
projdir = os.environ.get('DCC_RS_DEV')
target = os.environ.get('DCC_RS_TARGET', 'release')
if projdir:
libs = []
objs = [os.path.join(projdir, 'target', 'release', 'libdeltachat.a')]
objs = [os.path.join(projdir, 'target', target, 'libdeltachat.a')]
incs = [os.path.join(projdir, 'deltachat-ffi')]
else:
libs = ['deltachat']