Skip to content

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
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

cmaglie
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 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
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
Development

Successfully merging this pull request may close these issues.

Library dependencies for boards added via the boards manager
2 participants