from cffi import FFI

ffibuilder = FFI()

with open('./pymeos_cffi/builder/meos.h', 'r') as f:
    content = f.read()

ffibuilder.cdef(content)

ffibuilder.set_source('_meos_cffi',
                      '#include "meos.h"   // the C header of the library',
                      libraries=['meos'], )  # library name, for the linker

if __name__ == "__main__":  # not when running with setuptools
    ffibuilder.compile(verbose=True)
