forked from platformio/platformio-core
Add support for “.*cc” extension // Resolve #939
This commit is contained in:
@ -13,8 +13,10 @@ PlatformIO 3.0
|
||||
* Handle dynamic ``SRC_FILTER`` environment variable from
|
||||
`library.json extra script <http://docs.platformio.org/page/librarymanager/config.html#extrascript>`__
|
||||
* Improved auto-detecting of mbed-enabled media disks
|
||||
* Update Git-submodules for development platforms and libraries which were
|
||||
installed from repository
|
||||
* Automatically update Git-submodules for development platforms and libraries
|
||||
that were installed from repository
|
||||
* Add support for ``.*cc`` extension
|
||||
(`issue #939 <https://github.com/platformio/platformio-core/issues/939>`_)
|
||||
|
||||
-------
|
||||
|
||||
|
@ -65,7 +65,8 @@ class LibBuilderFactory(object):
|
||||
# check source files
|
||||
for root, _, files in os.walk(path, followlinks=True):
|
||||
for fname in files:
|
||||
if not env.IsFileWithExt(fname, ("c", "cpp", "h", "hpp")):
|
||||
if not env.IsFileWithExt(
|
||||
fname, piotool.SRC_BUILD_EXT + piotool.SRC_HEADER_EXT):
|
||||
continue
|
||||
with open(join(root, fname)) as f:
|
||||
content = f.read()
|
||||
|
@ -27,7 +27,7 @@ from SCons.Util import case_sensitive_suffixes, is_Sequence
|
||||
|
||||
from platformio.util import glob_escape, pioversion_to_intstr
|
||||
|
||||
SRC_BUILD_EXT = ["c", "cpp", "S", "spp", "SPP", "sx", "s", "asm", "ASM"]
|
||||
SRC_BUILD_EXT = ["c", "cc", "cpp", "S", "spp", "SPP", "sx", "s", "asm", "ASM"]
|
||||
SRC_HEADER_EXT = ["h", "hpp"]
|
||||
SRC_FILTER_DEFAULT = ["+<*>", "-<.git%s>" % sep, "-<svn%s>" % sep]
|
||||
|
||||
|
Reference in New Issue
Block a user