Fix issue when Library Dependency Finder (LDF) does not handle custom “src_dir” // Resolve #942

This commit is contained in:
Ivan Kravets
2017-04-27 20:01:17 +03:00
parent 3d2df9f9a9
commit 969e72c4a4
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,9 @@ PlatformIO 3.0
(`pull #949 <https://github.com/platformio/platformio-core/pull/949>`_)
* Fixed linter error "unity.h does not exist" for Unit Testing
(`issue #947 <https://github.com/platformio/platformio-core/issues/947>`_)
* Fixed issue when `Library Dependency Finder (LDF) <http://docs.platformio.org/page/librarymanager/ldf.html>`__
does not handle custom ``src_dir``
(`issue #942 <https://github.com/platformio/platformio-core/issues/942>`_)
-------

View File

@ -411,6 +411,10 @@ class ProjectAsLibBuilder(LibBuilderBase):
LibBuilderBase.__init__(self, *args, **kwargs)
self._is_built = True
@property
def src_dir(self):
return self.env.subst("$PROJECTSRC_DIR")
@property
def lib_ldf_mode(self):
mode = LibBuilderBase.lib_ldf_mode.fget(self)