mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +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>`_)
|
||||
* Updated Unity tool to 2.4.3
|
||||
* 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
|
||||
systems (Windows)
|
||||
* 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(project_dir, "platformio.ini"))
|
||||
|
||||
lib_dir = join(project_dir, "lib")
|
||||
src_dir = join(project_dir, "src")
|
||||
config = util.load_project_config(project_dir)
|
||||
if config.has_option("platformio", "src_dir"):
|
||||
src_dir = join(project_dir, config.get("platformio", "src_dir"))
|
||||
|
||||
for d in (src_dir, lib_dir):
|
||||
if not isdir(d):
|
||||
makedirs(d)
|
||||
with util.cd(project_dir):
|
||||
lib_dir = util.get_projectlib_dir()
|
||||
src_dir = util.get_projectsrc_dir()
|
||||
for d in (src_dir, lib_dir):
|
||||
if not isdir(d):
|
||||
makedirs(d)
|
||||
|
||||
init_lib_readme(lib_dir)
|
||||
init_ci_conf(project_dir)
|
||||
|
Reference in New Issue
Block a user