I am not exactly sure if I understood the above comment correctly. But if we want to eventually be able to consume gpiosim-sys via crates.io (or any packaging mechanism that relies on cargo package), then we will need to decouple the header and .so file referencing in a similar way. The easiest solution for me seems to be to just add a pkg-config file for gpiosim and use the same mechanism that I sketched for libgpiod-sys here.Yes we would like to get gpiosim via crates.io as well.Would simply adding a pkg-config for the gpiosim C lib be desirable? Then we can use the same mechanism. There is none existing at the moment. I am not sure whether that is intentional or just not done yet.
@Bartosz: Viresh said on IRC that I should ask you about this :). Shall I just add a pkg-config for gpiosim? Or is that not desired for some reason?
- Erik