ssalonen / cec-rs

GNU General Public License v2.0
10 stars 9 forks source link

Static vendored builds PoC #52

Open opeik opened 14 hours ago

opeik commented 14 hours ago

Hi there, building libcec is a massive pain in the ass (as you probably know), so I opted to create a pipeline for building libcec staticly and generating bindgen bindings so they can be committed. It might be useful for you. The result is zero friction using libcec from Rust, much nicer than dealing with dynamic libraries in my opinion.

Related to ssalonen/libcec-sys#45.

ssalonen commented 5 hours ago

This looks amazing! I can see you have also done the enum bindgen generation in rust, compared to the python approach I had come up with. Very good - will be easier to integrate

Overall on the surface this looks something that I would like to integrate here

opeik commented 4 hours ago

Thanks, a lot of trial and error went into making it work. I'd be thrilled to see it upstreamed.