mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Respect a custom "lib_dir" option in platformio.ini // Resolve #1473
This commit is contained in:
@ -19,6 +19,8 @@ PlatformIO 3.0
|
|||||||
`PlatformIO Home <http://docs.platformio.org/page/home/index.html>`_)
|
`PlatformIO Home <http://docs.platformio.org/page/home/index.html>`_)
|
||||||
* Updated Unity tool to 2.4.3
|
* Updated Unity tool to 2.4.3
|
||||||
* Improved support for Black Magic Probe in "uploader" role
|
* Improved support for Black Magic Probe in "uploader" role
|
||||||
|
* Respect a custom "lib_dir" option in `Project Configuration File "platformio.ini" <http://docs.platformio.org/page/projectconf/section_platformio.html#build-dir>`__
|
||||||
|
(`issue #1473 <https://github.com/platformio/platformio-core/issues/1473>`_)
|
||||||
* Fixed issue with useless project rebuilding for case insensitive file
|
* Fixed issue with useless project rebuilding for case insensitive file
|
||||||
systems (Windows)
|
systems (Windows)
|
||||||
* Fixed issue with ``build_unflags`` option when a macro contains value
|
* Fixed issue with ``build_unflags`` option when a macro contains value
|
||||||
|
@ -139,15 +139,12 @@ def init_base_project(project_dir):
|
|||||||
join(util.get_source_dir(), "projectconftpl.ini"),
|
join(util.get_source_dir(), "projectconftpl.ini"),
|
||||||
join(project_dir, "platformio.ini"))
|
join(project_dir, "platformio.ini"))
|
||||||
|
|
||||||
lib_dir = join(project_dir, "lib")
|
with util.cd(project_dir):
|
||||||
src_dir = join(project_dir, "src")
|
lib_dir = util.get_projectlib_dir()
|
||||||
config = util.load_project_config(project_dir)
|
src_dir = util.get_projectsrc_dir()
|
||||||
if config.has_option("platformio", "src_dir"):
|
for d in (src_dir, lib_dir):
|
||||||
src_dir = join(project_dir, config.get("platformio", "src_dir"))
|
if not isdir(d):
|
||||||
|
makedirs(d)
|
||||||
for d in (src_dir, lib_dir):
|
|
||||||
if not isdir(d):
|
|
||||||
makedirs(d)
|
|
||||||
|
|
||||||
init_lib_readme(lib_dir)
|
init_lib_readme(lib_dir)
|
||||||
init_ci_conf(project_dir)
|
init_ci_conf(project_dir)
|
||||||
|
Reference in New Issue
Block a user