Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added librariesDependencies in package_index.json #7642

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

Open
cmaglie wants to merge 14 commits into arduino:master
base: master
Choose a base branch
Loading
from cmaglie:core-dependent-libs

Conversation

Copy link
Member

@cmaglie cmaglie commented May 28, 2018

This change allows to install additional libraries in user sketchbook when a platform is installed.
As already explained in #3082:

This would allow some third party board which relies on some library to work right out of the box.

The change in the package_index.json format is the following:

 "platforms": [
 {
 "name": "Arduino SAM Boards (32-bits ARM Cortex-M3)",
 "architecture": "sam",
 "version": "1.6.10",
 "category": "Arduino",
 "url": "http://downloads.arduino.cc/cores/sam-1.6.10.tar.bz2",
 "archiveFileName": "sam-1.6.10.tar.bz2",
 "checksum": "SHA-256:c53afc342c4017a4f67b96826ace41653f795f4a82e648eb9a190ad995388906",
 "size": "16474738",
 "boards": [
 {"name": "Arduino Due"}
 ],
+ "librariesDependencies" : [
+ { "name": "alib" },
+ { "name": "anotherlib" },
+ { "name": "yetanotherlib" }
+ ],
 "toolsDependencies": [
 {
 "packager": "arduino",
 "name": "arm-none-eabi-gcc",
 "version": "4.8.3-2014q1"
 },
 {
 "packager": "arduino",
 "name": "bossac",
 "version": "1.6.1-arduino"
 }
 ]
 }
 ],

Fixes #3082

cmaglie added 14 commits May 27, 2018 16:34
The new method will be used in next commits to handle installations
of multiple libraries.
This commit fix also minor bug in progress bar.
It's no more required to pass this information from outside,
just library that is being installed is now sufficient.
This will be useful in the next commits.
Probably the overall progress tracking may be revamped/simplified, but
this is not going to happen shortly.
@cmaglie cmaglie added feature request A request to make an enhancement (not a bug fix) Component: Board/Lib Manager Boards Manager or Library Manager labels May 28, 2018
@cmaglie cmaglie self-assigned this May 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Labels
Component: Board/Lib Manager Boards Manager or Library Manager feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Library dependencies for boards added via the boards manager

AltStyle によって変換されたページ (->オリジナル) /