You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im working on an environment for building bigger arduino projects with a set of local dependancies located in the root include directory as shown below:
The Makefile uses arduino-cli compile to compile the src.ino sketch and using the --libraries flag to point to ${PWD}/include/Segment and ${PWD}/include/Matrix seperately. I am trying to include all of the local libraries inside my include directory but it looks like the cli does not support a recursive search option for the --libraries flag. This is a problem for automation purposes since I don't want to have to manually add new paths to the command as the libraries grow.
Any plans on support for this type of feature? Any insight would be appreciated.
The text was updated successfully, but these errors were encountered:
Why wouldn't you just install (or even symlink) the libraries into the Arduino libraries folder (or even a custom one, since you can specify that from the CLI)? The tool seems to follow the dependency chains in library.properties.
Why wouldn't you just install (or even symlink) the libraries into the Arduino libraries folder (or even a custom one, since you can specify that from the CLI)? The tool seems to follow the dependency chains in library.properties.
This is exactly how I have resolved the issue. Used --libraries ${PWD}/include as a compile flag and added the library.properties file to each of the include packages. Seems to work well for me thanks!
per1234
changed the title
Support for recursive search on compile --library flag
Support for recursive search on compile --libraries flag
Feb 3, 2021
Hey everyone,
Im working on an environment for building bigger arduino projects with a set of local dependancies located in the root
include
directory as shown below:The
Makefile
usesarduino-cli compile
to compile thesrc.ino
sketch and using the--libraries
flag to point to${PWD}/include/Segment
and${PWD}/include/Matrix
seperately. I am trying to include all of the local libraries inside myinclude
directory but it looks like the cli does not support a recursive search option for the--libraries
flag. This is a problem for automation purposes since I don't want to have to manually add new paths to the command as the libraries grow.Any plans on support for this type of feature? Any insight would be appreciated.
The text was updated successfully, but these errors were encountered: