project-chip / connectedhomeip

Matter (formerly Project CHIP) creates more connections between more objects, simplifying development for manufacturers and increasing compatibility for consumers, guided by the Connectivity Standards Alliance.
https://buildwithmatter.com
Apache License 2.0
7.55k stars 2.04k forks source link

Add a variant to enable libev usage in `scripts/build/builders/host.py` #27022

Open plan44 opened 1 year ago

plan44 commented 1 year ago

Could you add a variant to enable libev usage in scripts/build/builders/host.py ? That would make it easier to build and test this and potentially also use it in our CI builds if we need to maintain its compilation ability.

_Originally posted by @andy31415 in https://github.com/project-chip/connectedhomeip/pull/24232#discussion_r1061709289_

plan44 commented 1 year ago

I'd need some guidance/hints how to do that.

I managed to understand the single path through the gn build needed to use chip as a SDK submodule from an external libev based Linux daemon project, but am not familiar enough yet with all the build and CI automation to see what exactly is requested here.

It is not possible to just enable CHIP_SYSTEM_CONFIG_USE_LIBEV and compile an existing example that way - the libev based main app would be missing.