Skip to content

Support for recursive search on compile --libraries flag #1058

@ztnel

Description

@ztnel

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:

workspace/
│
├── include/
│   ├── Segment/
│   │   ├─── src/
│   │   │   ├─── Segment.h
│   │   │   ├─── Segment.cpp
│   ├─── package.h
│   └─── LICENSE
|   |
│   ├── Matrix/
│   │   ├─── src/
│   │   │   ├─── Matrix.h
│   │   │   ├─── Matrix.cpp
│   ├─── package.h
│   └─── LICENSE
├── src/
│   ├── src.ino
│
├── Makefile

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions