Skip to content
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

Add library dependencies to platformio.ini #134

Closed
gandy92 opened this issue Mar 22, 2015 · 3 comments
Closed

Add library dependencies to platformio.ini #134

gandy92 opened this issue Mar 22, 2015 · 3 comments
Assignees
Milestone

Comments

@gandy92
Copy link

gandy92 commented Mar 22, 2015

The file platformio.inialready contains information on the framework required to build a project. If it is missing, platformio offers to automatically install it. However, if the same project requires a library already known to the platformio library manager, the following manual steps are necessary:

  1. Build using "platformio run" and examine output for missing library
  2. Perform library ID search using "platformio lib search"
  3. Use "platformio lib install ID" to install library
  4. Repeat from step 1

I propose adding a new statement to platformio.ini that allow to specify required libraries in the form

require-libs = ID1 [, ID2 [, ..]]

instructing platformio to check if one or more of the required libs are missing and if so, suggest to automatically install them before proceeding the build.

@pelikhan
Copy link

Yes, declaring library depedencies is a great feature in npm.

Sent from my Windows Phone


From: Andymailto:[email protected]
Sent: ý3/ý22/ý2015 15:57
To: ivankravets/platformiomailto:[email protected]
Subject: [platformio] Add library dependencies to platformio.ini (#134)

The file platformio.inialready contains information on the framework required to build a project. If it is missing, platformio offers to automatically install it. However, if the same project requires a library already known to the platformio library manager, the following manual steps are necessary:

  1. Build using "platformio run" and examine output for missing library
  2. Perform library ID search using "platformio lib search"
  3. Use "platformio lib install ID" to install library
  4. Repeat from step 1

I propose adding a new statement to platformio.ini that allow to specify required libraries in the form

require-libs = ID1 [, ID2 [, ..]]

instructing platformio to check if one or more of the required libs are missing and if so, suggest to automatically install them before proceeding the build.


Reply to this email directly or view it on GitHubhttps://github.com//issues/134.

@ivankravets ivankravets self-assigned this Mar 23, 2015
@ivankravets ivankravets added this to the 1.3.0 milestone Mar 23, 2015
@ivankravets
Copy link
Member

I don't have any objections :) How about to name this option like install_libs?

@gandy92
Copy link
Author

gandy92 commented Mar 23, 2015

Sounds good to me 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants