mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Fix parsing of includes for PlatformIO Library Dependency Finder // Resolve #189
This commit is contained in:
14
HISTORY.rst
14
HISTORY.rst
@ -1,6 +1,20 @@
|
||||
Release History
|
||||
===============
|
||||
|
||||
1.5.0 (2015-05-??)
|
||||
------------------
|
||||
|
||||
* Created `PlatformIO gitter.im <https://gitter.im/platformio/platformio>`_
|
||||
room
|
||||
(`issue #174 <https://github.com/platformio/platformio/issues/174>`_)
|
||||
* Added GDB as alternative uploader to `ststm32 <http://docs.platformio.org/en/latest/platforms/ststm32.html>`__ platform
|
||||
(`issue #175 <https://github.com/platformio/platformio/issues/174>`_)
|
||||
* Added `examples <https://github.com/platformio/platformio/tree/develop/examples>`__
|
||||
with preconfigured IDE projects
|
||||
(`issue #154 <https://github.com/platformio/platformio/issues/154>`_)
|
||||
* Fixed parsing of includes for PlatformIO Library Dependency Finder
|
||||
(`issue #189 <https://github.com/platformio/platformio/issues/189>`_)
|
||||
|
||||
1.4.0 (2015-04-11)
|
||||
------------------
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||
# See LICENSE for details.
|
||||
|
||||
VERSION = (1, 4, 0)
|
||||
VERSION = (1, 5, "0.dev0")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
@ -220,15 +220,10 @@ def BuildDependentLibraries(env, src_dir): # pylint: disable=R0914
|
||||
return state
|
||||
|
||||
def _parse_includes(state, node):
|
||||
if node.path in state['paths']:
|
||||
return state
|
||||
else:
|
||||
state['paths'].add(node.path)
|
||||
|
||||
skip_includes = ("arduino.h", "energia.h")
|
||||
matches = INCLUDES_RE.findall(node.get_text_contents())
|
||||
for (inc_type, inc_name) in matches:
|
||||
base_dir = dirname(node.path)
|
||||
base_dir = dirname(node.get_abspath())
|
||||
if inc_name.lower() in skip_includes:
|
||||
continue
|
||||
if join(base_dir, inc_name) in state['paths']:
|
||||
|
Reference in New Issue
Block a user