Skip to content

Add library auto-detection when compiling a sketch #291

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

Closed
wants to merge 1 commit into from

Conversation

ladislas
Copy link
Contributor

This PR adds library auto-detection when compiling a sketch, which means that you don't need to list all the libraries used in your sketch.

For example:

If LibOne.h includes LibTwo.h and LibThree.h, you just need to:

#include "LibOne.h"

and you don't need to:

#include "LibOne.h"
#include "LibTwo.h"
#include "LibThree.h"

It also fixes speed issues for auto-detection introduced with #277 and referenced in #280.

I got it fixed by using := instead of = for USER_LIBS, SKETCH_LIBS and SKETCH_LIBS_DEPS.

It is open for testing and should be good for everyone. :)

@ladislas ladislas force-pushed the automatic-lib-detection branch from 3e4518f to 3c1fa6f Compare November 11, 2014 22:32
@ladislas ladislas force-pushed the automatic-lib-detection branch from 3c1fa6f to 02382b2 Compare November 11, 2014 22:36
@ladislas
Copy link
Contributor Author

I just rebased the my branch on the current master with speed fixes and added back the automatic library detection. :)

Works like a charm :)

Looking forward to reading your feedbacks

@sudar sudar force-pushed the master branch 2 times, most recently from 8c75177 to 467b677 Compare April 4, 2015 00:57
@ladislas ladislas closed this Apr 6, 2015
@ladislas ladislas deleted the automatic-lib-detection branch April 6, 2015 10:07
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.

1 participant