arduino-cmake
arduino-cmake copied to clipboard
Arduino CMake Build system
Currently running `generate_arduino_firmware` overwrites `ALL_SRCS`. This PR fixes that and also ensures that a change to a source results in recompiling the generated file.
Поэтому сейчас хорошо работает ardunio-cmake на ardunio UNO. И я перестроил пример example.cpp, чтобы начинающий сразу принял движение. Я сделал испытание на Ubuntu 18.04.1 LTS.
This PR improves the loading of arduino setting files. It is a preparation for supporting additional platforms like esp32
Some core Arduino libraries involve assembly files (ex: wiring_pulse.S), which are not included and can lead to build errors when the functions contained in these libraries are needed.
`lib/version.txt` just contain "nightly", which make CMAKE can not detect the SDK version. By setting the PARSED_VERSION="1.6.12" manually when detect "nightly" on `lib/version.txt` to solve this issue.
Not doing this causes compilation to fail with hard-to-understand `make` errors _the next time you do a clean build._
This allows users to add static libraries to fix linking errors with `generate_arduino_example` that can sometimes occur. Some arduino examples with multiple dependencies give linking errors (undefined references) when built...