From ab15bafc5b32f07cfefcf389567337a9a892b96d Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sun, 29 May 2016 18:09:21 +0300 Subject: [PATCH] Automatically add source directory to "CPPPATH" of Build System --- HISTORY.rst | 1 + platformio/builder/tools/platformio.py | 1 + 2 files changed, 2 insertions(+) diff --git a/HISTORY.rst b/HISTORY.rst index 2d5d6560..3133868b 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,6 +9,7 @@ PlatformIO 2.0 * Simplified documentation for `Continuous Integration with AppVeyor `__ (`issue #671 `_) +* Automatically add source directory to ``CPPPATH`` of Build System * Added support for Silicon Labs SLSTK3401A (Pearl Gecko) and MultiTech mDot F411 ARM mbed based boards * Added support for MightyCore ATmega8535 board diff --git a/platformio/builder/tools/platformio.py b/platformio/builder/tools/platformio.py index f897d24a..891f45ba 100644 --- a/platformio/builder/tools/platformio.py +++ b/platformio/builder/tools/platformio.py @@ -80,6 +80,7 @@ def BuildProgram(env): env.Append( CPPDEFINES=["PLATFORMIO={0:02d}{1:02d}{2:02d}".format( *pioversion_to_intstr())], + CPPPATH=["$PROJECTSRC_DIR"], LIBS=deplibs, LIBPATH=["$BUILD_DIR"] )