add build parameters

This commit is contained in:
saces 2026-02-13 14:46:36 +01:00
parent 267cb7914b
commit d198229fe3
2 changed files with 51 additions and 3 deletions

View file

@ -1,6 +1,16 @@
#!/usr/bin/python
import sys
from cffi import FFI
lib_list = [
"mxclient",
]
if len(sys.argv) > 1:
lib_list += sys.argv[1:]
print(f"liblist: {lib_list}")
ffibuilder = FFI()
ffibuilder.set_source(
@ -8,7 +18,7 @@ ffibuilder.set_source(
source=""" //passed to the real C compiler
#include "libmxclient.h"
""",
libraries=["mxclient", "olm"],
libraries=lib_list,
library_dirs=["."],
include_dirs=["."],
)