nitc :: MModule :: finalize_ffi_wrapper
# Complete the compilation of the FFI code
fun finalize_ffi_wrapper(compdir: String, mainmodule: MModule)
do
var cflags = self.cflags[""].join(" ")
ffi_ccu.write_as_impl(self, compdir)
for filename in ffi_ccu.files do
var f = new ExternCFile(filename.basename, cflags)
f.pkgconfigs.add_all pkgconfigs
ffi_files.add(f)
end
end
src/ffi/light_ffi.nit:53,2--64,4
# Complete the compilation of the FFI code
redef fun finalize_ffi_wrapper(compdir, mainmodule)
do
for language in ffi_callbacks.keys do
for callback in ffi_callbacks[language] do
language.compile_callback(callback, self, mainmodule, ffi_ccu.as(not null))
end
language.compile_to_files(self, compdir)
end
# include dependancies FFI
for mod in header_dependencies do
if mod.uses_ffi then ffi_ccu.header_custom.add("#include \"{mod.c_name}._ffi.h\"\n")
end
super
end
src/ffi/ffi.nit:58,2--75,4