bindings/python: Initial bindings attempts for Python
[sdk] / bindings / python / build_ecere.py
1 from cffi import FFI
2 ffi = FFI()
3 ffi.cdef(open('cffi-ecere.h').read())  
4 ffi.set_source("_pyEcere",
5    '#include "ecere.h"',
6    sources = [ "../c/eC.c", "../c/ecere.c" ],
7    include_dirs = ["../c"],
8    libraries = ["ecere"],
9    library_dirs = ["C:/Program Files/Ecere SDK/bin"])
10 if __name__ == "__main__":
11    ffi.compile(verbose=True)