-
-
Notifications
You must be signed in to change notification settings - Fork 7k
.a linkage for libraries via library.properties #2800
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
Comments
I like this idea of opting in to linking through a .a file through library.properties. It might even be a good idea if some source files can be linked through .a files and some directly included in the link, for maximum flexibility. The reason for wanting to go through a .a file, is so you can leave out a source file from the link when it is unused, including any ISRs (which are never removed by
I'm not sure what you are saying here, but the "also" suggests they are separate issues. Please don't complicate discussion by chunking together unrelated issues, better open multiple issues instead (or, for things like what option goes where, collect opinions on the developer mailing list first). |
Has And I also like the idea of mathijs to link different files "normal" or via .a file. |
Any chance to see this soon? It would fix a lot of issues with 2 of my libraries and newer libs can be optimized better. I'd do it myself but I dont know where to start with the whole Arduino IDE source and I also dont have enough knowledge about the linking process. |
I am currently trying to implement this feature myself. One quick question: Can't we use compileFiles() instead and pass a If the recursive addition is somehow needed I'd need to add a 2nd version which returns the list of files again (instead of void and adding it to a global file list). Is there any header in java, or function prototype needed or can I just place a new function inside the .java file? What I still need to figure out is how to read in a setting from the libraries.properties file (too keep compatibility with other, older libraries). |
Issue moved to arduino/arduino-builder#10 |
It would give developers a lot of more possibilities if libraries could be linked via an .a file.
So only the needed .cpp files get compiled like the core or the .ino file directory.
It would also break existing libraries. So my suggestion is just to only compile through .a if a special property was set.
You could add this perfect into such a file with an entry "linkage"
https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/libraries/SoftwareSerial/library.properties
Also this link sais if i put the library into an "src/" folder it gets linked in the .ino path. This option is not working anymore. Also the import function is under "sketch" not "tools".
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification#source-code
it would be cool to make it work like this though.
The text was updated successfully, but these errors were encountered: