Skip to content

Add sketch path to the compile include path #3635

Closed
@ricklon

Description

@ricklon

When writing large complicated programs such as ones that use graphics, often it is need to have a header file (i.e. myconfig.h) that gets included from libraries. This file contains options such as which graphics card to use. In this case the board specific network config is loaded in the users configuration folder.

Sketch
MyHttpServer.ino

#include HttpServer.h

HttpServer.h

#include HttpServerUserConfig.h

File in my sketch folder:
HttpServerUserConfig.h

It is a worthy update. Plus a pretty small change:

    includeFolders.add(sketch.getFolder());

Metadata

Metadata

Assignees

Labels

Component: CompilationRelated to compilation of Arduino sketchesType: DuplicateAnother item already exists for this topicfeature requestA request to make an enhancement (not a bug fix)

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions