bindings/python: Initial bindings attempts for Python
[sdk] / bindings / python / build_ecere.py
diff --git a/bindings/python/build_ecere.py b/bindings/python/build_ecere.py
new file mode 100644 (file)
index 0000000..ca0dfcc
--- /dev/null
@@ -0,0 +1,11 @@
+from cffi import FFI
+ffi = FFI()
+ffi.cdef(open('cffi-ecere.h').read())  
+ffi.set_source("_pyEcere",
+   '#include "ecere.h"',
+   sources = [ "../c/eC.c", "../c/ecere.c" ],
+   include_dirs = ["../c"],
+   libraries = ["ecere"],
+   library_dirs = ["C:/Program Files/Ecere SDK/bin"])
+if __name__ == "__main__":
+   ffi.compile(verbose=True)