How do you make a package module that links against C libraries?

Presumably you want to link the lib into your test/example program. Following the ffmpeg example from here, that would mean:

  • lib would only include the C files, so .root_source_file = null, (or omit the root_source_file field)
  • You’d want to call module.linkLibrary(lib)

The rest I think can remain the same, but am not fully sure about that.

2 Likes