forked from platformio/platformio-core
Allow to ignore some libs from "Library Dependency Finder"
This commit is contained in:
@ -9,6 +9,8 @@ Release History
|
|||||||
command which allows to return the output in `JSON <http://en.wikipedia.org/wiki/JSON>`_ format
|
command which allows to return the output in `JSON <http://en.wikipedia.org/wiki/JSON>`_ format
|
||||||
(`issue #42 <https://github.com/ivankravets/platformio/issues/42>`_)
|
(`issue #42 <https://github.com/ivankravets/platformio/issues/42>`_)
|
||||||
* Fixed an issue with the libraries that are git repositories (`issue #49 <https://github.com/ivankravets/platformio/issues/49>`_)
|
* Fixed an issue with the libraries that are git repositories (`issue #49 <https://github.com/ivankravets/platformio/issues/49>`_)
|
||||||
|
* Allowed to ignore some libs from "Library Dependency Finder" via
|
||||||
|
`ignore_libs <http://docs.platformio.org/en/latest/projectconf.html#ignore-libs`_ option
|
||||||
|
|
||||||
|
|
||||||
0.10.2 (2015-01-06)
|
0.10.2 (2015-01-06)
|
||||||
|
@ -245,6 +245,19 @@ For more detailed information about available flags/options go to:
|
|||||||
This is option ``srcbuild_flags`` has the same behaviour like ``build_flags``
|
This is option ``srcbuild_flags`` has the same behaviour like ``build_flags``
|
||||||
but will be applied only for project source code from ``src`` directory.
|
but will be applied only for project source code from ``src`` directory.
|
||||||
|
|
||||||
|
``ignore_libs``
|
||||||
|
^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
Specify libraries which should be ignored by ``Library Dependency Finder``
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
.. code-block:: ini
|
||||||
|
|
||||||
|
[env:ignore_some_libs]
|
||||||
|
ignore_libs = SPI,EngduinoV3_ID123
|
||||||
|
|
||||||
|
|
||||||
.. _projectconf_examples:
|
.. _projectconf_examples:
|
||||||
|
|
||||||
Examples
|
Examples
|
||||||
|
@ -16,7 +16,6 @@ from os.path import join
|
|||||||
from SCons.Script import (DefaultEnvironment, SConscript, SConscriptChdir,
|
from SCons.Script import (DefaultEnvironment, SConscript, SConscriptChdir,
|
||||||
Variables)
|
Variables)
|
||||||
|
|
||||||
|
|
||||||
# AllowSubstExceptions()
|
# AllowSubstExceptions()
|
||||||
|
|
||||||
# allow common variables from INI file
|
# allow common variables from INI file
|
||||||
@ -35,6 +34,7 @@ commonvars.AddVariables(
|
|||||||
("FRAMEWORK",),
|
("FRAMEWORK",),
|
||||||
("BUILD_FLAGS",),
|
("BUILD_FLAGS",),
|
||||||
("SRCBUILD_FLAGS",),
|
("SRCBUILD_FLAGS",),
|
||||||
|
("IGNORE_LIBS",),
|
||||||
|
|
||||||
# board options
|
# board options
|
||||||
("BOARD",),
|
("BOARD",),
|
||||||
@ -85,6 +85,9 @@ if "BOARD" in env:
|
|||||||
if "UPLOAD_SPEED" not in env:
|
if "UPLOAD_SPEED" not in env:
|
||||||
env.Replace(UPLOAD_SPEED="${BOARD_OPTIONS['upload']['speed']}")
|
env.Replace(UPLOAD_SPEED="${BOARD_OPTIONS['upload']['speed']}")
|
||||||
|
|
||||||
|
if "IGNORE_LIBS" in env:
|
||||||
|
env['IGNORE_LIBS'] = [l.strip() for l in env['IGNORE_LIBS'].split(",")]
|
||||||
|
|
||||||
env.PrependENVPath(
|
env.PrependENVPath(
|
||||||
"PATH",
|
"PATH",
|
||||||
env.subst(join("$PIOPACKAGES_DIR", "$PIOPACKAGE_TOOLCHAIN", "bin"))
|
env.subst(join("$PIOPACKAGES_DIR", "$PIOPACKAGE_TOOLCHAIN", "bin"))
|
||||||
|
Reference in New Issue
Block a user