mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Use default values from project options
This commit is contained in:
@ -211,7 +211,7 @@ class LibBuilderBase(object):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def lib_archive(self):
|
def lib_archive(self):
|
||||||
return self.env.GetProjectOption("lib_archive", True)
|
return self.env.GetProjectOption("lib_archive")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def lib_ldf_mode(self):
|
def lib_ldf_mode(self):
|
||||||
@ -711,8 +711,9 @@ class PlatformIOLibBuilder(LibBuilderBase):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def lib_archive(self):
|
def lib_archive(self):
|
||||||
global_value = self.env.GetProjectOption("lib_archive")
|
unique_value = "_not_declared_%s" % id(self)
|
||||||
if global_value is not None:
|
global_value = self.env.GetProjectOption("lib_archive", unique_value)
|
||||||
|
if global_value != unique_value:
|
||||||
return global_value
|
return global_value
|
||||||
return self._manifest.get("build", {}).get(
|
return self._manifest.get("build", {}).get(
|
||||||
"libArchive", LibBuilderBase.lib_archive.fget(self)
|
"libArchive", LibBuilderBase.lib_archive.fget(self)
|
||||||
|
@ -70,7 +70,7 @@ def _build_project_deps(env):
|
|||||||
projenv.BuildSources(
|
projenv.BuildSources(
|
||||||
"$BUILD_TEST_DIR", "$PROJECT_TEST_DIR", "$PIOTEST_SRC_FILTER"
|
"$BUILD_TEST_DIR", "$PROJECT_TEST_DIR", "$PIOTEST_SRC_FILTER"
|
||||||
)
|
)
|
||||||
if not is_test or env.GetProjectOption("test_build_project_src", False):
|
if not is_test or env.GetProjectOption("test_build_project_src"):
|
||||||
projenv.BuildSources(
|
projenv.BuildSources(
|
||||||
"$BUILD_SRC_DIR", "$PROJECT_SRC_DIR", env.get("SRC_FILTER")
|
"$BUILD_SRC_DIR", "$PROJECT_SRC_DIR", env.get("SRC_FILTER")
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user