Presumably you want to link the lib into your test/example program. Following the ffmpeg example from here, that would mean:
libwould only include the C files, so.root_source_file = null,(or omit theroot_source_filefield)- You’d want to call
module.linkLibrary(lib)
The rest I think can remain the same, but am not fully sure about that.