-
Notifications
You must be signed in to change notification settings - Fork 513
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
Feature/vendorlibraries #1009
Feature/vendorlibraries #1009
Conversation
…ke recipes for the library directory, so that the make system knows how to compile a file in the library directory and produce an object file in the build target directory. Scripts generating scripts...time to find a more expressive tool. Oh hello CMake!
I think the #include <neopixel.h>
#include <internetbutton.h> |
Ok, I may have confused our stop-gap support for libraries v1 with our efforts on libraries v2. What I coded here allows multiple directories containing v1 libraries to be specified. (I coded this last sprint, which was all about v1 library support, which was the fuel for my confusion! ;-) ) Do we even need v1 external vendored libraries? I don't believe so but would like confirmation. If not, then I'll change this to take a list of absolute library directories, as per the v2 spec. |
We only need this for v2. I wanted this to be in 0.6.0 so the feature would be in the wild already when we release libs v2. |
…PPLIBSV2. V2 libraries build sources under the src/ folder under each library.
testing (requires bats to be installed)
|
+1 on the multiple library dirs. Sorry just jumping in because I wanted to clarify, this is currently a v1 version of this, but this is going to be refactored as a v2 feature? How are external libraries handled now? |
Hi @mrmowgli! Libraries in firmware are not presently handled with the local build. Before this PR, the only option was to manually copy them to your source folder to create a structure like this:
With |
I've made several tests with both v1 and v2 library layouts and the patch worked as expected. Few comments:
|
For v2, we are following the arduino libraries format. You're right - the docs haven't been updated after the conversation above clarifying the need for V2 support. It's mainly intended for machine use - |
👏 |
Adds an
APPLIBS
variable that defines the location of 'tweaked' particle libraries.To test,
timer.cpp
example from the library to that directory.The build should succeed.
Doneness: