Location for cross platform source code
Posted: Fri Oct 07, 2016 5:20 pm
Hi all,
I have written firmware that runs on a number of platforms, and much of the source code is common to all platforms. Now I want to port my code to the ESP32.
According to build_system.rst, I can list source directories in the SRCDIRS variable, but these directories are assumed to be under the project directory. Is this limitation real? Obviously it is not appropriate to put sources common to multiple platforms into the project directory of one of the platforms.
Can I get the ESP32 build system to compile sources that are outside of the tree of the project being built?
Thanks in advance.
I have written firmware that runs on a number of platforms, and much of the source code is common to all platforms. Now I want to port my code to the ESP32.
According to build_system.rst, I can list source directories in the SRCDIRS variable, but these directories are assumed to be under the project directory. Is this limitation real? Obviously it is not appropriate to put sources common to multiple platforms into the project directory of one of the platforms.
Can I get the ESP32 build system to compile sources that are outside of the tree of the project being built?
Thanks in advance.