-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Include library paths used by libraries in the compiler search path (take 2) #1726
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
Conversation
Code looks good. I added some inline comments in the last commit. I have some other thoughts on the code structure, but those depend a bit on how the 1.5 library layout will turn out (I have some thoughts about this as well, I'm hoping to write a proposal for an improved layout somewhere this week). I'll perhaps pull your code later today to do some testing as well. |
One more thing: These patches don't fix #636 yet, right? I don't hink .cpp and .h files inside a sketch are now inspected by the preprocessor? |
Since the Arduino IDE doesn't do recursive library dependencies yet (arduino/Arduino#1726), we'll have to include all of these explicitely.
For the record, this pullrequest fixes #236. |
Merge branch 'ide-1.5.x' into lib-import
Outdated with #2174 |
Originally started by @giseburt on #1250
This pull fixes a case where libraries that a sketch uses indirectly (other libraries is uses require them) need to be included directly in order to compile.
It is necessary to #include a library's file in your sketch in order for the IDE to add that library's path to the compiler command line. This patch searches the files that are included as well, adding dependent libraries to the search path. This removes then need to directly #include indirectly used libraries.
It takes into account also Matthijs suggestion:
Moreover:
BTW, I'm still not fully convinced about this patch, more tests welcome.
C