Skip to content

Fix support for some arduino libraries which don't put source files under a src directory #605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 3, 2017

Conversation

imxieyi
Copy link
Contributor

@imxieyi imxieyi commented Sep 3, 2017

There are many libraries which don't put their source files under src directory.
For example, nearly all sensor libraries from Adafruit don't have a src directory.
In order to compile with these libraries, we should manually create a src directory and move all source files into it, which is really annoying.
If the library also includes source files under sub directories, it would result in linker errors.
However, only changing a line in component.mk can solve all these issues.

@imxieyi imxieyi changed the title Fix support for some arduino libraries Fix support for some arduino libraries which don't have a src directory Sep 3, 2017
@imxieyi imxieyi changed the title Fix support for some arduino libraries which don't have a src directory Fix support for some arduino libraries which don't put source files under a src directory Sep 3, 2017
@me-no-dev
Copy link
Member

I guess you are using the core's libraries folder to store the libs for your sketches :) you could just add another component and do it there ;) Anyway :) I will merge this! Thanks

@me-no-dev me-no-dev merged commit fd9cc00 into espressif:master Sep 3, 2017
Raienryu97 pushed a commit to Raienryu97/arduino-esp32 that referenced this pull request Sep 4, 2017
…nder a src directory (espressif#605)

* fix support for some arduino libraries

* no longer need line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants