Tetrite / cBinder

C language bindings and wrapper generator for Python using cffi library
MIT License
1 stars 0 forks source link
binding-generator bindings cffi python

cBinder

C bindings and wrapper generator for Python using CFFI library

Examples

Simple C functions

To use cBinder to compile libamtrack project on Unix:

libamtrack with corrected doxygen comments: https://github.com/certaindividual/library

Copy these external dependencies:
libgsl
libgslcblas

Use this call:
python main.py
libamtrack {name of output folder}
-f
/some-path..../libamtrack/library/src {.c files}
-f
/some-path..../libamtrack/library/include {.h files}
-d
some-results-path {path to folder with results}
-es
path-to-export symbols {path to export symbols list}
-mono {create one file}
libAT {name of final library}
compile {compiling mode}
-i
path-to-external-dependencies-headers (libgsl, libgslcblas)
-i
path-to-libamtrack-headers
-b
path-to-external-dependencies-libraries (libgsl, libgslcblas)
-l
gsl
-l
gslcblas
-l
m