lf-lang / reactor-uc

A lightweight reactor runtime targeted at resource-constrained embedded systems
BSD 2-Clause "Simplified" License
2 stars 2 forks source link

Enable selecting which NetworkChannel implementations to add to the build. #75

Closed erlingrj closed 5 days ago

erlingrj commented 1 week ago

We need a way for conveniently selecting which NetworkChannel implementations to add to the build. Currently it is a CMake option which generates a compile def, but this wont work for RIOT since it is Make based. Can we do it purely in C, i.e. in a code-generated file we select this?

erlingrj commented 1 week ago

Also, setting the size of the event queue and reaction queue is done from CMake, this needs to be done in a build-system agnostic way.

tanneberger commented 1 week ago

reactor-cpp did this by having a config.hh.in

https://github.com/lf-lang/reactor-cpp/blob/master/include/reactor-cpp/config.hh.in

This is the autoconf way of passing build parameters to your program

tanneberger commented 1 week ago

I just realized we already have this file.

erlingrj commented 1 week ago

The config stuff with CMake is nice, but we dont want it tied to CMake because RIOT, and potential other use cases are Make based.

I think autotools might be an alternative, or simple script based on a toml file?

erlingrj commented 6 days ago