From 9191ea97feb80e66698842c723854027a7151cb9 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 27 Jul 2018 01:27:05 +0300 Subject: [PATCH] Fix an issue when "srcFilter" field in "library.json" breaks a library build // Resolve #1735 --- HISTORY.rst | 4 ++++ platformio/builder/tools/piolib.py | 9 --------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 34bddd26..4fd6b098 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -13,6 +13,10 @@ PlatformIO 3.0 - Force building of project source code using `test_build_project_src `__ option - Fixed missed ``UNIT_TEST`` macro for unit test components/libraries +* Fixed an issue when ``srcFilter`` field in `library.json `__ + breaks a library build + (`issue #1735 `_) + 3.5.4 (2018-07-03) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/builder/tools/piolib.py b/platformio/builder/tools/piolib.py index 787b3bdf..04d595b0 100644 --- a/platformio/builder/tools/piolib.py +++ b/platformio/builder/tools/piolib.py @@ -586,15 +586,6 @@ class PlatformIOLibBuilder(LibBuilderBase): def _is_arduino_manifest(self): return isfile(join(self.path, "library.properties")) - @property - def src_dir(self): - if all([ - "srcFilter" in self._manifest.get("build", {}) - or self.env['SRC_FILTER'], not self._is_arduino_manifest() - ]): - return self.path - return LibBuilderBase.src_dir.fget(self) - @property def src_filter(self): if "srcFilter" in self._manifest.get("build", {}):